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.001353/0.001353, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001437/0.001437, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.416/1.416, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001639/0.001639, allocations: 51.92 kB / 371.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.255, allocations: 52.18 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00435/0.2594, allocations: 2.381 MB / 426.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.2621, allocations: 1.286 MB / 427.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002585/0.2624, allocations: 15.88 kB / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008912/0.2633, allocations: 235 kB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004295/0.2637, allocations: 167.1 kB / 427.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007857/0.2645, allocations: 313.4 kB / 428.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005934/0.2651, allocations: 471.7 kB / 428.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003107/0.2654, allocations: 138.2 kB / 428.8 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.2657, allocations: 203.2 kB / 429 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.2659, allocations: 203 kB / 429.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.45e-05/0.266, allocations: 32 kB / 429.2 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002783/0.2663, allocations: 131.8 kB / 429.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.2664, allocations: 127.6 kB / 429.5 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.2666, allocations: 178.9 kB / 429.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007453/0.2674, allocations: 0.5589 MB / 430.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2674, allocations: 0 / 430.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2674, allocations: 0 / 430.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2674, allocations: 0 / 430.2 MB, free: 8.086 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.001501/0.2689, allocations: 0.791 MB / 431 MB, free: 7.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2689, allocations: 12.03 kB / 431 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.2691, allocations: 64.56 kB / 431.1 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005962/0.2697, allocations: 324.2 kB / 431.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.2698, allocations: 88.34 kB / 431.5 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/0.2698, allocations: 43.98 kB / 431.5 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.2706, allocations: 449.6 kB / 432 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.2706, allocations: 0 / 432 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.2706, allocations: 19.98 kB / 432 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.814e-05/0.2706, allocations: 16.44 kB / 432 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000532/0.2712, allocations: 295.2 kB / 432.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.2732, allocations: 1.5 MB / 433.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006583/0.2739, allocations: 313.6 kB / 434.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.2741, allocations: 144.2 kB / 434.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.007e-05/0.2742, allocations: 8 kB / 434.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005563/0.2747, allocations: 370.3 kB / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.804e-06/0.2747, allocations: 0 / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001114/0.2758, allocations: 0.5348 MB / 435.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.276, allocations: 148.5 kB / 435.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005992/0.2766, allocations: 485.4 kB / 435.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.2766, allocations: 45.69 kB / 435.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.2768, allocations: 228.9 kB / 436 MB, free: 1.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.677e-05/0.2769, allocations: 95.3 kB / 436.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.2771, allocations: 126 kB / 436.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.2773, allocations: 358.7 kB / 436.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.2775, allocations: 146.6 kB / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.278, allocations: 320.5 kB / 437.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006194/0.2786, allocations: 426.8 kB / 437.5 MB, free: 312 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.2786, allocations: 4 kB / 437.5 MB, free: 308 kB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008848/0.2795, allocations: 0.4966 MB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.2795, allocations: 41.69 kB / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.2795, allocations: 4 kB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.2796, allocations: 8 kB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.2797, allocations: 43.86 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.2797, allocations: 12.12 kB / 438.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.28, allocations: 47.72 kB / 438.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.28, allocations: 27.94 kB / 438.1 MB, free: 15.6 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.0003258/0.2804, allocations: 244.7 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.018e-05/0.2804, allocations: 47.72 kB / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008563/0.2813, allocations: 460.5 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.2813, allocations: 4 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2813, allocations: 0 / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2813, allocations: 3.984 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.2824, allocations: 0.6692 MB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2824, allocations: 0 / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.2825, allocations: 19.94 kB / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2825, allocations: 0 / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/0.2825, allocations: 15.98 kB / 439.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.2825, allocations: 3.938 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2825, allocations: 0 / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008215/0.2834, allocations: 0.5466 MB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.659e-05/0.2834, allocations: 47.64 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.739e-05/0.2835, allocations: 16 kB / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.2837, allocations: 27.92 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.2838, allocations: 43.91 kB / 440.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.2839, allocations: 16 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003838/0.2842, allocations: 323.1 kB / 440.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2842, allocations: 0 / 440.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005072/0.2848, allocations: 119.7 kB / 440.7 MB, free: 12.91 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.001759/0.2865, allocations: 495.5 kB / 441.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008088/0.2873, allocations: 435 kB / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2873, allocations: 0 / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.2877, allocations: 241.8 kB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.2883, allocations: 81.83 kB / 442 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.2899, allocations: 0.8734 MB / 442.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.2901, allocations: 240.9 kB / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.2903, allocations: 47.42 kB / 443.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2903, allocations: 4 kB / 443.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Templates: time 0.01114/0.3014, allocations: 6.425 MB / 449.5 MB, free: 4.191 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/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: 8.29969621822238]