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.001013/0.001013, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009639/0.0009639, allocations: 139.9 kB / 24.89 MB, free: 9.207 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.9358/0.9358, allocations: 173.3 MB / 201.5 MB, free: 9.215 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.332e-06/1.332e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18e-05/1.313e-05, allocations: 6.312 kB / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002218/0.002231, allocations: 1.984 MB / 270.4 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007874/0.003019, allocations: 0.6501 MB / 271.1 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.373e-05/0.003113, allocations: 3.938 kB / 271.1 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.775e-05/0.00315, allocations: 19.73 kB / 271.1 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.687e-05/0.003247, allocations: 23.75 kB / 271.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.003536, allocations: 115.7 kB / 271.2 MB, free: 3.402 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001787/0.003715, allocations: 200.1 kB / 271.4 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.00384, allocations: 74.12 kB / 271.5 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.003998, allocations: 127.6 kB / 271.6 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.929e-05/0.004088, allocations: 63.84 kB / 271.7 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.841e-05/0.004116, allocations: 20 kB / 271.7 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.004136, allocations: 20 kB / 271.7 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.708e-05/0.004173, allocations: 47.81 kB / 271.8 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.926e-05/0.004222, allocations: 59.83 kB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.004368, allocations: 139.5 kB / 272 MB, free: 2.664 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.00437, allocations: 4 kB / 272 MB, free: 2.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.004371, allocations: 0 / 272 MB, free: 2.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.004374, allocations: 0 / 272 MB, free: 2.66 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.0004622/0.004837, allocations: 439.8 kB / 272.4 MB, free: 2.191 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.004869, allocations: 8.922 kB / 272.4 MB, free: 2.184 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.004911, allocations: 28.92 kB / 272.5 MB, free: 2.156 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.005086, allocations: 160.9 kB / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.005135, allocations: 64.3 kB / 272.7 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.005157, allocations: 24.36 kB / 272.7 MB, free: 1.879 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.005471, allocations: 308.5 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.005479, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.005491, allocations: 4 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.005496, allocations: 8 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.36e-05/0.00556, allocations: 39.91 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003091/0.005869, allocations: 272.7 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.006001, allocations: 113 kB / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.626e-05/0.006057, allocations: 49.69 kB / 273.5 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.006074, allocations: 4.188 kB / 273.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.38e-05/0.006168, allocations: 117.1 kB / 273.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.282e-06/0.006169, allocations: 0 / 273.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001784/0.006347, allocations: 134.3 kB / 273.7 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.006395, allocations: 89.11 kB / 273.8 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.683e-05/0.006472, allocations: 153.8 kB / 274 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.006489, allocations: 29.7 kB / 274 MB, free: 472 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.006528, allocations: 108.5 kB / 274.1 MB, free: 360 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.006548, allocations: 35.72 kB / 274.1 MB, free: 324 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/0.006584, allocations: 33.69 kB / 274.2 MB, free: 284 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.986e-05/0.006664, allocations: 330.8 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.437e-05/0.006698, allocations: 45.69 kB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-05/0.006737, allocations: 59.39 kB / 274.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.309e-05/0.0068, allocations: 82.14 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.006803, allocations: 3.938 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001007/0.006903, allocations: 137.1 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.006928, allocations: 33.7 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.006931, allocations: 0 / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.006941, allocations: 4.062 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.852e-05/0.00703, allocations: 31.91 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-06/0.007032, allocations: 0 / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.981e-05/0.007082, allocations: 15.95 kB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.007092, allocations: 7.984 kB / 274.9 MB, free: 15.48 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 7.082e-05/0.007163, allocations: 125.8 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.626e-05/0.00723, allocations: 81.64 kB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.007261, allocations: 16.78 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.007263, allocations: 4 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.007265, allocations: 4 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.007269, allocations: 7.984 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.007485, allocations: 278.5 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.007486, allocations: 0 / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.542e-05/0.007562, allocations: 35.97 kB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.007564, allocations: 0 / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-06/0.007571, allocations: 4 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.007572, allocations: 0 / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.007573, allocations: 0 / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.783e-05/0.007671, allocations: 188.2 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.219e-05/0.007683, allocations: 15.84 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.007701, allocations: 11.94 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.354e-05/0.007765, allocations: 11.98 kB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.007804, allocations: 15.97 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.007812, allocations: 4 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.352e-05/0.007836, allocations: 32.81 kB / 275.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007836, allocations: 0 / 275.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001393/0.007975, allocations: 32 kB / 275.8 MB, free: 14.57 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 7.14e-05/0.008047, allocations: 92.3 kB / 275.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.008186, allocations: 157.2 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.008189, allocations: 4 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.719e-05/0.008226, allocations: 28.86 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.008412, allocations: 58.69 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004406/0.008853, allocations: 310.8 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.687e-05/0.0089, allocations: 79.81 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.447e-05/0.008934, allocations: 13.14 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.386e-05/0.009008, allocations: 75.36 kB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.009009, allocations: 0 / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of Templates: time 0.003205/0.01221, allocations: 1.963 MB / 278.5 MB, free: 11.75 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.6803214852698147]