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.00103/0.00103, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001427/0.001427, allocations: 138.8 kB / 24.97 MB, free: 8.895 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 1.055/1.055, allocations: 173.4 MB / 201.5 MB, free: 9.336 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.382e-06/1.382e-06, allocations: 0 / 268.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.726e-05, allocations: 10.25 kB / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002218/0.002235, allocations: 1.995 MB / 270.1 MB, free: 4.734 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007836/0.003018, allocations: 0.6308 MB / 270.7 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.003149, allocations: 7.938 kB / 270.7 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.513e-05/0.003194, allocations: 19.8 kB / 270.7 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.708e-05/0.003291, allocations: 23.67 kB / 270.7 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.003623, allocations: 115.7 kB / 270.9 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000212/0.003835, allocations: 204.1 kB / 271.1 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.003977, allocations: 68.81 kB / 271.1 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.004139, allocations: 119.7 kB / 271.2 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.721e-05/0.004226, allocations: 71.77 kB / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.035e-05/0.004257, allocations: 24 kB / 271.3 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.173e-05/0.004278, allocations: 23.94 kB / 271.4 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.862e-05/0.004317, allocations: 43.89 kB / 271.4 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.849e-05/0.004375, allocations: 55.83 kB / 271.4 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.004544, allocations: 143.4 kB / 271.6 MB, free: 3.195 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.004546, allocations: 0 / 271.6 MB, free: 3.195 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.004547, allocations: 0 / 271.6 MB, free: 3.195 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.004552, allocations: 7.984 kB / 271.6 MB, free: 3.188 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.0005814/0.005133, allocations: 0.5347 MB / 272.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.005165, allocations: 8.922 kB / 272.1 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/0.005233, allocations: 44.8 kB / 272.2 MB, free: 2.551 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.00543, allocations: 187.8 kB / 272.4 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/0.00549, allocations: 64.3 kB / 272.4 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.005513, allocations: 16.38 kB / 272.4 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004308/0.005943, allocations: 327.8 kB / 272.8 MB, free: 1.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.005951, allocations: 0 / 272.8 MB, free: 1.906 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.005968, allocations: 8 kB / 272.8 MB, free: 1.898 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.005976, allocations: 4 kB / 272.8 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.006097, allocations: 55.89 kB / 272.8 MB, free: 1.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.006538, allocations: 411 kB / 273.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.006734, allocations: 158.3 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.181e-05/0.006816, allocations: 59.34 kB / 273.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.006835, allocations: 4 kB / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.006955, allocations: 122.8 kB / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.006956, allocations: 0 / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003177/0.007274, allocations: 186.1 kB / 273.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.007327, allocations: 89.27 kB / 273.8 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.007432, allocations: 209.9 kB / 274 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.007449, allocations: 25.7 kB / 274.1 MB, free: 472 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.007519, allocations: 163.2 kB / 274.2 MB, free: 304 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.007544, allocations: 39.69 kB / 274.3 MB, free: 264 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.745e-05/0.007592, allocations: 39.36 kB / 274.3 MB, free: 216 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.007712, allocations: 0.4961 MB / 274.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.341e-05/0.007766, allocations: 45.69 kB / 274.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.149e-05/0.007827, allocations: 76.56 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.024e-05/0.007918, allocations: 92.52 kB / 275 MB, free: 15.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.007919, allocations: 4.031 kB / 275 MB, free: 15.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001823/0.008102, allocations: 169 kB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.008127, allocations: 37.64 kB / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.008131, allocations: 0 / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.008146, allocations: 0 / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.008249, allocations: 23.98 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.008256, allocations: 3.984 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.75e-05/0.008313, allocations: 19.95 kB / 275.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.008324, allocations: 4 kB / 275.3 MB, free: 15.18 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 9.122e-05/0.008416, allocations: 188.5 kB / 275.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.008527, allocations: 101.5 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.008566, allocations: 20.78 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.00857, allocations: 4 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.008574, allocations: 0 / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.008578, allocations: 0 / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.008889, allocations: 409.2 kB / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.00889, allocations: 0 / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.062e-05/0.008981, allocations: 39.97 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.008983, allocations: 4 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.008995, allocations: 4 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.008997, allocations: 3.984 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.008998, allocations: 3.938 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.009216, allocations: 319.3 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.716e-05/0.009233, allocations: 19.84 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.009254, allocations: 4 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.205e-05/0.009326, allocations: 11.98 kB / 276.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.009379, allocations: 15.97 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.009394, allocations: 16 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.357e-05/0.009447, allocations: 154.1 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009447, allocations: 0 / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001655/0.009613, allocations: 31.95 kB / 276.6 MB, free: 13.78 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.896e-05/0.009692, allocations: 107.2 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002103/0.009902, allocations: 176.6 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.009904, allocations: 0 / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.309e-05/0.009957, allocations: 39.61 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.01023, allocations: 67.7 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005611/0.01079, allocations: 318.5 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.632e-05/0.01084, allocations: 79.78 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.171e-05/0.01089, allocations: 13.16 kB / 277.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.01094, allocations: 24.48 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01094, allocations: 0 / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of Templates: time 0.0034/0.01434, allocations: 1.92 MB / 279.3 MB, free: 10.99 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.8789278748445213]