Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.5 MB / 257.4 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 67.89 kB / 378.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2625, allocations: 53.4 MB / 431.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004463/0.267, allocations: 2.405 MB / 434 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.2697, allocations: 1.422 MB / 435.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.2699, allocations: 11.94 kB / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007652/0.2707, allocations: 254.9 kB / 435.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004777/0.2711, allocations: 195 kB / 435.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.2718, allocations: 279.3 kB / 436.2 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005805/0.2723, allocations: 475.7 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002924/0.2726, allocations: 138.3 kB / 436.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.2729, allocations: 207.2 kB / 437 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.2732, allocations: 199 kB / 437.2 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.2733, allocations: 39.94 kB / 437.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002435/0.2735, allocations: 115.9 kB / 437.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.2737, allocations: 131.5 kB / 437.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.2738, allocations: 171 kB / 437.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007119/0.2746, allocations: 0.5738 MB / 438.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2746, allocations: 4 kB / 438.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2746, allocations: 0 / 438.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2746, allocations: 3.938 kB / 438.2 MB, free: 15.93 MB / 350.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.001426/0.276, allocations: 0.7911 MB / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.276, allocations: 15.98 kB / 439 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002607/0.2763, allocations: 68.55 kB / 439.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005662/0.2769, allocations: 332.5 kB / 439.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-05/0.277, allocations: 80.97 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.2771, allocations: 48.34 kB / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007081/0.2778, allocations: 449.7 kB / 440 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.2778, allocations: 3.938 kB / 440 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.2779, allocations: 23.98 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.2779, allocations: 12.44 kB / 440 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005254/0.2784, allocations: 295.2 kB / 440.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.2805, allocations: 1.512 MB / 441.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000604/0.2811, allocations: 293.7 kB / 442.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.2813, allocations: 148.2 kB / 442.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.724e-05/0.2814, allocations: 8 kB / 442.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005276/0.2819, allocations: 358.8 kB / 442.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/0.2819, allocations: 0 / 442.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001017/0.2829, allocations: 0.5329 MB / 443.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.283, allocations: 144.5 kB / 443.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.2837, allocations: 0.4974 MB / 443.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.2837, allocations: 37.7 kB / 443.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.2839, allocations: 240.9 kB / 444 MB, free: 9.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.832e-05/0.284, allocations: 79.38 kB / 444.1 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.2841, allocations: 118.2 kB / 444.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002763/0.2844, allocations: 358.8 kB / 444.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.2847, allocations: 146.6 kB / 444.7 MB, free: 9.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/0.2851, allocations: 312.6 kB / 445 MB, free: 8.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005678/0.2856, allocations: 411.1 kB / 445.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2856, allocations: 4.25 kB / 445.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008804/0.2865, allocations: 0.4923 MB / 445.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.62e-05/0.2866, allocations: 38.16 kB / 446 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.2866, allocations: 8 kB / 446 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.2866, allocations: 8 kB / 446 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.2868, allocations: 43.86 kB / 446 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.2868, allocations: 12.08 kB / 446 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.287, allocations: 59.64 kB / 446.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.2871, allocations: 20 kB / 446.1 MB, free: 7.473 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.0003681/0.2874, allocations: 248.6 kB / 446.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.096e-05/0.2875, allocations: 51.66 kB / 446.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008787/0.2884, allocations: 420.4 kB / 446.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.2884, allocations: 7.984 kB / 446.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2884, allocations: 0 / 446.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2884, allocations: 0 / 446.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.2895, allocations: 0.6304 MB / 447.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2895, allocations: 3.938 kB / 447.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.441e-05/0.2895, allocations: 15.98 kB / 447.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.2896, allocations: 8 kB / 447.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.2896, allocations: 11.98 kB / 447.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.2896, allocations: 4 kB / 447.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.2896, allocations: 3.938 kB / 447.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008246/0.2904, allocations: 0.5238 MB / 448 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.907e-05/0.2905, allocations: 51.66 kB / 448.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.615e-05/0.2906, allocations: 15.98 kB / 448.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.2908, allocations: 15.98 kB / 448.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.2909, allocations: 48.02 kB / 448.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.2909, allocations: 23.94 kB / 448.2 MB, free: 5.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003963/0.2913, allocations: 327.1 kB / 448.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2913, allocations: 0 / 448.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004784/0.2918, allocations: 111.8 kB / 448.6 MB, free: 4.871 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.001722/0.2935, allocations: 468.1 kB / 449.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007815/0.2943, allocations: 438.3 kB / 449.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2943, allocations: 0 / 449.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003541/0.2946, allocations: 228.9 kB / 449.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.2952, allocations: 93.64 kB / 449.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.2968, allocations: 0.8288 MB / 450.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.297, allocations: 230.8 kB / 450.9 MB, free: 2.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.2973, allocations: 75.39 kB / 450.9 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.2974, allocations: 43.42 kB / 451 MB, free: 2.543 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2974, allocations: 0 / 451 MB, free: 2.543 MB / 350.1 MB Notification: Performance of Templates: time 0.01234/0.3097, allocations: 5.731 MB / 456.7 MB, free: 12.87 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.793035788461566]