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.001005/0.001005, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.0009026/0.0009026, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9243/0.9243, allocations: 177.1 MB / 205 MB, free: 5.598 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.503e-06/1.503e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.438e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.005891/0.005915, allocations: 2.024 MB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.006952, allocations: 0.6892 MB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.007057, allocations: 8 kB / 275.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.955e-05/0.007107, allocations: 19.73 kB / 275.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.007218, allocations: 27.67 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003428/0.01065, allocations: 119.6 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.0109, allocations: 216 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.01107, allocations: 60.89 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.01133, allocations: 131.6 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.01144, allocations: 75.77 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.01147, allocations: 20 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.63e-05/0.01153, allocations: 24 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.01157, allocations: 43.83 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.577e-05/0.01164, allocations: 55.89 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.01187, allocations: 151.4 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.01188, allocations: 0 / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01188, allocations: 0 / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.01188, allocations: 0 / 276.6 MB, free: 13.87 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.0006902/0.01257, allocations: 0.5465 MB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.01261, allocations: 12.03 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.01277, allocations: 40.8 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.01301, allocations: 183.8 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.249e-05/0.01309, allocations: 72.3 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.797e-05/0.01311, allocations: 20.25 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003545/0.01666, allocations: 334.9 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.01667, allocations: 0 / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.01669, allocations: 8 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.0167, allocations: 0 / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.01683, allocations: 55.89 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.01734, allocations: 419 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.01758, allocations: 142.3 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.01768, allocations: 67.34 kB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.0177, allocations: 4 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001429/0.01784, allocations: 122.8 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.01784, allocations: 0 / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003761/0.01822, allocations: 193.7 kB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.01828, allocations: 89.11 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.0184, allocations: 208.3 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.01842, allocations: 33.7 kB / 279.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/0.01849, allocations: 163.2 kB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.01852, allocations: 39.8 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.895e-05/0.01858, allocations: 39.36 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.01869, allocations: 0.4923 MB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.359e-05/0.01875, allocations: 45.69 kB / 279.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.331e-05/0.01883, allocations: 77.05 kB / 280 MB, free: 10.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.01893, allocations: 93.03 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.01894, allocations: 7.938 kB / 280.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002064/0.01914, allocations: 172.9 kB / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.01917, allocations: 37.64 kB / 280.3 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.01917, allocations: 3.984 kB / 280.3 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.01919, allocations: 0 / 280.3 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.0193, allocations: 23.98 kB / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.0193, allocations: 0 / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003088/0.02239, allocations: 27.91 kB / 280.3 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.0224, allocations: 4 kB / 280.3 MB, free: 9.809 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.0001025/0.02251, allocations: 176.4 kB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.02264, allocations: 97.58 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.198e-05/0.02268, allocations: 20.77 kB / 280.6 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.02268, allocations: 4 kB / 280.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.02269, allocations: 0 / 280.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.02269, allocations: 0 / 280.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003611/0.02305, allocations: 413.1 kB / 281 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.02306, allocations: 4 kB / 281 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.02317, allocations: 39.91 kB / 281.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.02317, allocations: 4 kB / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.02319, allocations: 0 / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.02319, allocations: 0 / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.256e-05/0.02326, allocations: 4 kB / 281.1 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.02353, allocations: 324.1 kB / 281.4 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.02355, allocations: 11.91 kB / 281.4 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.02357, allocations: 8 kB / 281.4 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.02368, allocations: 15.98 kB / 281.4 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.02373, allocations: 15.97 kB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.02374, allocations: 8 kB / 281.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.14e-05/0.02381, allocations: 154.1 kB / 281.6 MB, free: 8.457 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02381, allocations: 3.938 kB / 281.6 MB, free: 8.453 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002446/0.02405, allocations: 31.94 kB / 281.6 MB, free: 8.422 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 8.887e-05/0.02414, allocations: 107.2 kB / 281.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002424/0.02438, allocations: 184.6 kB / 281.9 MB, free: 8.105 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.02438, allocations: 4.062 kB / 281.9 MB, free: 8.102 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.276e-05/0.02445, allocations: 39.61 kB / 282 MB, free: 8.059 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.0248, allocations: 60.62 kB / 282 MB, free: 8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.02846, allocations: 314.8 kB / 282.3 MB, free: 7.656 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.574e-05/0.02852, allocations: 83.77 kB / 282.4 MB, free: 7.555 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.005e-05/0.02857, allocations: 13.14 kB / 282.4 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.02863, allocations: 24.5 kB / 282.5 MB, free: 7.52 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02863, allocations: 0 / 282.5 MB, free: 7.52 MB / 266.7 MB Notification: Performance of Templates: time 0.007585/0.03621, allocations: 2.013 MB / 284.5 MB, free: 5.531 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.7303666290827096]