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.0009886/0.0009886, allocations: 75.77 kB / 22.46 MB, free: 2.082 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.0008703/0.0008703, allocations: 163.4 kB / 25.75 MB, free: 8.93 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.8443/0.8443, allocations: 158.6 MB / 187.5 MB, free: 2.93 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.753e-06/1.753e-06, allocations: 3.938 kB / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.163e-05/2.338e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.006405/0.006429, allocations: 2.457 MB / 253.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004811/0.01124, allocations: 1.24 MB / 254.8 MB, free: 4.074 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.01142, allocations: 15.88 kB / 254.8 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006694/0.01209, allocations: 246.8 kB / 255.1 MB, free: 3.816 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.01242, allocations: 167.1 kB / 255.2 MB, free: 3.652 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.01296, allocations: 283.2 kB / 255.5 MB, free: 3.375 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002555/0.01551, allocations: 475.6 kB / 256 MB, free: 2.906 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002682/0.01578, allocations: 146.1 kB / 256.1 MB, free: 2.762 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.01608, allocations: 275.3 kB / 256.4 MB, free: 2.492 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.01628, allocations: 167.5 kB / 256.5 MB, free: 2.328 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.01634, allocations: 36 kB / 256.6 MB, free: 2.293 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.01657, allocations: 135.8 kB / 256.7 MB, free: 2.16 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.01669, allocations: 127.6 kB / 256.8 MB, free: 2.035 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.01683, allocations: 139.5 kB / 257 MB, free: 1.898 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.01728, allocations: 446.2 kB / 257.4 MB, free: 1.457 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.01728, allocations: 4 kB / 257.4 MB, free: 1.453 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.01728, allocations: 0 / 257.4 MB, free: 1.453 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.01729, allocations: 0 / 257.4 MB, free: 1.453 MB / 234.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.0009035/0.01819, allocations: 0.8831 MB / 258.3 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.01823, allocations: 11.98 kB / 258.3 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.01834, allocations: 88.59 kB / 258.4 MB, free: 432 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.01871, allocations: 343.2 kB / 258.7 MB, free: 60 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.042e-05/0.01879, allocations: 84.97 kB / 258.8 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.586e-05/0.01882, allocations: 40.38 kB / 258.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.01924, allocations: 410.3 kB / 259.3 MB, free: 15.47 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.01925, allocations: 0 / 259.3 MB, free: 15.47 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.01928, allocations: 12 kB / 259.3 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.651e-05/0.0193, allocations: 16.5 kB / 259.3 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002204/0.01952, allocations: 192.4 kB / 259.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.0208, allocations: 1.942 MB / 261.4 MB, free: 13.23 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/0.02115, allocations: 275 kB / 261.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.02126, allocations: 116.7 kB / 261.8 MB, free: 12.78 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.0213, allocations: 11.98 kB / 261.8 MB, free: 12.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.02158, allocations: 335.8 kB / 262.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 1.392e-06/0.02158, allocations: 4 kB / 262.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005282/0.02211, allocations: 442.9 kB / 262.6 MB, free: 11.93 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.02217, allocations: 136.5 kB / 262.7 MB, free: 11.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003171/0.02249, allocations: 478.4 kB / 263.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.02251, allocations: 37.7 kB / 263.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.02266, allocations: 291.5 kB / 263.5 MB, free: 10.95 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.726e-05/0.02272, allocations: 87.38 kB / 263.6 MB, free: 10.86 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.02283, allocations: 127.8 kB / 263.7 MB, free: 10.73 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.02297, allocations: 0.5352 MB / 264.2 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.02308, allocations: 94.66 kB / 264.3 MB, free: 10.08 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.02327, allocations: 310.4 kB / 264.6 MB, free: 9.688 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.02357, allocations: 389.7 kB / 265 MB, free: 9.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.02357, allocations: 8 kB / 265 MB, free: 9.211 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000432/0.024, allocations: 440.1 kB / 265.5 MB, free: 8.762 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.02404, allocations: 33.7 kB / 265.5 MB, free: 8.723 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.02404, allocations: 4.469 kB / 265.5 MB, free: 8.719 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.02406, allocations: 12 kB / 265.5 MB, free: 8.707 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.137e-05/0.02415, allocations: 47.91 kB / 265.5 MB, free: 8.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.02416, allocations: 7.938 kB / 265.6 MB, free: 8.652 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.02428, allocations: 51.72 kB / 265.6 MB, free: 8.602 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.02431, allocations: 20 kB / 265.6 MB, free: 8.582 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.0001522/0.02447, allocations: 255.2 kB / 265.9 MB, free: 8.316 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.93e-05/0.02453, allocations: 67.95 kB / 265.9 MB, free: 8.25 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004086/0.02493, allocations: 372.8 kB / 266.3 MB, free: 7.867 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.02494, allocations: 4 kB / 266.3 MB, free: 7.863 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.02494, allocations: 0 / 266.3 MB, free: 7.863 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.02495, allocations: 0 / 266.3 MB, free: 7.863 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006007/0.02555, allocations: 0.6573 MB / 267 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.02555, allocations: 0 / 267 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.673e-05/0.02559, allocations: 15.92 kB / 267 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.02559, allocations: 4 kB / 267 MB, free: 7.141 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.02561, allocations: 19.98 kB / 267 MB, free: 7.121 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.02561, allocations: 4 kB / 267 MB, free: 7.117 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02562, allocations: 0 / 267 MB, free: 7.117 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.02603, allocations: 0.5526 MB / 267.6 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.732e-05/0.02607, allocations: 47.58 kB / 267.6 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.0261, allocations: 12 kB / 267.6 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.798e-05/0.0262, allocations: 19.98 kB / 267.6 MB, free: 6.449 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.02629, allocations: 51.78 kB / 267.7 MB, free: 6.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.02631, allocations: 12 kB / 267.7 MB, free: 6.387 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001733/0.02648, allocations: 287.1 kB / 268 MB, free: 6.105 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.02648, allocations: 4 kB / 268 MB, free: 6.102 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003019/0.02678, allocations: 123.7 kB / 268.1 MB, free: 5.98 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.000828/0.02761, allocations: 446.3 kB / 268.5 MB, free: 5.59 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003768/0.02799, allocations: 363.1 kB / 268.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.02799, allocations: 0 / 268.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.02816, allocations: 225.3 kB / 269.1 MB, free: 4.965 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.0285, allocations: 98.36 kB / 269.2 MB, free: 4.871 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008273/0.02933, allocations: 0.7438 MB / 270 MB, free: 4.082 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.629e-05/0.0294, allocations: 122.3 kB / 270.1 MB, free: 3.945 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.02953, allocations: 71.52 kB / 270.1 MB, free: 3.871 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.749e-05/0.02961, allocations: 44.48 kB / 270.2 MB, free: 3.828 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.02961, allocations: 0 / 270.2 MB, free: 3.828 MB / 250.7 MB Notification: Performance of Templates: time 0.008443/0.03805, allocations: 5.697 MB / 275.9 MB, free: 14.13 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: 2.791241250000894]