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.002242/0.002242, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.002677/0.002677, allocations: 161.6 kB / 24.27 MB, free: 152 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 1.606/1.606, allocations: 177.2 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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.773e-06/1.773e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.444e-05/3.622e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.005643/0.005679, allocations: 1.993 MB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.007843, allocations: 0.6816 MB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.007986, allocations: 4 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.903e-05/0.008065, allocations: 27.72 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.008243, allocations: 23.69 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006631/0.008906, allocations: 123.6 kB / 275.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000429/0.009335, allocations: 208 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.009592, allocations: 72.88 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.01001, allocations: 131.6 kB / 275.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.01022, allocations: 71.77 kB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.01029, allocations: 20 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.877e-05/0.01038, allocations: 24 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.612e-05/0.01046, allocations: 47.83 kB / 275.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.01058, allocations: 51.84 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000525/0.01111, allocations: 227.3 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.01111, allocations: 0 / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.01112, allocations: 3.938 kB / 276 MB, free: 14.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.01112, allocations: 4 kB / 276 MB, free: 14.13 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.001368/0.01249, allocations: 0.5578 MB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.01254, allocations: 12.03 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003094/0.01285, allocations: 52.78 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/0.01331, allocations: 180.8 kB / 276.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.01343, allocations: 64.3 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.01349, allocations: 20.31 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.0147, allocations: 364.4 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.01471, allocations: 0 / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.01474, allocations: 8 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.01475, allocations: 4 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006157/0.01537, allocations: 119.9 kB / 277.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.01654, allocations: 439 kB / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007914/0.01733, allocations: 210.2 kB / 278 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004166/0.01774, allocations: 107.3 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.01779, allocations: 4 kB / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.01824, allocations: 142.8 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.926e-06/0.01825, allocations: 0 / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.001275/0.01952, allocations: 265.4 kB / 278.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.01965, allocations: 89.11 kB / 278.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.01998, allocations: 225.8 kB / 278.8 MB, free: 11.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/0.02004, allocations: 37.69 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.02022, allocations: 167.2 kB / 279 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.309e-05/0.02029, allocations: 43.73 kB / 279.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.02045, allocations: 47.36 kB / 279.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004023/0.02085, allocations: 0.4962 MB / 279.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002935/0.02115, allocations: 77.67 kB / 279.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.02148, allocations: 101 kB / 279.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.02209, allocations: 133 kB / 279.9 MB, free: 9.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.0221, allocations: 7.969 kB / 279.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007758/0.02287, allocations: 221 kB / 280.1 MB, free: 9.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.54e-05/0.02294, allocations: 39.09 kB / 280.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.02294, allocations: 0 / 280.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.02296, allocations: 0 / 280.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.02323, allocations: 31.92 kB / 280.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.061e-05/0.02325, allocations: 3.984 kB / 280.2 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.02345, allocations: 19.92 kB / 280.2 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.02347, allocations: 8.031 kB / 280.2 MB, free: 9.559 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.00027/0.02374, allocations: 184.5 kB / 280.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003678/0.02411, allocations: 121.5 kB / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.02422, allocations: 24.77 kB / 280.5 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.02423, allocations: 4 kB / 280.5 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.02424, allocations: 0 / 280.5 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.02424, allocations: 0 / 280.5 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.02544, allocations: 462.2 kB / 281 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.02545, allocations: 0 / 281 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.02573, allocations: 39.97 kB / 281 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.02573, allocations: 0 / 281 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.02577, allocations: 11.98 kB / 281.1 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.02578, allocations: 0 / 281.1 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.02578, allocations: 3.938 kB / 281.1 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009993/0.02678, allocations: 380.2 kB / 281.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.197e-05/0.02683, allocations: 19.84 kB / 281.4 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.02688, allocations: 4 kB / 281.4 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.02714, allocations: 11.98 kB / 281.5 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.02726, allocations: 27.95 kB / 281.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-05/0.02729, allocations: 8 kB / 281.5 MB, free: 8.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000196/0.02749, allocations: 162 kB / 281.7 MB, free: 8.047 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02749, allocations: 0 / 281.7 MB, free: 8.047 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005022/0.02799, allocations: 35.94 kB / 281.7 MB, free: 8.012 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.0001943/0.02818, allocations: 103.2 kB / 281.8 MB, free: 7.902 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008288/0.02901, allocations: 232.7 kB / 282 MB, free: 7.652 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.02902, allocations: 4 kB / 282 MB, free: 7.648 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002872/0.0293, allocations: 71.64 kB / 282.1 MB, free: 7.574 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/0.03007, allocations: 78.41 kB / 282.2 MB, free: 7.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.03118, allocations: 330.6 kB / 282.5 MB, free: 7.145 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.03138, allocations: 116 kB / 282.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.03148, allocations: 13.16 kB / 282.6 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.03159, allocations: 24.42 kB / 282.6 MB, free: 6.973 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.03159, allocations: 0 / 282.6 MB, free: 6.973 MB / 266.7 MB Notification: Performance of Templates: time 0.009329/0.04092, allocations: 1.924 MB / 284.6 MB, free: 5.074 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.789288175990805]