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.001283/0.001283, allocations: 113 kB / 19.04 MB, free: 3.254 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.001278/0.001278, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.446/1.446, allocations: 225.6 MB / 250.8 MB, free: 13.34 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.001474/0.001474, allocations: 55.91 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4285, allocations: 52.14 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003937/0.4325, allocations: 1.999 MB / 422.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.4339, allocations: 0.6543 MB / 423.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.434, allocations: 7.938 kB / 423.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.829e-05/0.4341, allocations: 15.8 kB / 423.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.4342, allocations: 27.73 kB / 423.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.4347, allocations: 107.8 kB / 423.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.435, allocations: 208 kB / 423.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.4352, allocations: 76.31 kB / 423.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.4354, allocations: 87.69 kB / 424 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.4356, allocations: 91.59 kB / 424.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.172e-05/0.4357, allocations: 20 kB / 424.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.421e-05/0.4357, allocations: 20 kB / 424.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.931e-05/0.4357, allocations: 39.84 kB / 424.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.4359, allocations: 87.58 kB / 424.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.4362, allocations: 212.4 kB / 424.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4362, allocations: 3.938 kB / 424.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4362, allocations: 4 kB / 424.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.4362, allocations: 0 / 424.5 MB, free: 11.43 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.001061/0.4373, allocations: 0.5335 MB / 425 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.4373, allocations: 8.031 kB / 425 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.4374, allocations: 20.84 kB / 425.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004509/0.4378, allocations: 240 kB / 425.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.873e-05/0.4379, allocations: 46.59 kB / 425.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.438, allocations: 19.94 kB / 425.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008107/0.4388, allocations: 326.9 kB / 425.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4388, allocations: 7.984 kB / 425.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.4389, allocations: 11.98 kB / 425.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.4389, allocations: 4 kB / 425.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.4393, allocations: 123.9 kB / 425.8 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008167/0.4401, allocations: 457.3 kB / 426.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005208/0.4406, allocations: 189.2 kB / 426.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.4409, allocations: 105.7 kB / 426.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.953e-05/0.4409, allocations: 8.062 kB / 426.6 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.4413, allocations: 111.3 kB / 426.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.114e-06/0.4413, allocations: 0 / 426.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008748/0.4421, allocations: 293.6 kB / 427 MB, free: 8.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4422, allocations: 89.05 kB / 427 MB, free: 8.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.4424, allocations: 154.3 kB / 427.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.4424, allocations: 33.7 kB / 427.2 MB, free: 8.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.4426, allocations: 112.5 kB / 427.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.52e-05/0.4426, allocations: 39.73 kB / 427.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.864e-05/0.4427, allocations: 49.62 kB / 427.4 MB, free: 8.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.4429, allocations: 326.8 kB / 427.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.4431, allocations: 68.12 kB / 427.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.4434, allocations: 140.1 kB / 427.9 MB, free: 7.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.4438, allocations: 231.8 kB / 428.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.4438, allocations: 0 / 428.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000598/0.4444, allocations: 282 kB / 428.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.021e-05/0.4445, allocations: 33.7 kB / 428.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4445, allocations: 4 kB / 428.5 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.637e-05/0.4445, allocations: 4 kB / 428.5 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.4448, allocations: 40.25 kB / 428.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.4448, allocations: 11.94 kB / 428.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.445, allocations: 39.81 kB / 428.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.445, allocations: 8 kB / 428.6 MB, free: 6.973 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.0001652/0.4452, allocations: 137.8 kB / 428.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.4454, allocations: 109.5 kB / 428.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.831e-05/0.4454, allocations: 16.72 kB / 428.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.4455, allocations: 7.984 kB / 428.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.4455, allocations: 7.938 kB / 428.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4455, allocations: 0 / 428.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008715/0.4463, allocations: 490.2 kB / 429.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.4464, allocations: 3.984 kB / 429.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.4466, allocations: 47.91 kB / 429.4 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/0.4466, allocations: 11.92 kB / 429.4 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.4466, allocations: 4 kB / 429.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4466, allocations: 3.938 kB / 429.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.4466, allocations: 4 kB / 429.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006225/0.4472, allocations: 319.5 kB / 429.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/0.4473, allocations: 96.95 kB / 429.8 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.4473, allocations: 11.94 kB / 429.8 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.4475, allocations: 19.97 kB / 429.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.678e-05/0.4476, allocations: 15.98 kB / 429.9 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.4476, allocations: 7.984 kB / 429.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.4477, allocations: 113 kB / 430 MB, free: 5.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4477, allocations: 3.938 kB / 430 MB, free: 5.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.4481, allocations: 32 kB / 430 MB, free: 5.43 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.0002112/0.4483, allocations: 115.8 kB / 430.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006448/0.4489, allocations: 235.1 kB / 430.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4489, allocations: 0 / 430.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.4491, allocations: 64.52 kB / 430.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.4497, allocations: 68.86 kB / 430.5 MB, free: 4.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009331/0.4506, allocations: 329.5 kB / 430.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.4511, allocations: 0.7282 MB / 431.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.215e-05/0.4512, allocations: 17.42 kB / 431.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.531e-05/0.4513, allocations: 19.44 kB / 431.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4513, allocations: 0 / 431.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of Templates: time 0.0073/0.4586, allocations: 2.018 MB / 433.6 MB, free: 1.785 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.153862106613815]