Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002302/0.002302, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 51.92 kB / 378.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2499, allocations: 53.37 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003474/0.2534, allocations: 2.011 MB / 434.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.2545, allocations: 0.5687 MB / 434.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2546, allocations: 7.938 kB / 434.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.2547, allocations: 15.8 kB / 434.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.2549, allocations: 43.7 kB / 435 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.2551, allocations: 63.81 kB / 435 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.2553, allocations: 127.6 kB / 435.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.2555, allocations: 49.69 kB / 435.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.714e-05/0.2556, allocations: 51.73 kB / 435.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.936e-05/0.2557, allocations: 63.64 kB / 435.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.2557, allocations: 12 kB / 435.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.477e-05/0.2557, allocations: 12 kB / 435.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.2558, allocations: 31.89 kB / 435.4 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.449e-05/0.2559, allocations: 59.67 kB / 435.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.2561, allocations: 150.3 kB / 435.6 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2561, allocations: 0 / 435.6 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2561, allocations: 0 / 435.6 MB, free: 3.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2561, allocations: 0 / 435.6 MB, free: 3.469 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006638/0.2567, allocations: 377.6 kB / 435.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2568, allocations: 8.031 kB / 435.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.2568, allocations: 24.8 kB / 436 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.2571, allocations: 166.2 kB / 436.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.2571, allocations: 12.38 kB / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.2572, allocations: 12.38 kB / 436.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.2577, allocations: 246.9 kB / 436.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2577, allocations: 0 / 436.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.2577, allocations: 4 kB / 436.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2577, allocations: 8 kB / 436.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002751/0.258, allocations: 87.88 kB / 436.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006345/0.2586, allocations: 0.4963 MB / 437 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.259, allocations: 139.9 kB / 437.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.2592, allocations: 74.62 kB / 437.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2592, allocations: 7.984 kB / 437.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.2593, allocations: 34.56 kB / 437.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2593, allocations: 0 / 437.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005587/0.2598, allocations: 193.5 kB / 437.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.2599, allocations: 114.7 kB / 437.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.2601, allocations: 158.6 kB / 437.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.2601, allocations: 25.7 kB / 437.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.839e-05/0.2602, allocations: 112.5 kB / 437.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.2602, allocations: 35.91 kB / 437.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.2603, allocations: 41.64 kB / 437.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2604, allocations: 322.8 kB / 438.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2605, allocations: 35.97 kB / 438.3 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.2607, allocations: 133.7 kB / 438.4 MB, free: 368 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.2611, allocations: 189.5 kB / 438.6 MB, free: 128 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2611, allocations: 4 kB / 438.6 MB, free: 124 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004125/0.2615, allocations: 197.6 kB / 438.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.2615, allocations: 8.031 kB / 438.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.2615, allocations: 4 kB / 438.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.2615, allocations: 8 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.2617, allocations: 47.91 kB / 438.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.2617, allocations: 7.938 kB / 438.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.2618, allocations: 31.81 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.2618, allocations: 8 kB / 438.9 MB, free: 15.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.262, allocations: 125.8 kB / 439 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.2621, allocations: 101.5 kB / 439.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.944e-05/0.2622, allocations: 20.72 kB / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2622, allocations: 4 kB / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2622, allocations: 0 / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2622, allocations: 0 / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000396/0.2626, allocations: 145.2 kB / 439.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2626, allocations: 4 kB / 439.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.2629, allocations: 39.91 kB / 439.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.85e-06/0.2629, allocations: 3.938 kB / 439.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.2629, allocations: 4 kB / 439.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2629, allocations: 4 kB / 439.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2629, allocations: 4 kB / 439.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006007/0.2635, allocations: 375.5 kB / 439.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.879e-05/0.2636, allocations: 39.78 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.2636, allocations: 4 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.2638, allocations: 7.984 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.2638, allocations: 4 kB / 439.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.2638, allocations: 8 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.323e-05/0.2639, allocations: 112.2 kB / 439.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2639, allocations: 4.094 kB / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003353/0.2642, allocations: 35.89 kB / 439.9 MB, free: 14.72 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001052/0.2644, allocations: 107.2 kB / 440 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003436/0.2647, allocations: 119.9 kB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2647, allocations: 4.188 kB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.2648, allocations: 31.91 kB / 440.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.2653, allocations: 61.56 kB / 440.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008195/0.2661, allocations: 430.5 kB / 440.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.2662, allocations: 110.6 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.942e-05/0.2663, allocations: 9.422 kB / 440.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/0.2663, allocations: 19.44 kB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2663, allocations: 0 / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of Templates: time 0.004689/0.271, allocations: 1.6 MB / 442.4 MB, free: 12.25 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,hold1.y_start,load.J,load.phi,load.w,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,ramp.duration,ramp.height,ramp.offset,ramp.startTime,time [Calling sys.exit(0), Time elapsed: 4.4411184469936416]