Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001158/0.001158, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001329/0.001329, allocations: 164 kB / 25.61 MB, free: 8.477 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.9838/0.9838, allocations: 177.1 MB / 206.1 MB, free: 4.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.513e-05, allocations: 2.312 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002842/0.002867, allocations: 1.956 MB / 276.1 MB, free: 2.453 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.004431, allocations: 1.194 MB / 277.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.004555, allocations: 10.41 kB / 277.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005616/0.005116, allocations: 155.4 kB / 277.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002896/0.005406, allocations: 167.2 kB / 277.7 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.005742, allocations: 181.3 kB / 277.8 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.00596, allocations: 203.4 kB / 278 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.006061, allocations: 21.72 kB / 278.1 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.006184, allocations: 116.3 kB / 278.2 MB, free: 428 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.006285, allocations: 71.8 kB / 278.2 MB, free: 356 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.006306, allocations: 8 kB / 278.3 MB, free: 348 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.006415, allocations: 63.83 kB / 278.3 MB, free: 284 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.113e-05/0.006476, allocations: 47.83 kB / 278.4 MB, free: 236 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.616e-05/0.006522, allocations: 43.8 kB / 278.4 MB, free: 192 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.006748, allocations: 163.4 kB / 278.6 MB, free: 28 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.00675, allocations: 3.938 kB / 278.6 MB, free: 24 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.006751, allocations: 3.938 kB / 278.6 MB, free: 20 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.006756, allocations: 0 / 278.6 MB, free: 20 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005454/0.007301, allocations: 0.5478 MB / 279.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.007336, allocations: 8.031 kB / 279.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.007387, allocations: 40.8 kB / 279.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.007631, allocations: 232.3 kB / 279.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.007652, allocations: 8.375 kB / 279.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.007664, allocations: 4.375 kB / 279.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.007881, allocations: 156.2 kB / 279.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.007891, allocations: 7.938 kB / 279.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.007901, allocations: 8 kB / 279.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.007908, allocations: 0 / 279.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.015e-05/0.007948, allocations: 27.89 kB / 279.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.008272, allocations: 327.4 kB / 279.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.008406, allocations: 132.5 kB / 280.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.57e-05/0.008451, allocations: 62.66 kB / 280.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.008468, allocations: 4 kB / 280.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.008569, allocations: 68.98 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.00857, allocations: 0 / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002076/0.008778, allocations: 125.4 kB / 280.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.008837, allocations: 136.5 kB / 280.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.009011, allocations: 292.2 kB / 280.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.009028, allocations: 34.08 kB / 280.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.643e-05/0.009115, allocations: 179 kB / 280.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.009135, allocations: 19.84 kB / 281 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.77e-05/0.009173, allocations: 35.34 kB / 281 MB, free: 13.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.009304, allocations: 0.4962 MB / 281.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.897e-05/0.009323, allocations: 15.92 kB / 281.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.146e-05/0.009365, allocations: 60.75 kB / 281.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.611e-05/0.009411, allocations: 35.36 kB / 281.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.009413, allocations: 0 / 281.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001022/0.009515, allocations: 85.53 kB / 281.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.009527, allocations: 8 kB / 281.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.009531, allocations: 0 / 281.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.009542, allocations: 320 / 281.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.056e-05/0.009603, allocations: 11.98 kB / 281.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.476e-06/0.009606, allocations: 4 kB / 281.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.773e-05/0.009644, allocations: 15.94 kB / 281.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.009648, allocations: 0 / 281.7 MB, free: 12.54 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: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.55e-05/0.009734, allocations: 164.5 kB / 281.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.999e-05/0.009804, allocations: 81.45 kB / 282 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.009924, allocations: 95.44 kB / 282.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.009928, allocations: 3.984 kB / 282.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.009931, allocations: 4 kB / 282.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.009935, allocations: 0 / 282.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.01005, allocations: 141.2 kB / 282.2 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.01005, allocations: 4 kB / 282.2 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.497e-05/0.01008, allocations: 11.92 kB / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.01008, allocations: 3.938 kB / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.01009, allocations: 4 kB / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.01009, allocations: 0 / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.01009, allocations: 8.062 kB / 282.2 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.01021, allocations: 147.3 kB / 282.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.01026, allocations: 39.77 kB / 282.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.01028, allocations: 11.88 kB / 282.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.916e-05/0.01032, allocations: 7.984 kB / 282.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.959e-05/0.01035, allocations: 8 kB / 282.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.01036, allocations: 11.92 kB / 282.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.768e-05/0.01046, allocations: 197.1 kB / 282.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01046, allocations: 0 / 282.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001671/0.01063, allocations: 24 kB / 282.7 MB, free: 11.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0009101/0.01154, allocations: 394.3 kB / 283 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.01166, allocations: 47.61 kB / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.01167, allocations: 0 / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.0117, allocations: 27.67 kB / 283.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.01198, allocations: 90.88 kB / 283.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003968/0.01237, allocations: 332.7 kB / 283.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.932e-05/0.01242, allocations: 83.97 kB / 283.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.745e-05/0.01247, allocations: 21.83 kB / 283.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.126e-05/0.01256, allocations: 102.2 kB / 283.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01256, allocations: 0 / 283.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of Templates: time 0.0052/0.01776, allocations: 3.13 MB / 286.9 MB, free: 7.426 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.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.9568275180645287]