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.001436/0.001436, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0009877/0.0009877, allocations: 141.9 kB / 24.89 MB, free: 9.219 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.9725/0.9725, allocations: 173.3 MB / 201.5 MB, free: 9.172 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 1.253e-06/1.253e-06, allocations: 0 / 268.5 MB, free: 6.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021e-05/1.146e-05, allocations: 2.312 kB / 268.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00268/0.002691, allocations: 2.49 MB / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.004219, allocations: 1.351 MB / 272.4 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.004354, allocations: 11.94 kB / 272.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005551/0.004909, allocations: 242.8 kB / 272.6 MB, free: 1.992 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.005127, allocations: 163.1 kB / 272.8 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003907/0.005518, allocations: 307 kB / 273.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.005852, allocations: 475.6 kB / 273.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.006043, allocations: 147.9 kB / 273.7 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.006246, allocations: 275.3 kB / 273.9 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.006401, allocations: 171.5 kB / 274.1 MB, free: 484 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.26e-05/0.006444, allocations: 32 kB / 274.1 MB, free: 452 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.006622, allocations: 143.7 kB / 274.3 MB, free: 308 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.593e-05/0.006718, allocations: 135.5 kB / 274.4 MB, free: 172 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.313e-05/0.006811, allocations: 131.6 kB / 274.5 MB, free: 40 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.007194, allocations: 450.1 kB / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483e-06/0.007196, allocations: 0 / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.007197, allocations: 0 / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.007201, allocations: 0 / 275 MB, free: 15.6 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.0006782/0.007879, allocations: 0.7389 MB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.00791, allocations: 12.92 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.007979, allocations: 68.88 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.008266, allocations: 316.5 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.215e-05/0.008319, allocations: 84.72 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.008348, allocations: 40 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.008663, allocations: 356.4 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.008674, allocations: 0 / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.008692, allocations: 19.92 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.00871, allocations: 16.44 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.008852, allocations: 154 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009076/0.009759, allocations: 1.298 MB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.01001, allocations: 313.7 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.875e-05/0.01008, allocations: 88.25 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.01011, allocations: 19.94 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.01033, allocations: 312.4 kB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.313e-06/0.01033, allocations: 0 / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0003385/0.01067, allocations: 328.1 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.01071, allocations: 140.5 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.01094, allocations: 404.6 kB / 279.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.01097, allocations: 41.7 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.825e-05/0.01105, allocations: 193.8 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.0111, allocations: 87.33 kB / 279.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.103e-05/0.01119, allocations: 122.1 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.01127, allocations: 358.7 kB / 280.4 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.15e-05/0.01134, allocations: 77.5 kB / 280.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.01154, allocations: 244.5 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.01175, allocations: 327 kB / 281.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01175, allocations: 0 / 281.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0002635/0.01201, allocations: 330.7 kB / 281.4 MB, free: 8.648 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.01204, allocations: 46.09 kB / 281.4 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.01205, allocations: 8 kB / 281.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.01206, allocations: 8 kB / 281.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.982e-05/0.01215, allocations: 55.78 kB / 281.5 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.01216, allocations: 7.938 kB / 281.5 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.01226, allocations: 47.77 kB / 281.5 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.01229, allocations: 16 kB / 281.6 MB, free: 8.457 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,showValue.active,showValue2.active,showValue3.active,showValue4.active,showValue1.number,showValue5.active,showValue6.active,set1.expr[1],set1.expr[2],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,triggeredAdd.local_reset,triggeredAdd.local_set) * 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.0001217/0.01241, allocations: 207.5 kB / 281.8 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.01245, allocations: 47.89 kB / 281.8 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002431/0.0127, allocations: 273 kB / 282.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.0127, allocations: 8 kB / 282.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.0127, allocations: 0 / 282.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.01271, allocations: 7.922 kB / 282.1 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004186/0.01313, allocations: 0.5207 MB / 282.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.01313, allocations: 3.938 kB / 282.6 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.01317, allocations: 19.98 kB / 282.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.01317, allocations: 4 kB / 282.6 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.01319, allocations: 8 kB / 282.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.01319, allocations: 7.938 kB / 282.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.01319, allocations: 0 / 282.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.01343, allocations: 429.7 kB / 283.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.01347, allocations: 59.45 kB / 283.1 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.0135, allocations: 8 kB / 283.1 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-05/0.01359, allocations: 19.98 kB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.01365, allocations: 43.88 kB / 283.2 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.01367, allocations: 15.98 kB / 283.2 MB, free: 6.703 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.01378, allocations: 155.5 kB / 283.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01378, allocations: 0 / 283.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002425/0.01402, allocations: 119.8 kB / 283.5 MB, free: 6.434 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.001004/0.01503, allocations: 0.5497 MB / 284 MB, free: 6.113 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004041/0.01543, allocations: 320.3 kB / 284.4 MB, free: 5.773 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.01544, allocations: 8 kB / 284.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.01556, allocations: 189.8 kB / 284.5 MB, free: 5.559 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.01583, allocations: 102.3 kB / 284.6 MB, free: 5.461 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007003/0.01653, allocations: 0.7417 MB / 285.4 MB, free: 4.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.545e-05/0.0166, allocations: 118.3 kB / 285.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.0167, allocations: 55.53 kB / 285.6 MB, free: 4.484 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.01687, allocations: 143.2 kB / 285.7 MB, free: 4.344 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01687, allocations: 8 kB / 285.7 MB, free: 4.336 MB / 266.7 MB Notification: Performance of Templates: time 0.09516/0.112, allocations: 6.036 MB / 291.7 MB, free: 28.14 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 -s gbode -gbm=radauIIA3 -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: 2.6704772072844207]