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.001333/0.001333, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.000976/0.000976, allocations: 143.5 kB / 25.59 MB, free: 8.5 MB / 18.57 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 0.9091/0.9091, allocations: 173.4 MB / 202.2 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] 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 1.583e-06/1.583e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.363e-05, allocations: 2.312 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002934/0.002957, allocations: 1.994 MB / 271.2 MB, free: 7.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.003988, allocations: 0.6171 MB / 271.8 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.004096, allocations: 0.9688 kB / 271.8 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.906e-05/0.004146, allocations: 23.73 kB / 271.8 MB, free: 7.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.004281, allocations: 24.92 kB / 271.8 MB, free: 7.125 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.00465, allocations: 116.6 kB / 271.9 MB, free: 7.012 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.004877, allocations: 204 kB / 272.1 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.005039, allocations: 72.81 kB / 272.2 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.005252, allocations: 124.5 kB / 272.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.005359, allocations: 72.45 kB / 272.4 MB, free: 6.551 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.005395, allocations: 20 kB / 272.4 MB, free: 6.531 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.461e-05/0.00542, allocations: 20.78 kB / 272.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.217e-05/0.005462, allocations: 39.84 kB / 272.5 MB, free: 6.473 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.314e-05/0.005525, allocations: 58.67 kB / 272.5 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.005717, allocations: 143.5 kB / 272.7 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.005719, allocations: 0 / 272.7 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.00572, allocations: 3.938 kB / 272.7 MB, free: 6.273 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.005725, allocations: 0 / 272.7 MB, free: 6.273 MB / 250.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.000613/0.006338, allocations: 0.5387 MB / 273.2 MB, free: 5.684 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.006373, allocations: 8.031 kB / 273.2 MB, free: 5.676 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.076e-05/0.006444, allocations: 45.75 kB / 273.3 MB, free: 5.633 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.006655, allocations: 179.4 kB / 273.5 MB, free: 5.434 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.175e-05/0.006717, allocations: 72.28 kB / 273.5 MB, free: 5.352 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.006742, allocations: 16.38 kB / 273.5 MB, free: 5.336 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.007191, allocations: 316.8 kB / 273.9 MB, free: 4.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.007201, allocations: 0 / 273.9 MB, free: 4.996 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.007218, allocations: 8 kB / 273.9 MB, free: 4.988 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.007226, allocations: 4 kB / 273.9 MB, free: 4.984 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.734e-05/0.007324, allocations: 39.95 kB / 273.9 MB, free: 4.945 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.007807, allocations: 387.6 kB / 274.3 MB, free: 4.535 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.008002, allocations: 130.2 kB / 274.4 MB, free: 4.383 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.686e-05/0.008079, allocations: 63.72 kB / 274.5 MB, free: 4.312 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.008103, allocations: 11.94 kB / 274.5 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.00823, allocations: 122.5 kB / 274.6 MB, free: 4.16 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.008232, allocations: 0 / 274.6 MB, free: 4.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003115/0.008544, allocations: 165.4 kB / 274.8 MB, free: 3.992 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.008603, allocations: 89.09 kB / 274.9 MB, free: 3.887 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.008713, allocations: 200.1 kB / 275 MB, free: 3.676 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.008737, allocations: 33.7 kB / 275.1 MB, free: 3.637 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.667e-05/0.008814, allocations: 163.2 kB / 275.2 MB, free: 3.473 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.008847, allocations: 43.67 kB / 275.3 MB, free: 3.43 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.936e-05/0.008906, allocations: 39.34 kB / 275.3 MB, free: 3.383 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.009047, allocations: 0.4962 MB / 275.8 MB, free: 2.875 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.759e-05/0.009105, allocations: 41.69 kB / 275.9 MB, free: 2.828 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.4e-05/0.009169, allocations: 69 kB / 275.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.071e-05/0.009259, allocations: 84.11 kB / 276 MB, free: 2.652 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.009262, allocations: 0 / 276 MB, free: 2.652 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001971/0.009459, allocations: 165 kB / 276.2 MB, free: 2.473 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.009489, allocations: 41.69 kB / 276.2 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.009495, allocations: 4.062 kB / 276.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.009504, allocations: 0 / 276.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.009615, allocations: 27.92 kB / 276.2 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-06/0.009618, allocations: 3.938 kB / 276.2 MB, free: 2.391 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.036e-05/0.009688, allocations: 15.94 kB / 276.3 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.009703, allocations: 8 kB / 276.3 MB, free: 2.367 MB / 250.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.0001033/0.009806, allocations: 164.5 kB / 276.4 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.009924, allocations: 89.58 kB / 276.5 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.009969, allocations: 32.7 kB / 276.5 MB, free: 2.066 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.009973, allocations: 4 kB / 276.6 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.009981, allocations: 4 kB / 276.6 MB, free: 2.059 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.009986, allocations: 0 / 276.6 MB, free: 2.059 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003641/0.01035, allocations: 381.8 kB / 276.9 MB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01035, allocations: 0 / 276.9 MB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.01047, allocations: 35.91 kB / 277 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.01047, allocations: 4 kB / 277 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.01048, allocations: 4 kB / 277 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.01048, allocations: 4 kB / 277 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01049, allocations: 4 kB / 277 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.01066, allocations: 252.5 kB / 277.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.949e-05/0.01068, allocations: 23.83 kB / 277.2 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.772e-05/0.01071, allocations: 8 kB / 277.3 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.702e-05/0.0108, allocations: 7.984 kB / 277.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.01085, allocations: 11.98 kB / 277.3 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.01086, allocations: 11.98 kB / 277.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.834e-05/0.01092, allocations: 145.6 kB / 277.4 MB, free: 1.129 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01092, allocations: 0 / 277.4 MB, free: 1.129 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002478/0.01117, allocations: 35.89 kB / 277.5 MB, free: 1.094 MB / 250.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.0001093/0.01128, allocations: 115.2 kB / 277.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.01149, allocations: 160.7 kB / 277.7 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01149, allocations: 0 / 277.7 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.122e-05/0.01155, allocations: 51.58 kB / 277.8 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.01189, allocations: 55.59 kB / 277.8 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006005/0.01249, allocations: 302.7 kB / 278.1 MB, free: 364 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.434e-05/0.01254, allocations: 79.83 kB / 278.2 MB, free: 264 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.666e-05/0.0126, allocations: 9.141 kB / 278.2 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.01271, allocations: 98.19 kB / 278.3 MB, free: 152 kB / 250.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01271, allocations: 4 kB / 278.3 MB, free: 148 kB / 250.7 MB Notification: Performance of Templates: time 0.004584/0.01729, allocations: 2.093 MB / 280.4 MB, free: 14.09 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.6361969029530883]