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.001369/0.001369, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 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.00146/0.00146, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.438/1.438, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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.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.0.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.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 47.92 kB / 370.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2647, allocations: 52.17 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004676/0.2694, allocations: 2.389 MB / 425.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002762/0.2721, allocations: 1.282 MB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.2723, allocations: 15.88 kB / 426.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008783/0.2732, allocations: 230.9 kB / 427 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004085/0.2736, allocations: 171.1 kB / 427.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000734/0.2744, allocations: 306.5 kB / 427.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005624/0.2749, allocations: 479.7 kB / 427.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.2752, allocations: 138.3 kB / 428 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.2755, allocations: 195.2 kB / 428.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.2758, allocations: 207 kB / 428.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.729e-05/0.2758, allocations: 36 kB / 428.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002908/0.2761, allocations: 131.8 kB / 428.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.2763, allocations: 127.6 kB / 428.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.2765, allocations: 174.9 kB / 428.9 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007564/0.2772, allocations: 0.5622 MB / 429.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2772, allocations: 0 / 429.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2772, allocations: 0 / 429.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.2773, allocations: 4 kB / 429.5 MB, free: 8.066 MB / 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.001468/0.2787, allocations: 0.7941 MB / 430.3 MB, free: 7.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2788, allocations: 11.97 kB / 430.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.2789, allocations: 60.56 kB / 430.3 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005693/0.2795, allocations: 328.2 kB / 430.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.2796, allocations: 92.39 kB / 430.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2796, allocations: 36 kB / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007019/0.2803, allocations: 457.5 kB / 431.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2803, allocations: 0 / 431.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.2804, allocations: 16 kB / 431.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.2804, allocations: 12.44 kB / 431.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005252/0.2809, allocations: 295.2 kB / 431.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.2831, allocations: 1.508 MB / 433 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006853/0.2837, allocations: 301.6 kB / 433.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.284, allocations: 148.2 kB / 433.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.604e-05/0.2841, allocations: 19.98 kB / 433.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005195/0.2846, allocations: 362.4 kB / 433.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.2846, allocations: 7.875 kB / 433.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001073/0.2857, allocations: 0.5354 MB / 434.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.2858, allocations: 136.5 kB / 434.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/0.2864, allocations: 489.4 kB / 435 MB, free: 2.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.2864, allocations: 37.7 kB / 435 MB, free: 2.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.2866, allocations: 236.8 kB / 435.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.96e-05/0.2867, allocations: 99.3 kB / 435.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.2869, allocations: 122.1 kB / 435.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002342/0.2872, allocations: 358.7 kB / 435.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.2875, allocations: 146.6 kB / 436 MB, free: 1.156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/0.2879, allocations: 316.8 kB / 436.3 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006233/0.2885, allocations: 430.5 kB / 436.7 MB, free: 292 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.2885, allocations: 0 / 436.7 MB, free: 292 kB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008511/0.2893, allocations: 0.5004 MB / 437.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.2894, allocations: 37.69 kB / 437.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2894, allocations: 4 kB / 437.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.2894, allocations: 8.469 kB / 437.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.2896, allocations: 43.84 kB / 437.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.2896, allocations: 12 kB / 437.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.2898, allocations: 51.72 kB / 437.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.172e-05/0.2899, allocations: 27.73 kB / 437.4 MB, free: 15.58 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.0002874/0.2902, allocations: 240.6 kB / 437.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.47e-05/0.2902, allocations: 47.72 kB / 437.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008554/0.2911, allocations: 456.9 kB / 438.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.2911, allocations: 8 kB / 438.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.2911, allocations: 3.984 kB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.2911, allocations: 7.922 kB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.2924, allocations: 0.6575 MB / 438.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.2924, allocations: 4 kB / 438.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.548e-05/0.2924, allocations: 15.92 kB / 438.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.2924, allocations: 4 kB / 438.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.2925, allocations: 15.94 kB / 438.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.2925, allocations: 4 kB / 438.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.2925, allocations: 3.984 kB / 438.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008031/0.2933, allocations: 0.5427 MB / 439.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.249e-05/0.2933, allocations: 47.64 kB / 439.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.554e-05/0.2934, allocations: 15.94 kB / 439.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.2936, allocations: 23.97 kB / 439.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.2937, allocations: 43.88 kB / 439.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/0.2938, allocations: 16 kB / 439.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003713/0.2941, allocations: 327.1 kB / 439.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2941, allocations: 0 / 439.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004924/0.2946, allocations: 119.7 kB / 440 MB, free: 12.9 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: 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.001794/0.2964, allocations: 486 kB / 440.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007803/0.2972, allocations: 435.2 kB / 440.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2972, allocations: 3.938 kB / 440.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.2976, allocations: 240.9 kB / 441.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.2981, allocations: 90.22 kB / 441.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.2997, allocations: 0.8327 MB / 442 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.3, allocations: 233 kB / 442.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002056/0.3002, allocations: 75.41 kB / 442.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.3004, allocations: 47.42 kB / 442.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3004, allocations: 0 / 442.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01333/0.3137, allocations: 5.96 MB / 448.3 MB, free: 4.68 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.679136050865054]