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.00101/0.00101, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.007182/0.007182, allocations: 156.7 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8759/0.8759, allocations: 177 MB / 204.9 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 2.515e-06/2.515e-06, allocations: 0 / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.873e-05/3.125e-05, allocations: 6.219 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002403/0.002434, allocations: 1.959 MB / 327.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008496/0.003283, allocations: 0.6621 MB / 328.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.003387, allocations: 7.938 kB / 328.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.472e-05/0.003431, allocations: 19.73 kB / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.744e-05/0.003529, allocations: 23.73 kB / 328.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.003916, allocations: 131.5 kB / 328.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.004105, allocations: 204.1 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.004266, allocations: 68.88 kB / 328.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.004491, allocations: 131.6 kB / 329 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.004591, allocations: 67.83 kB / 329 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.004619, allocations: 20 kB / 329.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.565e-05/0.004665, allocations: 20 kB / 329.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.461e-05/0.0047, allocations: 47.83 kB / 329.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/0.004754, allocations: 59.83 kB / 329.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.004995, allocations: 243.2 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.004997, allocations: 0 / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.004999, allocations: 0 / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.005003, allocations: 0 / 329.4 MB, free: 11.73 MB / 298.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.0006294/0.005633, allocations: 465.1 kB / 329.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.005671, allocations: 8.031 kB / 329.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.005804, allocations: 32.78 kB / 329.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.006068, allocations: 186 kB / 330.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.292e-05/0.006141, allocations: 68.3 kB / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.006163, allocations: 16.38 kB / 330.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.006678, allocations: 368.2 kB / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.006688, allocations: 0 / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.006706, allocations: 8 kB / 330.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.006713, allocations: 4 kB / 330.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.006944, allocations: 123.9 kB / 330.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007721/0.007716, allocations: 364.9 kB / 331 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.008019, allocations: 201.2 kB / 331.2 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.008159, allocations: 93.66 kB / 331.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.008181, allocations: 4 kB / 331.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.008384, allocations: 141.2 kB / 331.5 MB, free: 9.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.008386, allocations: 0 / 331.5 MB, free: 9.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004786/0.008864, allocations: 289.6 kB / 331.7 MB, free: 9.227 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.008919, allocations: 93.05 kB / 331.8 MB, free: 9.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.269e-05/0.009012, allocations: 155.2 kB / 332 MB, free: 8.953 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.00903, allocations: 33.7 kB / 332 MB, free: 8.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.009087, allocations: 116.5 kB / 332.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.009108, allocations: 31.75 kB / 332.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.341e-05/0.009152, allocations: 33.7 kB / 332.2 MB, free: 8.723 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.521e-05/0.009227, allocations: 326.8 kB / 332.5 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.009336, allocations: 89.66 kB / 332.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.009441, allocations: 95.94 kB / 332.7 MB, free: 8.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.009621, allocations: 145.5 kB / 332.8 MB, free: 8.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.009624, allocations: 3.938 kB / 332.8 MB, free: 8.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002539/0.009878, allocations: 236.9 kB / 333.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.009907, allocations: 33.7 kB / 333.1 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.009913, allocations: 0 / 333.1 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.009925, allocations: 4 kB / 333.1 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.969e-05/0.01001, allocations: 19.98 kB / 333.1 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.01002, allocations: 3.984 kB / 333.1 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.509e-05/0.01009, allocations: 19.92 kB / 333.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.0101, allocations: 8 kB / 333.2 MB, free: 7.695 MB / 298.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.0001027/0.0102, allocations: 141.7 kB / 333.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.01032, allocations: 101.5 kB / 333.4 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.01036, allocations: 32.75 kB / 333.4 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01037, allocations: 4 kB / 333.4 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.01037, allocations: 0 / 333.4 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.01038, allocations: 0 / 333.4 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004153/0.01079, allocations: 421.8 kB / 333.8 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01079, allocations: 0 / 333.8 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.55e-05/0.01089, allocations: 43.97 kB / 333.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01089, allocations: 0 / 333.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.0109, allocations: 7.984 kB / 333.9 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.01091, allocations: 4 kB / 333.9 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01091, allocations: 3.938 kB / 333.9 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.01121, allocations: 320 kB / 334.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.01123, allocations: 19.89 kB / 334.2 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.01126, allocations: 4 kB / 334.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-05/0.01134, allocations: 27.92 kB / 334.3 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.0114, allocations: 15.97 kB / 334.3 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.01141, allocations: 4 kB / 334.3 MB, free: 6.496 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.303e-05/0.01146, allocations: 119.1 kB / 334.4 MB, free: 6.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01146, allocations: 0 / 334.4 MB, free: 6.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001673/0.01163, allocations: 31.94 kB / 334.4 MB, free: 6.348 MB / 298.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 9.45e-05/0.01172, allocations: 111.2 kB / 334.5 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003047/0.01203, allocations: 242.5 kB / 334.8 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01203, allocations: 0 / 334.8 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.378e-05/0.01212, allocations: 51.95 kB / 334.8 MB, free: 5.922 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.01244, allocations: 71.94 kB / 334.9 MB, free: 5.855 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004747/0.01291, allocations: 344.5 kB / 335.2 MB, free: 5.484 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.498e-05/0.01299, allocations: 116.4 kB / 335.3 MB, free: 5.348 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.512e-05/0.01304, allocations: 24.48 kB / 335.4 MB, free: 5.324 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01304, allocations: 4 kB / 335.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of Templates: time 0.002771/0.01581, allocations: 2.145 MB / 337.5 MB, free: 3.188 MB / 298.7 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:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 4.342066450044513]