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.0008714/0.0008714, allocations: 84 kB / 21.43 MB, free: 3.129 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.00326/0.00326, allocations: 146.2 kB / 24.68 MB, free: 9.43 MB / 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.848/0.848, allocations: 173.4 MB / 201.2 MB, free: 9.449 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.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.0.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.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.271e-05, allocations: 6.219 kB / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002531/0.002554, allocations: 2.362 MB / 322.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.004145, allocations: 1.289 MB / 323.3 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.004296, allocations: 11.88 kB / 323.4 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.004868, allocations: 246.8 kB / 323.6 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000263/0.005131, allocations: 163.1 kB / 323.8 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004509/0.005582, allocations: 302.1 kB / 324 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.005927, allocations: 495.5 kB / 324.5 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.006133, allocations: 138.3 kB / 324.7 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.006324, allocations: 275.3 kB / 324.9 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.006484, allocations: 171.5 kB / 325.1 MB, free: 408 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.986e-05/0.006524, allocations: 36 kB / 325.1 MB, free: 372 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.006694, allocations: 131.7 kB / 325.3 MB, free: 240 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.006806, allocations: 147.5 kB / 325.4 MB, free: 92 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.006912, allocations: 127.7 kB / 325.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007422/0.007655, allocations: 0.5721 MB / 326.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.007657, allocations: 0 / 326.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.007658, allocations: 0 / 326.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.007666, allocations: 0 / 326.1 MB, free: 15.39 MB / 298.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.0008841/0.00855, allocations: 0.7794 MB / 326.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.008584, allocations: 8.922 kB / 326.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.948e-05/0.008663, allocations: 64.56 kB / 327 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.009014, allocations: 327.7 kB / 327.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.826e-05/0.009083, allocations: 92.72 kB / 327.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.009115, allocations: 35.94 kB / 327.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004335/0.009548, allocations: 453.7 kB / 327.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.00956, allocations: 0 / 327.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.009583, allocations: 16 kB / 327.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.009599, allocations: 20.48 kB / 327.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.009905, allocations: 291.4 kB / 328.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.01095, allocations: 1.5 MB / 329.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/0.01132, allocations: 301.7 kB / 330 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.01145, allocations: 148.2 kB / 330.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.01149, allocations: 15.94 kB / 330.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002844/0.01178, allocations: 363.1 kB / 330.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.01178, allocations: 3.984 kB / 330.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005864/0.01237, allocations: 0.5441 MB / 331 MB, free: 10.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.01242, allocations: 148.5 kB / 331.2 MB, free: 9.977 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/0.01274, allocations: 493.3 kB / 331.7 MB, free: 9.488 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.01277, allocations: 37.7 kB / 331.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.01287, allocations: 225 kB / 331.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.01293, allocations: 91.3 kB / 332 MB, free: 9.133 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.922e-05/0.01303, allocations: 118.1 kB / 332.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.203e-05/0.01312, allocations: 358.7 kB / 332.5 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.01327, allocations: 150.6 kB / 332.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.01373, allocations: 324.6 kB / 332.9 MB, free: 8.117 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003282/0.01406, allocations: 423.4 kB / 333.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.01406, allocations: 3.938 kB / 333.3 MB, free: 7.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004386/0.0145, allocations: 0.5125 MB / 333.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.01453, allocations: 37.69 kB / 333.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.01454, allocations: 4 kB / 333.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.01455, allocations: 4 kB / 333.9 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.548e-05/0.01462, allocations: 43.86 kB / 333.9 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.01463, allocations: 8 kB / 334 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.01475, allocations: 51.75 kB / 334 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.01478, allocations: 20 kB / 334 MB, free: 6.93 MB / 298.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.0001653/0.01494, allocations: 256.8 kB / 334.3 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.01498, allocations: 43.72 kB / 334.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004356/0.01542, allocations: 456.5 kB / 334.8 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.01542, allocations: 4 kB / 334.8 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.01542, allocations: 8.156 kB / 334.8 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.01543, allocations: 7.922 kB / 334.8 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005787/0.01601, allocations: 0.6604 MB / 335.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.01601, allocations: 4 kB / 335.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.853e-05/0.01604, allocations: 11.94 kB / 335.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.01604, allocations: 4 kB / 335.5 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.01606, allocations: 11.98 kB / 335.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.01606, allocations: 4 kB / 335.5 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.01606, allocations: 0 / 335.5 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004181/0.01648, allocations: 0.5541 MB / 336 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.01652, allocations: 43.66 kB / 336.1 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.01655, allocations: 19.98 kB / 336.1 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.563e-05/0.01665, allocations: 19.98 kB / 336.1 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.01673, allocations: 43.88 kB / 336.2 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.01675, allocations: 19.98 kB / 336.2 MB, free: 4.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002009/0.01695, allocations: 315.1 kB / 336.5 MB, free: 4.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01695, allocations: 0 / 336.5 MB, free: 4.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002694/0.01722, allocations: 127.7 kB / 336.6 MB, free: 4.242 MB / 298.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.0006971/0.01792, allocations: 494 kB / 337.1 MB, free: 3.938 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004204/0.01834, allocations: 435 kB / 337.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01834, allocations: 0.9375 kB / 337.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.01854, allocations: 244.8 kB / 337.8 MB, free: 3.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.01885, allocations: 89.42 kB / 337.8 MB, free: 3.145 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008435/0.01969, allocations: 0.8647 MB / 338.7 MB, free: 2.234 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.01983, allocations: 233.1 kB / 338.9 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.988e-05/0.01991, allocations: 44.48 kB / 339 MB, free: 1.945 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01991, allocations: 4 kB / 339 MB, free: 1.941 MB / 298.7 MB Notification: Performance of Templates: time 0.005988/0.0259, allocations: 6.446 MB / 345.4 MB, free: 11.5 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.686421573162079]