Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002116/0.002116, allocations: 186 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 51.86 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2459, allocations: 52.18 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003407/0.2493, allocations: 1.945 MB / 425.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.2504, allocations: 0.6039 MB / 426.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.77e-05/0.2505, allocations: 7.938 kB / 426.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.972e-05/0.2506, allocations: 15.8 kB / 426.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.2507, allocations: 27.73 kB / 426.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.2511, allocations: 111.7 kB / 426.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.2514, allocations: 208 kB / 426.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.2515, allocations: 63.78 kB / 426.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.2517, allocations: 95.69 kB / 426.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.2518, allocations: 79.61 kB / 426.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.041e-05/0.2519, allocations: 20 kB / 427 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.449e-05/0.2519, allocations: 20 kB / 427 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.252, allocations: 43.84 kB / 427 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.365e-05/0.2521, allocations: 75.64 kB / 427.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.2523, allocations: 214.8 kB / 427.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2523, allocations: 0 / 427.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2523, allocations: 0 / 427.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2524, allocations: 0 / 427.3 MB, free: 10.97 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0009032/0.2533, allocations: 473.2 kB / 427.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2533, allocations: 12.03 kB / 427.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.826e-05/0.2534, allocations: 20.84 kB / 427.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.2537, allocations: 182.3 kB / 428 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.453e-05/0.2538, allocations: 64.3 kB / 428 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.2538, allocations: 23.88 kB / 428.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007531/0.2546, allocations: 364.5 kB / 428.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2546, allocations: 0 / 428.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.2546, allocations: 8 kB / 428.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.2546, allocations: 4 kB / 428.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.255, allocations: 131.9 kB / 428.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006418/0.2557, allocations: 357.1 kB / 428.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005169/0.2562, allocations: 193.1 kB / 429.1 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002586/0.2565, allocations: 97.66 kB / 429.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.2565, allocations: 4 kB / 429.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003123/0.2568, allocations: 144.9 kB / 429.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/0.2568, allocations: 4 kB / 429.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008473/0.2576, allocations: 281.5 kB / 429.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.2577, allocations: 93.06 kB / 429.7 MB, free: 8.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.2579, allocations: 146.4 kB / 429.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.2579, allocations: 29.7 kB / 429.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.258, allocations: 116.5 kB / 430 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.258, allocations: 31.73 kB / 430 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/0.2581, allocations: 65.58 kB / 430.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.2583, allocations: 330.8 kB / 430.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002272/0.2585, allocations: 85.89 kB / 430.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.2588, allocations: 172.4 kB / 430.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.2593, allocations: 231.1 kB / 430.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2593, allocations: 4 kB / 430.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006223/0.2599, allocations: 304.6 kB / 431.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.443e-05/0.26, allocations: 37.7 kB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.26, allocations: 0 / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.26, allocations: 4 kB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.2602, allocations: 44.25 kB / 431.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.2602, allocations: 8 kB / 431.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.2604, allocations: 35.8 kB / 431.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.2604, allocations: 12 kB / 431.3 MB, free: 6.59 MB / 334.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.0001592/0.2606, allocations: 141.5 kB / 431.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.2608, allocations: 102.5 kB / 431.6 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.2608, allocations: 24.7 kB / 431.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2608, allocations: 4 kB / 431.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.2609, allocations: 3.984 kB / 431.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2609, allocations: 11.94 kB / 431.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007741/0.2616, allocations: 414 kB / 432 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2616, allocations: 0 / 432 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.2618, allocations: 47.89 kB / 432.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2618, allocations: 0 / 432.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.2619, allocations: 4 kB / 432.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-05/0.2619, allocations: 3.938 kB / 432.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2619, allocations: 0 / 432.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006262/0.2625, allocations: 327.5 kB / 432.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.235e-05/0.2625, allocations: 23.84 kB / 432.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.2626, allocations: 0 / 432.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.2628, allocations: 27.91 kB / 432.4 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.714e-05/0.2628, allocations: 19.91 kB / 432.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.2628, allocations: 8 kB / 432.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.918e-05/0.2629, allocations: 116.7 kB / 432.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2629, allocations: 3.938 kB / 432.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003081/0.2633, allocations: 36 kB / 432.6 MB, free: 5.227 MB / 334.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.0001319/0.2634, allocations: 103.2 kB / 432.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.264, allocations: 260.8 kB / 433 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.264, allocations: 0.6875 kB / 433 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.2642, allocations: 59.95 kB / 433 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.2647, allocations: 71.91 kB / 433.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008347/0.2655, allocations: 355 kB / 433.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.2657, allocations: 120.3 kB / 433.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.385e-05/0.2657, allocations: 27.42 kB / 433.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2657, allocations: 0 / 433.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of Templates: time 0.004576/0.2703, allocations: 2.225 MB / 435.8 MB, free: 1.945 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 6.936034057755023]