Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.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.001517/0.001517, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001697/0.001697, allocations: 171.5 kB / 25.33 MB, free: 9.051 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9409/0.9409, allocations: 158.6 MB / 187.2 MB, free: 2.441 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 251 MB, free: 3.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.038e-05/2.155e-05, allocations: 5.406 kB / 251 MB, free: 3.586 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002966/0.002987, allocations: 2.479 MB / 253.5 MB, free: 1.09 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.004683, allocations: 1.244 MB / 254.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.004848, allocations: 11.94 kB / 254.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006352/0.005484, allocations: 250.8 kB / 255 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.005786, allocations: 171 kB / 255.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000498/0.006284, allocations: 275.3 kB / 255.5 MB, free: 15.14 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.006666, allocations: 479.6 kB / 255.9 MB, free: 14.67 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.006875, allocations: 142.3 kB / 256.1 MB, free: 14.53 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.007098, allocations: 275.3 kB / 256.3 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.007263, allocations: 175.4 kB / 256.5 MB, free: 14.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.211e-05/0.007305, allocations: 36 kB / 256.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.007488, allocations: 127.8 kB / 256.7 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.007597, allocations: 127.6 kB / 256.8 MB, free: 13.8 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.007703, allocations: 131.5 kB / 256.9 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004267/0.00813, allocations: 454.1 kB / 257.4 MB, free: 13.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.008132, allocations: 3.984 kB / 257.4 MB, free: 13.22 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.008133, allocations: 4 kB / 257.4 MB, free: 13.22 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.008139, allocations: 0 / 257.4 MB, free: 13.22 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0008434/0.008982, allocations: 0.8754 MB / 258.2 MB, free: 12.29 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.009018, allocations: 11.98 kB / 258.2 MB, free: 12.28 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.009126, allocations: 88.56 kB / 258.3 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.009489, allocations: 347.3 kB / 258.7 MB, free: 11.83 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.734e-05/0.009556, allocations: 84.95 kB / 258.8 MB, free: 11.73 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.009592, allocations: 40.38 kB / 258.8 MB, free: 11.69 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.009992, allocations: 410.2 kB / 259.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.01, allocations: 0 / 259.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.01003, allocations: 16 kB / 259.2 MB, free: 11.23 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.01005, allocations: 20.48 kB / 259.2 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002117/0.01026, allocations: 176.5 kB / 259.4 MB, free: 11.03 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.01151, allocations: 1.945 MB / 261.4 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.01185, allocations: 283 kB / 261.6 MB, free: 8.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.01195, allocations: 112.7 kB / 261.7 MB, free: 8.551 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.012, allocations: 15.94 kB / 261.8 MB, free: 8.535 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.01226, allocations: 331.8 kB / 262.1 MB, free: 8.16 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 1.482e-06/0.01227, allocations: 0 / 262.1 MB, free: 8.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005073/0.01277, allocations: 450.8 kB / 262.5 MB, free: 7.695 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.01283, allocations: 136.5 kB / 262.7 MB, free: 7.531 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.01313, allocations: 470.4 kB / 263.1 MB, free: 7.055 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.01316, allocations: 37.7 kB / 263.1 MB, free: 7.012 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.01329, allocations: 291.6 kB / 263.4 MB, free: 6.719 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.693e-05/0.01335, allocations: 91.36 kB / 263.5 MB, free: 6.629 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.01346, allocations: 127.8 kB / 263.6 MB, free: 6.496 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.01359, allocations: 0.5274 MB / 264.2 MB, free: 5.957 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.0137, allocations: 98.64 kB / 264.3 MB, free: 5.855 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.01389, allocations: 318.3 kB / 264.6 MB, free: 5.453 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.01418, allocations: 393.8 kB / 265 MB, free: 4.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.01418, allocations: 0 / 265 MB, free: 4.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004159/0.0146, allocations: 444.2 kB / 265.4 MB, free: 4.527 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.01462, allocations: 36.36 kB / 265.4 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.01463, allocations: 7.984 kB / 265.4 MB, free: 4.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.01465, allocations: 4 kB / 265.4 MB, free: 4.477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.131e-05/0.01474, allocations: 47.86 kB / 265.5 MB, free: 4.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.01475, allocations: 12.41 kB / 265.5 MB, free: 4.418 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.01487, allocations: 51.72 kB / 265.6 MB, free: 4.367 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.0149, allocations: 31.92 kB / 265.6 MB, free: 4.336 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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.0001382/0.01504, allocations: 239.4 kB / 265.8 MB, free: 4.086 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.452e-05/0.01509, allocations: 67.59 kB / 265.9 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003991/0.01549, allocations: 377 kB / 266.3 MB, free: 3.633 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.01549, allocations: 4 kB / 266.3 MB, free: 3.629 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.0155, allocations: 4 kB / 266.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.0155, allocations: 7.984 kB / 266.3 MB, free: 3.617 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005838/0.01609, allocations: 0.6534 MB / 266.9 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01609, allocations: 0 / 266.9 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.754e-05/0.01613, allocations: 19.92 kB / 266.9 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01613, allocations: 0 / 266.9 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.01615, allocations: 19.98 kB / 267 MB, free: 2.879 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.01615, allocations: 0 / 267 MB, free: 2.879 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.01615, allocations: 4 kB / 267 MB, free: 2.875 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005509/0.01671, allocations: 0.5487 MB / 267.5 MB, free: 2.289 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.74e-05/0.01674, allocations: 51.59 kB / 267.6 MB, free: 2.238 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.01678, allocations: 11.98 kB / 267.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-05/0.01687, allocations: 19.98 kB / 267.6 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.3e-05/0.01695, allocations: 43.88 kB / 267.6 MB, free: 2.164 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/0.01697, allocations: 23.98 kB / 267.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.01714, allocations: 279.1 kB / 267.9 MB, free: 1.867 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01714, allocations: 0 / 267.9 MB, free: 1.867 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003017/0.01744, allocations: 119.7 kB / 268.1 MB, free: 1.75 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.0008148/0.01826, allocations: 442.2 kB / 268.5 MB, free: 1.352 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.01865, allocations: 371 kB / 268.8 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01865, allocations: 0 / 268.8 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.01882, allocations: 228.4 kB / 269.1 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.01915, allocations: 95.25 kB / 269.2 MB, free: 0.625 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008666/0.02001, allocations: 0.7439 MB / 269.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.974e-05/0.02009, allocations: 118.3 kB / 270 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.02022, allocations: 71.5 kB / 270.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.156e-05/0.0203, allocations: 40.5 kB / 270.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0203, allocations: 3.938 kB / 270.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of Templates: time 0.008332/0.02863, allocations: 5.697 MB / 275.8 MB, free: 9.879 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.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: 3.1266314019449055]