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.001023/0.001023, allocations: 81.97 kB / 22.21 MB, free: 2.297 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.001072/0.001072, allocations: 164.5 kB / 25.61 MB, free: 8.922 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.9112/0.9112, allocations: 177.1 MB / 206.1 MB, free: 4.52 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.473e-06/1.473e-06, allocations: 3.938 kB / 274.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.739e-05/1.886e-05, allocations: 5.406 kB / 274.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003504/0.003523, allocations: 1.997 MB / 276.2 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.004738, allocations: 0.6862 MB / 276.9 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.004858, allocations: 8.562 kB / 276.9 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.875e-05/0.004916, allocations: 20.67 kB / 276.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.005044, allocations: 23.72 kB / 276.9 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004379/0.005482, allocations: 125.8 kB / 277 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002575/0.005739, allocations: 212 kB / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.005916, allocations: 64.88 kB / 277.3 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.006175, allocations: 132.5 kB / 277.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.006293, allocations: 67.78 kB / 277.5 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.917e-05/0.006332, allocations: 20.66 kB / 277.5 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.383e-05/0.006386, allocations: 20 kB / 277.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.74e-05/0.006433, allocations: 50.3 kB / 277.6 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.238e-05/0.006495, allocations: 51.89 kB / 277.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.006721, allocations: 155.3 kB / 277.8 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.006723, allocations: 0 / 277.8 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006724, allocations: 0 / 277.8 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.006728, allocations: 0 / 277.8 MB, free: 0.8398 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.0006826/0.00741, allocations: 0.5543 MB / 278.3 MB, free: 240 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.007444, allocations: 11.98 kB / 278.4 MB, free: 228 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.007608, allocations: 44.78 kB / 278.4 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.00786, allocations: 184.8 kB / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.945e-05/0.00793, allocations: 64.3 kB / 278.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.00796, allocations: 24.31 kB / 278.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005147/0.008475, allocations: 305 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.008485, allocations: 0 / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.008506, allocations: 8 kB / 279 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.008513, allocations: 0 / 279 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.008639, allocations: 46.02 kB / 279 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.009183, allocations: 395.6 kB / 279.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/0.009408, allocations: 138.2 kB / 279.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.44e-05/0.009492, allocations: 59.47 kB / 279.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.009513, allocations: 7.938 kB / 279.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001371/0.00965, allocations: 118.6 kB / 279.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.009652, allocations: 0 / 279.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002897/0.009942, allocations: 173.6 kB / 279.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.009988, allocations: 93.03 kB / 280 MB, free: 14.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.6e-05/0.01007, allocations: 212.6 kB / 280.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.01009, allocations: 29.7 kB / 280.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.723e-05/0.01015, allocations: 163.2 kB / 280.4 MB, free: 14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.01017, allocations: 35.72 kB / 280.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.424e-05/0.01022, allocations: 39.34 kB / 280.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.01032, allocations: 0.4962 MB / 280.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.01036, allocations: 45.69 kB / 281 MB, free: 13.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.597e-05/0.0104, allocations: 65.06 kB / 281.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.822e-05/0.01047, allocations: 83.8 kB / 281.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.01047, allocations: 0 / 281.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003865/0.01086, allocations: 176.8 kB / 281.3 MB, free: 13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.01088, allocations: 35.83 kB / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.01088, allocations: 0 / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.01089, allocations: 4 kB / 281.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.872e-05/0.01098, allocations: 23.92 kB / 281.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-06/0.01099, allocations: 4.062 kB / 281.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.051e-05/0.01105, allocations: 23.92 kB / 281.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.01105, allocations: 0 / 281.4 MB, free: 12.9 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 8.021e-05/0.01113, allocations: 168.6 kB / 281.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-05/0.01123, allocations: 101.5 kB / 281.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/0.01126, allocations: 20.78 kB / 281.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01126, allocations: 0 / 281.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.01127, allocations: 4 kB / 281.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01127, allocations: 0 / 281.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.01154, allocations: 386.6 kB / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01154, allocations: 4 kB / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.179e-05/0.01163, allocations: 31.97 kB / 282.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.01163, allocations: 0 / 282.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.01164, allocations: 11.98 kB / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.01164, allocations: 0 / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01164, allocations: 0 / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.01177, allocations: 255.4 kB / 282.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.01178, allocations: 15.91 kB / 282.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.01181, allocations: 7.984 kB / 282.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.309e-05/0.01188, allocations: 20 kB / 282.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.01192, allocations: 15.97 kB / 282.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.01193, allocations: 7.984 kB / 282.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.431e-05/0.01197, allocations: 147.2 kB / 282.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01197, allocations: 0 / 282.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001628/0.01213, allocations: 35.89 kB / 282.6 MB, free: 11.62 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.395e-05/0.01221, allocations: 115.2 kB / 282.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000162/0.01237, allocations: 167.9 kB / 282.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.01237, allocations: 3.938 kB / 282.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.335e-05/0.01242, allocations: 35.66 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.01266, allocations: 59.53 kB / 283 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004548/0.01311, allocations: 297.7 kB / 283.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.518e-05/0.01316, allocations: 99.67 kB / 283.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.819e-05/0.0132, allocations: 9.094 kB / 283.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.692e-05/0.01328, allocations: 94.19 kB / 283.5 MB, free: 10.67 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01328, allocations: 0 / 283.5 MB, free: 10.67 MB / 266.7 MB Notification: Performance of Templates: time 0.003561/0.01684, allocations: 2.117 MB / 285.6 MB, free: 8.586 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.622421153821051]