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.002079/0.002079, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002672/0.002672, allocations: 197 kB / 23.72 MB, free: 4.492 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.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001731/0.001731, allocations: 47.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.255, allocations: 53.38 MB / 431.6 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004343/0.2594, allocations: 2.39 MB / 434 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.2621, allocations: 1.422 MB / 435.4 MB, free: 3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.2623, allocations: 11.94 kB / 435.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000879/0.2631, allocations: 254.9 kB / 435.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005321/0.2637, allocations: 203 kB / 435.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000691/0.2644, allocations: 285.5 kB / 436.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005694/0.2649, allocations: 471.7 kB / 436.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003016/0.2652, allocations: 142.3 kB / 436.7 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002455/0.2655, allocations: 195.2 kB / 436.9 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.2657, allocations: 210.9 kB / 437.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.142e-05/0.2658, allocations: 36 kB / 437.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002615/0.2661, allocations: 119.9 kB / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.2662, allocations: 135.6 kB / 437.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.2664, allocations: 171 kB / 437.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000769/0.2672, allocations: 0.5663 MB / 438.1 MB, free: 244 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2672, allocations: 7.938 kB / 438.2 MB, free: 236 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2672, allocations: 0 / 438.2 MB, free: 236 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.2672, allocations: 0 / 438.2 MB, free: 236 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.001408/0.2686, allocations: 0.7989 MB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2687, allocations: 8.031 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002876/0.2689, allocations: 72.55 kB / 439 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005716/0.2695, allocations: 332.5 kB / 439.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.2696, allocations: 84.91 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.165e-05/0.2697, allocations: 47.88 kB / 439.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007894/0.2705, allocations: 449.5 kB / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.2705, allocations: 7.922 kB / 439.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.2705, allocations: 19.98 kB / 440 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.848e-05/0.2705, allocations: 16.42 kB / 440 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005491/0.2711, allocations: 295.2 kB / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.2731, allocations: 1.504 MB / 441.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006135/0.2737, allocations: 297.7 kB / 442.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.2739, allocations: 148.2 kB / 442.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.684e-05/0.274, allocations: 8 kB / 442.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005523/0.2746, allocations: 358.9 kB / 442.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/0.2746, allocations: 0 / 442.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001045/0.2756, allocations: 0.524 MB / 443.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.798e-05/0.2757, allocations: 144.4 kB / 443.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006248/0.2763, allocations: 0.4896 MB / 443.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.2764, allocations: 49.7 kB / 443.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.2766, allocations: 233 kB / 444 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.879e-05/0.2767, allocations: 87.36 kB / 444.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.2769, allocations: 118.2 kB / 444.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.2771, allocations: 362.7 kB / 444.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.2774, allocations: 142.6 kB / 444.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.2778, allocations: 312.6 kB / 445 MB, free: 8.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/0.2784, allocations: 406.6 kB / 445.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2785, allocations: 256 / 445.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008931/0.2793, allocations: 0.4962 MB / 445.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.2794, allocations: 34.17 kB / 445.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.2794, allocations: 8 kB / 445.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.2794, allocations: 8 kB / 445.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.2796, allocations: 47.84 kB / 446 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.2796, allocations: 7.938 kB / 446 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002391/0.2798, allocations: 59.64 kB / 446 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.2799, allocations: 20 kB / 446.1 MB, free: 7.77 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.0002935/0.2801, allocations: 252.6 kB / 446.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.643e-05/0.2802, allocations: 51.7 kB / 446.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007681/0.281, allocations: 419.4 kB / 446.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.281, allocations: 4.094 kB / 446.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.281, allocations: 3.938 kB / 446.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.281, allocations: 3.984 kB / 446.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.282, allocations: 0.6308 MB / 447.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.282, allocations: 0 / 447.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.19e-05/0.2821, allocations: 15.98 kB / 447.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.2821, allocations: 4 kB / 447.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.2821, allocations: 12 kB / 447.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.2821, allocations: 11.97 kB / 447.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2821, allocations: 3.938 kB / 447.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007757/0.2829, allocations: 0.5238 MB / 448 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.266e-05/0.283, allocations: 51.59 kB / 448 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.52e-05/0.2831, allocations: 12 kB / 448 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.2833, allocations: 23.97 kB / 448.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.2834, allocations: 47.94 kB / 448.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.2834, allocations: 15.98 kB / 448.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000369/0.2838, allocations: 327.1 kB / 448.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2838, allocations: 3.938 kB / 448.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004629/0.2842, allocations: 115.8 kB / 448.6 MB, free: 5.164 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.001685/0.2859, allocations: 485.5 kB / 449 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007155/0.2866, allocations: 426.4 kB / 449.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2866, allocations: 0 / 449.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.287, allocations: 232.9 kB / 449.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.2875, allocations: 83.44 kB / 449.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.2889, allocations: 0.8288 MB / 450.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.2892, allocations: 238.8 kB / 450.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.2894, allocations: 75.41 kB / 450.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.2895, allocations: 43.42 kB / 450.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2895, allocations: 0 / 450.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of Templates: time 0.01203/0.3016, allocations: 5.73 MB / 456.7 MB, free: 13.21 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/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: 4.897523947060108]