Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009154/0.0009154, allocations: 83.89 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008978/0.0008978, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9517/0.9517, allocations: 173.4 MB / 201.1 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.845e-05/2.052e-05, allocations: 6.25 kB / 268 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002943/0.002963, allocations: 2.468 MB / 270.5 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.005014, allocations: 1.324 MB / 271.8 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.005195, allocations: 11.88 kB / 271.8 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006822/0.005877, allocations: 246.9 kB / 272 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003178/0.006195, allocations: 167.1 kB / 272.2 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005505/0.006745, allocations: 307 kB / 272.5 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004332/0.007178, allocations: 479.6 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.007435, allocations: 145.9 kB / 273.1 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/0.007695, allocations: 271.3 kB / 273.4 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.007887, allocations: 167.5 kB / 273.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-05/0.007942, allocations: 36 kB / 273.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.008155, allocations: 147.6 kB / 273.7 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.008273, allocations: 123.6 kB / 273.8 MB, free: 0.5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.008402, allocations: 135.6 kB / 274 MB, free: 376 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005069/0.008909, allocations: 454.3 kB / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.008911, allocations: 0 / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.008912, allocations: 0 / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.008917, allocations: 0 / 274.4 MB, free: 15.92 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.001007/0.009924, allocations: 0.8715 MB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.009959, allocations: 12.86 kB / 275.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003666/0.01033, allocations: 100.5 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004595/0.01078, allocations: 343.3 kB / 275.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.757e-05/0.01086, allocations: 84.72 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-05/0.01091, allocations: 40 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005142/0.01142, allocations: 398 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.01144, allocations: 0 / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.01147, allocations: 19.92 kB / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.01149, allocations: 16.5 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002831/0.01177, allocations: 184.5 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.0132, allocations: 1.946 MB / 278.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.01359, allocations: 275 kB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.01372, allocations: 112.7 kB / 278.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.649e-05/0.01377, allocations: 11.94 kB / 278.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003213/0.01409, allocations: 343.6 kB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.01409, allocations: 3.938 kB / 279.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.000634/0.01473, allocations: 449.5 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.01478, allocations: 144.4 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.01517, allocations: 470.4 kB / 280.2 MB, free: 9.734 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.0152, allocations: 41.69 kB / 280.2 MB, free: 9.688 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.01536, allocations: 279.7 kB / 280.5 MB, free: 9.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.412e-05/0.01544, allocations: 99.25 kB / 280.6 MB, free: 9.312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.01558, allocations: 123.8 kB / 280.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.01573, allocations: 0.5313 MB / 281.2 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.01587, allocations: 98.89 kB / 281.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.0161, allocations: 310.4 kB / 281.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.01646, allocations: 389.5 kB / 282 MB, free: 7.676 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.01646, allocations: 4 kB / 282 MB, free: 7.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007607/0.01722, allocations: 436.8 kB / 282.5 MB, free: 7.227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.01726, allocations: 42.16 kB / 282.5 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.01727, allocations: 12 kB / 282.5 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.01729, allocations: 4 kB / 282.5 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.0174, allocations: 47.86 kB / 282.6 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.01741, allocations: 7.984 kB / 282.6 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.01757, allocations: 43.77 kB / 282.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.0176, allocations: 20 kB / 282.6 MB, free: 7.047 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.000164/0.01777, allocations: 259.2 kB / 282.9 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-05/0.01784, allocations: 59.72 kB / 282.9 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/0.01833, allocations: 382.7 kB / 283.3 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.01833, allocations: 4 kB / 283.3 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01834, allocations: 0 / 283.3 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.01834, allocations: 3.984 kB / 283.3 MB, free: 6.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007084/0.01905, allocations: 0.6603 MB / 284 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01906, allocations: 0 / 284 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.525e-05/0.0191, allocations: 15.94 kB / 284 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.0191, allocations: 4 kB / 284 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.01913, allocations: 19.98 kB / 284 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.01913, allocations: 0 / 284 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01913, allocations: 0 / 284 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000506/0.01964, allocations: 0.556 MB / 284.6 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.01968, allocations: 51.64 kB / 284.6 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.455e-05/0.01973, allocations: 8 kB / 284.6 MB, free: 4.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.01986, allocations: 19.98 kB / 284.7 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.152e-05/0.01995, allocations: 47.67 kB / 284.7 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.01998, allocations: 19.98 kB / 284.7 MB, free: 4.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000219/0.0202, allocations: 283.1 kB / 285 MB, free: 4.566 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0202, allocations: 0 / 285 MB, free: 4.566 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.02061, allocations: 123.7 kB / 285.1 MB, free: 4.445 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: 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.001012/0.02162, allocations: 434.8 kB / 285.5 MB, free: 4.156 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004568/0.02207, allocations: 368 kB / 285.9 MB, free: 3.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.02208, allocations: 0 / 285.9 MB, free: 3.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.02229, allocations: 212.7 kB / 286.1 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.02273, allocations: 105.7 kB / 286.2 MB, free: 3.438 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009358/0.02367, allocations: 0.7525 MB / 287 MB, free: 2.641 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.753e-05/0.02376, allocations: 122.3 kB / 287.1 MB, free: 2.504 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001439/0.0239, allocations: 71.27 kB / 287.2 MB, free: 2.434 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.085e-05/0.02399, allocations: 44.48 kB / 287.2 MB, free: 2.391 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02399, allocations: 0 / 287.2 MB, free: 2.391 MB / 266.7 MB Notification: Performance of Templates: time 0.1076/0.1316, allocations: 5.677 MB / 292.9 MB, free: 28.86 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1073372131213546]