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.00193/0.00193, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002247/0.002247, allocations: 211.5 kB / 23.74 MB, free: 4.66 MB / 14.72 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.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",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.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 51.91 kB / 378.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3062, allocations: 53.37 MB / 431.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004986/0.3112, allocations: 2.503 MB / 434.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002879/0.314, allocations: 1.502 MB / 435.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.3142, allocations: 19.88 kB / 435.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008119/0.315, allocations: 246.9 kB / 435.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.3155, allocations: 211 kB / 436.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006625/0.3162, allocations: 270.6 kB / 436.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000621/0.3168, allocations: 483.7 kB / 436.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003242/0.3171, allocations: 142.3 kB / 437 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.3174, allocations: 203.2 kB / 437.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002955/0.3177, allocations: 226.9 kB / 437.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.098e-05/0.3178, allocations: 36 kB / 437.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.318, allocations: 135.8 kB / 437.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.3182, allocations: 123.6 kB / 437.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.3184, allocations: 226.6 kB / 437.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007525/0.3192, allocations: 0.5767 MB / 438.5 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3192, allocations: 0 / 438.5 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3192, allocations: 0 / 438.5 MB, free: 24 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3192, allocations: 0 / 438.5 MB, free: 24 kB / 334.1 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.001457/0.3206, allocations: 0.7988 MB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3207, allocations: 8.031 kB / 439.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.3209, allocations: 76.55 kB / 439.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000557/0.3215, allocations: 333.5 kB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.784e-05/0.3216, allocations: 88.97 kB / 439.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.704e-05/0.3217, allocations: 47.88 kB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007304/0.3224, allocations: 424.7 kB / 440.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3224, allocations: 0 / 440.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.3225, allocations: 16 kB / 440.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.3225, allocations: 12.44 kB / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005389/0.323, allocations: 265.5 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.3252, allocations: 1.632 MB / 442.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/0.3259, allocations: 284 kB / 442.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.3261, allocations: 114.4 kB / 442.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.207e-05/0.3262, allocations: 4 kB / 442.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005259/0.3267, allocations: 329.3 kB / 442.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.683e-06/0.3267, allocations: 0 / 442.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009929/0.3277, allocations: 476.8 kB / 443.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.3278, allocations: 166.2 kB / 443.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006032/0.3284, allocations: 497.4 kB / 444 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.3285, allocations: 45.69 kB / 444 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.3287, allocations: 236.9 kB / 444.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.203e-05/0.3287, allocations: 91.36 kB / 444.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.3289, allocations: 118.1 kB / 444.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3291, allocations: 358.7 kB / 444.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.3294, allocations: 116.9 kB / 444.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.3297, allocations: 266 kB / 445.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.3303, allocations: 398.9 kB / 445.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3303, allocations: 8 kB / 445.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008028/0.3311, allocations: 470.4 kB / 446.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.3312, allocations: 34.17 kB / 446.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.3312, allocations: 4 kB / 446.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.3312, allocations: 12 kB / 446.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.3314, allocations: 47.84 kB / 446.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.3314, allocations: 4 kB / 446.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.3316, allocations: 55.66 kB / 446.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.3317, allocations: 20 kB / 446.2 MB, free: 7.777 MB / 350.1 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.0003055/0.332, allocations: 252.6 kB / 446.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-05/0.332, allocations: 55.61 kB / 446.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007382/0.3328, allocations: 388.6 kB / 446.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.3328, allocations: 4 kB / 446.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3328, allocations: 0 / 446.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.3328, allocations: 3.984 kB / 446.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.3339, allocations: 0.7161 MB / 447.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3339, allocations: 0 / 447.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.618e-05/0.334, allocations: 15.94 kB / 447.6 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.334, allocations: 0 / 447.6 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.334, allocations: 11.98 kB / 447.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.334, allocations: 4 kB / 447.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.334, allocations: 0 / 447.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007623/0.3348, allocations: 0.4994 MB / 448.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.3349, allocations: 51.59 kB / 448.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.288e-05/0.3349, allocations: 8 kB / 448.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.3351, allocations: 27.91 kB / 448.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.3353, allocations: 47.88 kB / 448.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.395e-05/0.3353, allocations: 15.98 kB / 448.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004066/0.3357, allocations: 335.1 kB / 448.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3357, allocations: 0 / 448.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004713/0.3362, allocations: 111.8 kB / 448.7 MB, free: 5.156 MB / 350.1 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 (34): * Single equations (assignments): 28 * 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.001621/0.3378, allocations: 458.3 kB / 449.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006888/0.3385, allocations: 363.9 kB / 449.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3385, allocations: 0 / 449.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.3388, allocations: 195.3 kB / 449.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005504/0.3394, allocations: 85.94 kB / 449.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.3408, allocations: 0.8002 MB / 450.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.3413, allocations: 0.8317 MB / 451.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001874/0.3415, allocations: 83.23 kB / 451.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.3416, allocations: 43.42 kB / 451.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3416, allocations: 0 / 451.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of Templates: time 0.01149/0.3531, allocations: 5.444 MB / 457 MB, free: 12.98 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.947093192953616]