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.001052/0.001052, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008752/0.0008752, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.943/0.943, allocations: 173.4 MB / 201.2 MB, free: 9.316 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.533e-06/1.533e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.533e-05/2.686e-05, allocations: 2.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003977/0.004004, allocations: 1.999 MB / 270 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000913/0.004917, allocations: 0.6347 MB / 270.6 MB, free: 3.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.005038, allocations: 3.938 kB / 270.6 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.707e-05/0.005095, allocations: 19.8 kB / 270.6 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.005218, allocations: 31.66 kB / 270.7 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004379/0.005656, allocations: 111.6 kB / 270.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003316/0.005987, allocations: 208 kB / 271 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.006209, allocations: 68.89 kB / 271 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002953/0.006504, allocations: 119.8 kB / 271.2 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.006647, allocations: 67.78 kB / 271.2 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.561e-05/0.006692, allocations: 23.94 kB / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.073e-05/0.006723, allocations: 20 kB / 271.3 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.953e-05/0.006772, allocations: 39.89 kB / 271.3 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.712e-05/0.00686, allocations: 59.83 kB / 271.4 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.007095, allocations: 143.5 kB / 271.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.007098, allocations: 0 / 271.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0071, allocations: 0 / 271.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.007105, allocations: 0 / 271.5 MB, free: 2.875 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.0007214/0.007826, allocations: 0.5464 MB / 272.1 MB, free: 2.277 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.007869, allocations: 8.922 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.364e-05/0.007952, allocations: 36.8 kB / 272.1 MB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.008217, allocations: 191.8 kB / 272.3 MB, free: 2.023 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.173e-05/0.008299, allocations: 64.3 kB / 272.4 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.008329, allocations: 20.38 kB / 272.4 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00059/0.00892, allocations: 323.8 kB / 272.7 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.008931, allocations: 3.984 kB / 272.7 MB, free: 1.582 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.008955, allocations: 12 kB / 272.7 MB, free: 1.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.008965, allocations: 4 kB / 272.7 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.009111, allocations: 51.89 kB / 272.8 MB, free: 1.516 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.009689, allocations: 411 kB / 273.2 MB, free: 1.074 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.00995, allocations: 150.2 kB / 273.3 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.01006, allocations: 63.34 kB / 273.4 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.01009, allocations: 8 kB / 273.4 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.01024, allocations: 118.8 kB / 273.5 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.01024, allocations: 4 kB / 273.5 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003995/0.01064, allocations: 186.1 kB / 273.7 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.0107, allocations: 93.27 kB / 273.8 MB, free: 396 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.01084, allocations: 197.9 kB / 274 MB, free: 180 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.01086, allocations: 33.7 kB / 274 MB, free: 140 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.456e-05/0.01095, allocations: 163.2 kB / 274.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.01098, allocations: 35.7 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.01105, allocations: 39.36 kB / 274.2 MB, free: 15.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.01117, allocations: 0.4961 MB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.979e-05/0.01124, allocations: 45.69 kB / 274.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.84e-05/0.01132, allocations: 84.28 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.01144, allocations: 88.88 kB / 274.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01144, allocations: 0 / 274.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002197/0.01166, allocations: 169 kB / 275.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.0117, allocations: 33.7 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.01171, allocations: 7.922 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.01172, allocations: 0 / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.01186, allocations: 27.98 kB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.01187, allocations: 0 / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.268e-05/0.01194, allocations: 20.02 kB / 275.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.01196, allocations: 7.984 kB / 275.2 MB, free: 14.86 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.000109/0.01206, allocations: 176.5 kB / 275.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.0122, allocations: 109.4 kB / 275.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.01225, allocations: 20.78 kB / 275.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.01226, allocations: 4 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.01226, allocations: 0 / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.01227, allocations: 3.984 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.01268, allocations: 405.2 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.01268, allocations: 7.984 kB / 275.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.01281, allocations: 35.98 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.01281, allocations: 0 / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.01283, allocations: 11.98 kB / 276 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.01283, allocations: 0 / 276 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.01283, allocations: 3.938 kB / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.01313, allocations: 315.3 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.046e-05/0.01315, allocations: 19.84 kB / 276.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.01318, allocations: 4 kB / 276.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.01328, allocations: 19.98 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.01334, allocations: 15.97 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.01336, allocations: 4 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.588e-05/0.01342, allocations: 154.1 kB / 276.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01342, allocations: 0 / 276.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002555/0.01368, allocations: 39.95 kB / 276.5 MB, free: 13.45 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.0001071/0.01379, allocations: 103.2 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002703/0.01406, allocations: 176.6 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.01406, allocations: 4.062 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.06e-05/0.01413, allocations: 39.61 kB / 276.8 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.01452, allocations: 59.66 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007643/0.01529, allocations: 318.5 kB / 277.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.938e-05/0.01535, allocations: 87.78 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.476e-05/0.0154, allocations: 13.14 kB / 277.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.01546, allocations: 16.5 kB / 277.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01546, allocations: 0 / 277.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of Templates: time 0.004895/0.02036, allocations: 1.996 MB / 279.3 MB, free: 10.59 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.7825258849188685]