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.00159/0.00159, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001708/0.001708, allocations: 211.5 kB / 24.48 MB, free: 3.941 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.462/1.462, allocations: 230.6 MB / 258.3 MB, free: 7.734 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.001635/0.001635, allocations: 47.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.292, allocations: 53.37 MB / 432.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00505/0.2971, allocations: 2.402 MB / 434.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003179/0.3002, allocations: 1.425 MB / 436.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.3005, allocations: 7.938 kB / 436.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009789/0.3015, allocations: 250.9 kB / 436.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006573/0.3022, allocations: 215 kB / 436.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008675/0.303, allocations: 263.4 kB / 436.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007704/0.3038, allocations: 487.7 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003569/0.3042, allocations: 138.1 kB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.3044, allocations: 203.2 kB / 437.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.3047, allocations: 207 kB / 437.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.92e-05/0.3048, allocations: 32 kB / 437.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003078/0.3051, allocations: 127.9 kB / 438.1 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.3053, allocations: 127.5 kB / 438.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.3055, allocations: 171 kB / 438.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008666/0.3064, allocations: 0.5705 MB / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3064, allocations: 0 / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3064, allocations: 0 / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3064, allocations: 4 kB / 438.9 MB, free: 76 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.001767/0.3081, allocations: 0.7951 MB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3082, allocations: 12.03 kB / 439.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.3085, allocations: 68.55 kB / 439.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.3091, allocations: 336.5 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.3092, allocations: 84.97 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.3093, allocations: 39.94 kB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007656/0.3101, allocations: 457.5 kB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3101, allocations: 3.938 kB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.02e-05/0.3101, allocations: 16 kB / 440.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.3102, allocations: 12.44 kB / 440.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005564/0.3107, allocations: 295.2 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.3129, allocations: 1.508 MB / 442.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006683/0.3135, allocations: 297.7 kB / 442.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002586/0.3138, allocations: 144.2 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.838e-05/0.3138, allocations: 11.98 kB / 443 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005468/0.3144, allocations: 355.7 kB / 443.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.595e-06/0.3144, allocations: 0 / 443.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001086/0.3155, allocations: 0.5217 MB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3156, allocations: 144.5 kB / 444 MB, free: 10.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006169/0.3162, allocations: 0.4973 MB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/0.3162, allocations: 37.7 kB / 444.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.3165, allocations: 244.9 kB / 444.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.985e-05/0.3166, allocations: 91.36 kB / 444.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.3167, allocations: 114.2 kB / 444.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.3169, allocations: 358.7 kB / 445.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.3172, allocations: 150.6 kB / 445.4 MB, free: 9.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.3176, allocations: 312.6 kB / 445.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005827/0.3182, allocations: 398.8 kB / 446.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.3182, allocations: 4 kB / 446.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008971/0.3191, allocations: 0.4965 MB / 446.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.668e-05/0.3192, allocations: 41.69 kB / 446.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3192, allocations: 4 kB / 446.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.3192, allocations: 8.453 kB / 446.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3193, allocations: 43.86 kB / 446.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.3194, allocations: 15.92 kB / 446.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.3196, allocations: 55.66 kB / 446.8 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.3197, allocations: 20 kB / 446.8 MB, free: 7.609 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.0002939/0.3199, allocations: 252.5 kB / 447.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/0.32, allocations: 47.72 kB / 447.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007888/0.3208, allocations: 423.4 kB / 447.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.3208, allocations: 4 kB / 447.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3208, allocations: 0 / 447.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3208, allocations: 4 kB / 447.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.3219, allocations: 0.6308 MB / 448.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3219, allocations: 0 / 448.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.543e-05/0.322, allocations: 12 kB / 448.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.322, allocations: 64 / 448.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.322, allocations: 19.98 kB / 448.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.322, allocations: 7.938 kB / 448.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.322, allocations: 0 / 448.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008394/0.3229, allocations: 0.5238 MB / 448.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.446e-05/0.323, allocations: 59.52 kB / 448.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.958e-05/0.323, allocations: 12 kB / 448.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3233, allocations: 23.97 kB / 448.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.3234, allocations: 39.94 kB / 448.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.388e-05/0.3234, allocations: 16 kB / 448.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004086/0.3238, allocations: 339.1 kB / 449.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3238, allocations: 0 / 449.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005008/0.3243, allocations: 111.8 kB / 449.3 MB, free: 5.012 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 (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.00195/0.3263, allocations: 484.3 kB / 449.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000864/0.3271, allocations: 434.5 kB / 450.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3271, allocations: 0 / 450.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.3275, allocations: 238.6 kB / 450.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.3281, allocations: 77.55 kB / 450.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.33, allocations: 0.8742 MB / 451.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.3302, allocations: 230.8 kB / 451.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.3303, allocations: 47.42 kB / 451.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of SimCode: time 5.62e-07/0.3303, allocations: 0 / 451.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01151/0.3419, allocations: 6.248 MB / 457.9 MB, free: 12.5 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/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: 8.281762952916324]