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.0009751/0.0009751, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001414/0.001414, allocations: 165 kB / 24.56 MB, free: 8 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.029/1.029, allocations: 177.1 MB / 205 MB, free: 5.617 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.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.327e-05, allocations: 2.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003986/0.00401, allocations: 2.51 MB / 275.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.006488, allocations: 1.464 MB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.006731, allocations: 15.88 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008038/0.007534, allocations: 242.8 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005497/0.008084, allocations: 214.8 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007103/0.008795, allocations: 275.2 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006365/0.009431, allocations: 491.5 kB / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.009716, allocations: 134.3 kB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.0101, allocations: 271.4 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000256/0.01036, allocations: 183.4 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.01042, allocations: 36 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.01067, allocations: 115.9 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.01082, allocations: 135.5 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.01097, allocations: 127.6 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006438/0.01161, allocations: 458 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.01162, allocations: 4 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01162, allocations: 0 / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.01163, allocations: 0 / 279.6 MB, free: 10.89 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.001314/0.01294, allocations: 0.8831 MB / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.01298, allocations: 12.03 kB / 280.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/0.01333, allocations: 104.5 kB / 280.6 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004912/0.01382, allocations: 343.3 kB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.321e-05/0.0139, allocations: 84.91 kB / 281 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.298e-05/0.01396, allocations: 44.31 kB / 281 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006041/0.01456, allocations: 410.3 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.01457, allocations: 0 / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.01461, allocations: 12 kB / 281.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.139e-05/0.01464, allocations: 12.5 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003424/0.01498, allocations: 192.5 kB / 281.7 MB, free: 8.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.01655, allocations: 1.942 MB / 283.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.0169, allocations: 259.1 kB / 283.9 MB, free: 6.348 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.01704, allocations: 124.7 kB / 284 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.431e-05/0.01708, allocations: 8 kB / 284 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004111/0.01749, allocations: 328.7 kB / 284.3 MB, free: 5.828 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.01749, allocations: 0 / 284.3 MB, free: 5.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0008605/0.01835, allocations: 461.5 kB / 284.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/0.01843, allocations: 136.5 kB / 284.9 MB, free: 5.191 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005122/0.01894, allocations: 478.4 kB / 285.4 MB, free: 4.707 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.01898, allocations: 45.69 kB / 285.4 MB, free: 4.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.01918, allocations: 283.7 kB / 285.7 MB, free: 4.371 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.312e-05/0.01926, allocations: 91.36 kB / 285.8 MB, free: 4.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.01943, allocations: 123.8 kB / 285.9 MB, free: 4.152 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.01962, allocations: 0.5274 MB / 286.4 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.0198, allocations: 94.66 kB / 286.5 MB, free: 3.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.0201, allocations: 318.3 kB / 286.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/0.02054, allocations: 380.4 kB / 287.2 MB, free: 2.652 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.02055, allocations: 0 / 287.2 MB, free: 2.652 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006808/0.02123, allocations: 444.8 kB / 287.6 MB, free: 2.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.02127, allocations: 37.69 kB / 287.7 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.02128, allocations: 4 kB / 287.7 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.0213, allocations: 8 kB / 287.7 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.02146, allocations: 44.33 kB / 287.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.02147, allocations: 11.94 kB / 287.7 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.02168, allocations: 55.66 kB / 287.8 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.02171, allocations: 20 kB / 287.8 MB, free: 2.016 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.0002272/0.02194, allocations: 247.4 kB / 288 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.335e-05/0.02203, allocations: 63.66 kB / 288.1 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005657/0.0226, allocations: 352.8 kB / 288.5 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.02261, allocations: 8 kB / 288.5 MB, free: 1.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.02261, allocations: 8 kB / 288.5 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.02262, allocations: 0 / 288.5 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008648/0.02348, allocations: 0.63 MB / 289.1 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.02349, allocations: 4 kB / 289.1 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.286e-05/0.02355, allocations: 15.94 kB / 289.1 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.02356, allocations: 4 kB / 289.1 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.02359, allocations: 11.98 kB / 289.1 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.02359, allocations: 0 / 289.1 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.02359, allocations: 7.938 kB / 289.1 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.02421, allocations: 0.5259 MB / 289.7 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.02428, allocations: 47.78 kB / 289.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.411e-05/0.02435, allocations: 16 kB / 289.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.02453, allocations: 19.98 kB / 289.7 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.02464, allocations: 35.94 kB / 289.8 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.479e-05/0.02468, allocations: 19.98 kB / 289.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002888/0.02497, allocations: 283.1 kB / 290.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.02497, allocations: 3.938 kB / 290.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004744/0.02544, allocations: 111.8 kB / 290.2 MB, free: 15.5 MB / 282.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.001214/0.02666, allocations: 427.8 kB / 290.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005766/0.02723, allocations: 370.9 kB / 291 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.02723, allocations: 0 / 291 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.02749, allocations: 215.5 kB / 291.2 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.028, allocations: 98.47 kB / 291.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.0292, allocations: 0.7486 MB / 292 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.0293, allocations: 126.2 kB / 292.2 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001737/0.02947, allocations: 63.41 kB / 292.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.02959, allocations: 44.48 kB / 292.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.02959, allocations: 4 kB / 292.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of Templates: time 0.00837/0.03796, allocations: 5.804 MB / 298.1 MB, free: 7.715 MB / 282.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: 2.953826254233718]