Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001035/0.001035, allocations: 83.69 kB / 21.19 MB, free: 3.391 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.001748/0.001748, allocations: 165 kB / 24.56 MB, free: 20 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.9677/0.9677, allocations: 177.1 MB / 205 MB, free: 5.277 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.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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.274e-05/3.453e-05, allocations: 2.312 kB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003887/0.003922, allocations: 2.506 MB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.006614, allocations: 1.468 MB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003377/0.006952, allocations: 11.88 kB / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008323/0.007784, allocations: 238.8 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006269/0.008411, allocations: 214.8 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007568/0.009168, allocations: 271.2 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007792/0.009947, allocations: 491.5 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.01026, allocations: 138.3 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003527/0.01061, allocations: 275.4 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.01086, allocations: 179.4 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.515e-05/0.01091, allocations: 36 kB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002505/0.01116, allocations: 123.8 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.01128, allocations: 127.5 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.0114, allocations: 143.6 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005408/0.01194, allocations: 446.1 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.01194, allocations: 0 / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01194, allocations: 0 / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.01195, allocations: 0 / 279.6 MB, free: 10.76 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001064/0.01302, allocations: 0.8871 MB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.01306, allocations: 12.03 kB / 280.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002846/0.01335, allocations: 104.5 kB / 280.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004107/0.01376, allocations: 339.3 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.763e-05/0.01383, allocations: 84.95 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.01388, allocations: 48.25 kB / 281 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007384/0.01462, allocations: 402.3 kB / 281.4 MB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.01463, allocations: 0 / 281.4 MB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.01466, allocations: 20 kB / 281.5 MB, free: 8.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.01468, allocations: 16.48 kB / 281.5 MB, free: 8.727 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.01493, allocations: 184.5 kB / 281.7 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.01633, allocations: 1.945 MB / 283.6 MB, free: 6.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.01671, allocations: 267.1 kB / 283.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.01684, allocations: 112.7 kB / 284 MB, free: 6.082 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.01688, allocations: 8 kB / 284 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.01718, allocations: 340.7 kB / 284.3 MB, free: 5.691 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.283e-06/0.01719, allocations: 0 / 284.3 MB, free: 5.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006207/0.01781, allocations: 454.5 kB / 284.8 MB, free: 5.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.01789, allocations: 136.5 kB / 284.9 MB, free: 5.059 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003674/0.01825, allocations: 474.4 kB / 285.4 MB, free: 4.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.01828, allocations: 41.7 kB / 285.4 MB, free: 4.531 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.01844, allocations: 291.6 kB / 285.7 MB, free: 4.238 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.359e-05/0.0185, allocations: 87.38 kB / 285.8 MB, free: 4.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.01861, allocations: 119.8 kB / 285.9 MB, free: 4.027 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.01877, allocations: 0.5352 MB / 286.4 MB, free: 3.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.01888, allocations: 94.66 kB / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.01908, allocations: 318.3 kB / 286.8 MB, free: 2.977 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.01938, allocations: 380.1 kB / 287.2 MB, free: 2.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.01938, allocations: 0 / 287.2 MB, free: 2.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004345/0.01982, allocations: 441 kB / 287.6 MB, free: 2.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.01985, allocations: 33.7 kB / 287.7 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.01986, allocations: 4 kB / 287.7 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.01988, allocations: 8 kB / 287.7 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.602e-05/0.01998, allocations: 47.84 kB / 287.7 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.01999, allocations: 11.94 kB / 287.7 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.02011, allocations: 55.66 kB / 287.8 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.02013, allocations: 20 kB / 287.8 MB, free: 1.887 MB / 266.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.0001537/0.02029, allocations: 239.7 kB / 288 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.939e-05/0.02034, allocations: 63.66 kB / 288.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006699/0.02101, allocations: 364 kB / 288.5 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.02102, allocations: 4 kB / 288.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.02102, allocations: 0 / 288.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.02103, allocations: 3.984 kB / 288.5 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005793/0.02161, allocations: 0.634 MB / 289.1 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.02161, allocations: 0 / 289.1 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.933e-05/0.02165, allocations: 19.92 kB / 289.1 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.02165, allocations: 4 kB / 289.1 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.02167, allocations: 8 kB / 289.1 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.02167, allocations: 4 kB / 289.1 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.02167, allocations: 3.938 kB / 289.1 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.126/0.1477, allocations: 0.5196 MB / 289.7 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.1478, allocations: 50.48 kB / 289.7 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.1479, allocations: 10.97 kB / 289.7 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.1481, allocations: 21.47 kB / 289.7 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.1482, allocations: 37.08 kB / 289.8 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.1482, allocations: 15.81 kB / 289.8 MB, free: 23.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002771/0.1485, allocations: 286 kB / 290.1 MB, free: 23.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1485, allocations: 3.562 kB / 290.1 MB, free: 23.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005808/0.1491, allocations: 115.7 kB / 290.2 MB, free: 23.86 MB / 266.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (35): * Single equations (assignments): 29 * 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.001146/0.1502, allocations: 427.7 kB / 290.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006268/0.1508, allocations: 365.9 kB / 291 MB, free: 23.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1508, allocations: 0 / 291 MB, free: 23.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.1511, allocations: 209.6 kB / 291.2 MB, free: 23.51 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.1516, allocations: 108.3 kB / 291.3 MB, free: 23.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.1529, allocations: 0.7543 MB / 292 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.153, allocations: 120 kB / 292.1 MB, free: 23.01 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.1532, allocations: 64.78 kB / 292.2 MB, free: 23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.1533, allocations: 45.22 kB / 292.2 MB, free: 23 MB / 266.7 MB Notification: Performance of SimCode: time 1.794e-06/0.1533, allocations: 0 / 292.2 MB, free: 23 MB / 266.7 MB Notification: Performance of Templates: time 0.01148/0.1648, allocations: 5.449 MB / 297.7 MB, free: 22.24 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.365259018726647]