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.001144/0.001144, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003895/0.003895, allocations: 160.7 kB / 24.7 MB, free: 9.41 MB / 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 0.865/0.865, allocations: 177.1 MB / 205 MB, free: 5.727 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.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 1.293e-06/1.293e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.56e-05/1.689e-05, allocations: 2.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002439/0.002456, allocations: 2.412 MB / 328.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.003921, allocations: 1.43 MB / 329.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.004058, allocations: 15.88 kB / 329.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005545/0.004612, allocations: 254.1 kB / 329.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002877/0.0049, allocations: 198.9 kB / 330.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.005253, allocations: 279.2 kB / 330.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.005589, allocations: 487.5 kB / 330.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.00579, allocations: 142.3 kB / 331 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.005982, allocations: 275.3 kB / 331.3 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.006137, allocations: 175.4 kB / 331.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.006178, allocations: 36 kB / 331.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.006329, allocations: 123.7 kB / 331.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.472e-05/0.006424, allocations: 135.5 kB / 331.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.536e-05/0.006519, allocations: 135.6 kB / 331.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.006963, allocations: 0.5721 MB / 332.5 MB, free: 8.762 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.006965, allocations: 0 / 332.5 MB, free: 8.762 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006966, allocations: 0 / 332.5 MB, free: 8.762 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.006971, allocations: 0 / 332.5 MB, free: 8.762 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.0008382/0.007809, allocations: 0.7937 MB / 333.2 MB, free: 7.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.007841, allocations: 8.031 kB / 333.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.008023, allocations: 76.55 kB / 333.3 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.00837, allocations: 331.7 kB / 333.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.045e-05/0.00843, allocations: 80.97 kB / 333.7 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.906e-05/0.008469, allocations: 48.3 kB / 333.8 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004119/0.008881, allocations: 450 kB / 334.2 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.008892, allocations: 0 / 334.2 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.008914, allocations: 19.98 kB / 334.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.008929, allocations: 12.5 kB / 334.2 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/0.009233, allocations: 299.4 kB / 334.5 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.01029, allocations: 1.5 MB / 336 MB, free: 4.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.01064, allocations: 301.6 kB / 336.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.01078, allocations: 144.2 kB / 336.5 MB, free: 4.492 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.01081, allocations: 12 kB / 336.5 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.0111, allocations: 361.5 kB / 336.8 MB, free: 4.078 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.343e-06/0.0111, allocations: 3.938 kB / 336.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005638/0.01167, allocations: 0.5294 MB / 337.4 MB, free: 3.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.01172, allocations: 132.5 kB / 337.5 MB, free: 3.359 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.01205, allocations: 0.5013 MB / 338 MB, free: 2.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.01208, allocations: 37.7 kB / 338 MB, free: 2.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.0122, allocations: 240.9 kB / 338.3 MB, free: 2.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.01225, allocations: 83.38 kB / 338.4 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.355e-05/0.01235, allocations: 118.2 kB / 338.5 MB, free: 2.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.01244, allocations: 358.8 kB / 338.8 MB, free: 2.008 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.01259, allocations: 142.6 kB / 339 MB, free: 1.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.0128, allocations: 316.6 kB / 339.3 MB, free: 1.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.01311, allocations: 419.3 kB / 339.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.01311, allocations: 0 / 339.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004396/0.01355, allocations: 0.4927 MB / 340.2 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.01358, allocations: 41.75 kB / 340.2 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.01359, allocations: 4 kB / 340.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.0136, allocations: 8 kB / 340.2 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.158e-05/0.01367, allocations: 43.86 kB / 340.3 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.01368, allocations: 4 kB / 340.3 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.0138, allocations: 59.64 kB / 340.3 MB, free: 336 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.01382, allocations: 20 kB / 340.4 MB, free: 316 kB / 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.0001636/0.01398, allocations: 252.6 kB / 340.6 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.01403, allocations: 51.7 kB / 340.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004105/0.01444, allocations: 423.3 kB / 341.1 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.01445, allocations: 4 kB / 341.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.01445, allocations: 3.984 kB / 341.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.01446, allocations: 0 / 341.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005538/0.01501, allocations: 0.6269 MB / 341.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01501, allocations: 4 kB / 341.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-05/0.01505, allocations: 19.86 kB / 341.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.01505, allocations: 4 kB / 341.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.01507, allocations: 11.98 kB / 341.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.01507, allocations: 4.062 kB / 341.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.01507, allocations: 4 kB / 341.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.01547, allocations: 0.5207 MB / 342.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.01551, allocations: 51.53 kB / 342.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.479e-05/0.01554, allocations: 15.92 kB / 342.3 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.492e-05/0.01564, allocations: 23.98 kB / 342.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.246e-05/0.01572, allocations: 51.91 kB / 342.4 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.01574, allocations: 12 kB / 342.4 MB, free: 14.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002132/0.01595, allocations: 331.1 kB / 342.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01595, allocations: 4 kB / 342.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002663/0.01622, allocations: 107.8 kB / 342.8 MB, free: 13.7 MB / 314.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.0006984/0.01691, allocations: 480.7 kB / 343.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004181/0.01733, allocations: 430.6 kB / 343.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.01734, allocations: 4 kB / 343.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.01753, allocations: 244.2 kB / 344 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.01784, allocations: 95.7 kB / 344.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008447/0.01868, allocations: 0.853 MB / 344.9 MB, free: 11.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001464/0.01883, allocations: 242.3 kB / 345.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.529e-05/0.0189, allocations: 44.48 kB / 345.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0189, allocations: 0 / 345.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of Templates: time 0.005365/0.02427, allocations: 6.255 MB / 351.5 MB, free: 5.156 MB / 314.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=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: 5.156172879971564]