Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001026/0.001026, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001002/0.001002, allocations: 173.9 kB / 24.92 MB, free: 8.723 MB / 18.57 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 0.999/0.999, allocations: 177.1 MB / 205.3 MB, free: 5.102 MB / 186.7 MB " [Timeout remaining time 179] 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.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.401e-05, allocations: 2.312 kB / 273.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002999/0.003023, allocations: 2.06 MB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.004149, allocations: 0.7047 MB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.004261, allocations: 0 / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.689e-05/0.004308, allocations: 19.73 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.004425, allocations: 35.67 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004033/0.004828, allocations: 123.6 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.005062, allocations: 208 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.005218, allocations: 74.11 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.005474, allocations: 131.7 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.005581, allocations: 67.78 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.005611, allocations: 20 kB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.005675, allocations: 28 kB / 276.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.879e-05/0.005714, allocations: 47.83 kB / 277 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.222e-05/0.005766, allocations: 55.83 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.005973, allocations: 147.5 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.005977, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005978, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.005983, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 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.000572/0.006555, allocations: 435.8 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.006593, allocations: 12.03 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.006747, allocations: 36.91 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.00697, allocations: 170 kB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.761e-05/0.007038, allocations: 64.3 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.007063, allocations: 28.3 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.007476, allocations: 289.7 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.007486, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.007504, allocations: 11.98 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.00751, allocations: 4 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.318e-05/0.007593, allocations: 35.92 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000425/0.008018, allocations: 264.8 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.008197, allocations: 117 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.266e-05/0.008259, allocations: 49.62 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.008283, allocations: 12.12 kB / 278.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001592/0.008442, allocations: 125 kB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.008444, allocations: 0 / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000232/0.008676, allocations: 129.5 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.008741, allocations: 89.11 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.008844, allocations: 153.9 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.008866, allocations: 29.7 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.008921, allocations: 108.5 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.008949, allocations: 39.67 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.238e-05/0.009001, allocations: 37.69 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/0.009094, allocations: 326.8 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/0.009144, allocations: 41.69 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-05/0.009201, allocations: 55.41 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.047e-05/0.009291, allocations: 91.09 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.009294, allocations: 0 / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001455/0.009439, allocations: 140.9 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.009477, allocations: 37.7 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.009483, allocations: 0 / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.009495, allocations: 0 / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.009606, allocations: 27.97 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.009611, allocations: 4 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.262e-05/0.009684, allocations: 19.86 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.009696, allocations: 8.031 kB / 280.1 MB, free: 10.22 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$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 (15): * Single equations (assignments): 14 * 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.0001069/0.009803, allocations: 129.8 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.009916, allocations: 77.59 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.789e-05/0.009964, allocations: 24.77 kB / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.009968, allocations: 4 kB / 280.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.009972, allocations: 4 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.009977, allocations: 0 / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003276/0.0103, allocations: 271.5 kB / 280.6 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.01031, allocations: 7.922 kB / 280.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.01042, allocations: 39.97 kB / 280.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.01043, allocations: 4 kB / 280.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.01044, allocations: 4 kB / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.01044, allocations: 3.938 kB / 280.7 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.01044, allocations: 4 kB / 280.7 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.01058, allocations: 176.3 kB / 280.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.025e-05/0.0106, allocations: 15.89 kB / 280.9 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.01062, allocations: 8 kB / 280.9 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.033e-05/0.01071, allocations: 15.98 kB / 280.9 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.01077, allocations: 19.97 kB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.01078, allocations: 7.984 kB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.01081, allocations: 28.84 kB / 280.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01081, allocations: 0 / 280.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000169/0.01098, allocations: 31.94 kB / 281 MB, free: 9.297 MB / 266.7 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.0001048/0.01109, allocations: 88.36 kB / 281.1 MB, free: 9.203 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.01128, allocations: 164.2 kB / 281.2 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.01128, allocations: 0 / 281.2 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.964e-05/0.01133, allocations: 32.91 kB / 281.2 MB, free: 8.988 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.01158, allocations: 63.53 kB / 281.3 MB, free: 8.926 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.01218, allocations: 298 kB / 281.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.237e-05/0.01224, allocations: 79.77 kB / 281.7 MB, free: 8.504 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.119e-05/0.01229, allocations: 17.14 kB / 281.7 MB, free: 8.488 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.517e-05/0.01238, allocations: 71.36 kB / 281.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01238, allocations: 0 / 281.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of Templates: time 0.004393/0.01678, allocations: 1.982 MB / 283.7 MB, free: 6.473 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.676746767014265]