Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001579/0.001579, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001884/0.001884, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 67.88 kB / 373.8 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.142, allocations: 53.32 MB / 427.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00378/0.1458, allocations: 2.002 MB / 429.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1473, allocations: 0.7089 MB / 429.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.1474, allocations: 4 kB / 429.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.452e-05/0.1475, allocations: 23.72 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.1477, allocations: 19.75 kB / 429.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.1483, allocations: 123.7 kB / 430 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.1486, allocations: 211.9 kB / 430.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.1488, allocations: 76.31 kB / 430.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.1491, allocations: 87.69 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.1493, allocations: 91.59 kB / 430.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.1493, allocations: 20 kB / 430.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.316e-05/0.1494, allocations: 20 kB / 430.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.099e-05/0.1495, allocations: 43.84 kB / 430.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1496, allocations: 91.52 kB / 430.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.1499, allocations: 227 kB / 430.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1499, allocations: 4 kB / 430.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1499, allocations: 0 / 430.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1499, allocations: 0 / 430.9 MB, free: 0.7578 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.00112/0.1511, allocations: 0.5257 MB / 431.4 MB, free: 172 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/0.1511, allocations: 12.03 kB / 431.4 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.1513, allocations: 32.78 kB / 431.4 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.1518, allocations: 239.5 kB / 431.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.586e-05/0.1519, allocations: 42.59 kB / 431.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.1519, allocations: 23.92 kB / 431.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007822/0.1527, allocations: 327 kB / 432.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1527, allocations: 0 / 432.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.1527, allocations: 7.984 kB / 432.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1527, allocations: 7.984 kB / 432.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000455/0.1532, allocations: 131.8 kB / 432.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007885/0.154, allocations: 469.3 kB / 432.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005468/0.1545, allocations: 189.1 kB / 432.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.1548, allocations: 101.7 kB / 432.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.1548, allocations: 4 kB / 433 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003402/0.1552, allocations: 111.3 kB / 433.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.394e-06/0.1552, allocations: 0 / 433.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000925/0.1561, allocations: 293.4 kB / 433.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.788e-05/0.1562, allocations: 85.98 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.1564, allocations: 154.4 kB / 433.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.1564, allocations: 33.69 kB / 433.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.1565, allocations: 112.6 kB / 433.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.1565, allocations: 39.8 kB / 433.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.1566, allocations: 53.64 kB / 433.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1568, allocations: 334.8 kB / 434.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.157, allocations: 60.19 kB / 434.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.1573, allocations: 150.7 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004614/0.1578, allocations: 229.1 kB / 434.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1578, allocations: 0 / 434.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006322/0.1584, allocations: 276.2 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.1584, allocations: 40.38 kB / 434.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1584, allocations: 4 kB / 434.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.1585, allocations: 4 kB / 434.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.1587, allocations: 43.91 kB / 434.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.1587, allocations: 4 kB / 434.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.1589, allocations: 31.81 kB / 435 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/0.1589, allocations: 27.92 kB / 435 MB, free: 12.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.000159/0.1591, allocations: 133.8 kB / 435.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.1593, allocations: 105.6 kB / 435.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.63e-05/0.1594, allocations: 20.72 kB / 435.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.1594, allocations: 4 kB / 435.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1594, allocations: 0 / 435.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1594, allocations: 3.984 kB / 435.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008334/0.1602, allocations: 0.4904 MB / 435.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.1602, allocations: 7.984 kB / 435.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.1604, allocations: 43.91 kB / 435.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.1604, allocations: 0 / 435.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.1604, allocations: 8 kB / 435.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.1604, allocations: 3.938 kB / 435.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1604, allocations: 0 / 435.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006622/0.1611, allocations: 324.9 kB / 436.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.479e-05/0.1612, allocations: 96.94 kB / 436.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.1612, allocations: 11.98 kB / 436.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.1614, allocations: 15.92 kB / 436.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.599e-05/0.1615, allocations: 19.92 kB / 436.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.1615, allocations: 7.984 kB / 436.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001145/0.1616, allocations: 119.3 kB / 436.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1616, allocations: 4 kB / 436.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.1619, allocations: 36 kB / 436.4 MB, free: 10.71 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000165/0.1621, allocations: 107.2 kB / 436.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006533/0.1628, allocations: 231.5 kB / 436.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.1628, allocations: 8.188 kB / 436.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.163, allocations: 55.95 kB / 436.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005306/0.1635, allocations: 72.62 kB / 436.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009374/0.1644, allocations: 329 kB / 437.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.1649, allocations: 0.7283 MB / 437.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.108e-05/0.165, allocations: 13.55 kB / 438 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.684e-05/0.1651, allocations: 27.42 kB / 438 MB, free: 9.086 MB / 366.1 MB Notification: Performance of SimCode: time 1.393e-06/0.1651, allocations: 3.938 kB / 438 MB, free: 9.082 MB / 366.1 MB Notification: Performance of Templates: time 0.006646/0.1717, allocations: 1.97 MB / 440 MB, free: 7.121 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,angle_input.continuous,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width [Calling sys.exit(0), Time elapsed: 5.109224097803235]