Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 174.5 kB / 24.91 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8926/0.8926, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.101e-05/1.212e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002152/0.002164, allocations: 2.012 MB / 275.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008546/0.003018, allocations: 0.7046 MB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.0031, allocations: 4 kB / 276.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.713e-05/0.003137, allocations: 23.73 kB / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.949e-05/0.003227, allocations: 27.78 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.003556, allocations: 123.5 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.003729, allocations: 212.1 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.003847, allocations: 70.12 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.004031, allocations: 131.7 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.938e-05/0.00411, allocations: 63.84 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.709e-05/0.004137, allocations: 24 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.98e-05/0.004177, allocations: 27.94 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.00421, allocations: 43.88 kB / 276.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.472e-05/0.004255, allocations: 55.84 kB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.004417, allocations: 151.3 kB / 277.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.004419, allocations: 4 kB / 277.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004419, allocations: 0 / 277.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.004422, allocations: 0 / 277.1 MB, free: 13.65 MB / 266.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.0004386/0.004861, allocations: 435.9 kB / 277.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.622e-05/0.004887, allocations: 12.03 kB / 277.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.004992, allocations: 36.91 kB / 277.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.005154, allocations: 166 kB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/0.0052, allocations: 64.3 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.005219, allocations: 20.38 kB / 277.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.005557, allocations: 305.6 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.005564, allocations: 0 / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.005578, allocations: 8 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.005582, allocations: 0 / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.474e-05/0.005647, allocations: 47.28 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003074/0.005954, allocations: 264.7 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.006086, allocations: 121 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.78e-05/0.006134, allocations: 45.64 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.006151, allocations: 8.188 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001002/0.006251, allocations: 116.9 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.122e-06/0.006252, allocations: 0 / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001803/0.006432, allocations: 133.7 kB / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.006485, allocations: 93.05 kB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.526e-05/0.00655, allocations: 149.1 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.006567, allocations: 33.7 kB / 279.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.819e-05/0.006605, allocations: 108.5 kB / 279.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.006627, allocations: 43.61 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/0.006668, allocations: 37.69 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.83e-05/0.006747, allocations: 322.8 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.237e-05/0.006779, allocations: 41.69 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.744e-05/0.006816, allocations: 59.39 kB / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.792e-05/0.006874, allocations: 79.41 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.006877, allocations: 4 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.83e-05/0.006976, allocations: 140.9 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.006999, allocations: 43.41 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.007003, allocations: 0 / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.318e-06/0.007013, allocations: 0 / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-05/0.007091, allocations: 27.92 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.007095, allocations: 3.984 kB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.546e-05/0.00715, allocations: 19.95 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.00716, allocations: 8 kB / 280 MB, free: 10.45 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.017e-05/0.00723, allocations: 121.8 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.958e-05/0.00733, allocations: 81.55 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.041e-05/0.00736, allocations: 20.77 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.007362, allocations: 7.938 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.007364, allocations: 0 / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.007368, allocations: 4 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.007585, allocations: 271.6 kB / 280.5 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.007587, allocations: 4 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.007662, allocations: 35.91 kB / 280.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.007664, allocations: 0 / 280.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.007673, allocations: 8 kB / 280.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.007674, allocations: 4 kB / 280.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.007675, allocations: 0 / 280.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.674e-05/0.007772, allocations: 188.2 kB / 280.8 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.226e-05/0.007784, allocations: 11.91 kB / 280.8 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.007802, allocations: 8 kB / 280.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.827e-05/0.007871, allocations: 19.98 kB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.007908, allocations: 15.97 kB / 280.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.007916, allocations: 4 kB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.497e-05/0.007941, allocations: 40.67 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007941, allocations: 0 / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001356/0.008077, allocations: 31.94 kB / 280.9 MB, free: 9.527 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.164e-05/0.008148, allocations: 92.34 kB / 281 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000137/0.008285, allocations: 153.9 kB / 281.1 MB, free: 9.258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.008288, allocations: 4.062 kB / 281.1 MB, free: 9.254 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.704e-05/0.008325, allocations: 32.78 kB / 281.2 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.008516, allocations: 68.09 kB / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004298/0.008946, allocations: 294.1 kB / 281.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.051e-05/0.008986, allocations: 79.77 kB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.674e-05/0.009023, allocations: 17.14 kB / 281.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.367e-05/0.009107, allocations: 71.36 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.009107, allocations: 0 / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of Templates: time 0.003364/0.01247, allocations: 1.971 MB / 283.6 MB, free: 6.711 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5115861417725682]