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.00131/0.00131, allocations: 107 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.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.001426/0.001426, allocations: 214.7 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.448/1.448, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.0015/0.0015, allocations: 51.92 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2284, allocations: 53.36 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004137/0.2325, allocations: 2.394 MB / 434.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.2352, allocations: 1.43 MB / 436.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.2353, allocations: 7.938 kB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007473/0.2361, allocations: 254.9 kB / 436.4 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004931/0.2366, allocations: 207 kB / 436.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006236/0.2372, allocations: 274.6 kB / 436.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005872/0.2378, allocations: 483.7 kB / 437.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.2381, allocations: 150.1 kB / 437.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.2384, allocations: 199.2 kB / 437.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.2386, allocations: 230.9 kB / 437.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.124e-05/0.2387, allocations: 36 kB / 438 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002432/0.2389, allocations: 115.9 kB / 438.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.2391, allocations: 131.6 kB / 438.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.2393, allocations: 171 kB / 438.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007126/0.24, allocations: 0.5744 MB / 438.9 MB, free: 84 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.24, allocations: 4 kB / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.24, allocations: 0 / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.24, allocations: 0 / 438.9 MB, free: 80 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.001416/0.2414, allocations: 0.7991 MB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.2414, allocations: 8.031 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000306/0.2418, allocations: 68.55 kB / 439.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.2424, allocations: 332.5 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.935e-05/0.2425, allocations: 84.97 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.251e-05/0.2425, allocations: 43.94 kB / 440.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007653/0.2433, allocations: 457.4 kB / 440.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.2433, allocations: 3.984 kB / 440.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.969e-05/0.2433, allocations: 12 kB / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.2434, allocations: 16.42 kB / 440.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005483/0.2439, allocations: 291.2 kB / 441 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.2459, allocations: 1.512 MB / 442.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006324/0.2465, allocations: 301.7 kB / 442.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.2468, allocations: 152.2 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.689e-05/0.2468, allocations: 4 kB / 443 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005335/0.2473, allocations: 359.7 kB / 443.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.853e-06/0.2473, allocations: 0 / 443.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001054/0.2484, allocations: 0.5318 MB / 443.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.815e-05/0.2485, allocations: 148.4 kB / 444 MB, free: 10.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/0.2491, allocations: 0.4935 MB / 444.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.839e-05/0.2491, allocations: 41.7 kB / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.2493, allocations: 232.9 kB / 444.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.113e-05/0.2494, allocations: 91.36 kB / 444.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.2496, allocations: 118.2 kB / 445 MB, free: 9.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.2498, allocations: 358.7 kB / 445.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.2501, allocations: 146.6 kB / 445.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.2505, allocations: 320.6 kB / 445.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005948/0.2511, allocations: 394.6 kB / 446.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2511, allocations: 4 kB / 446.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000846/0.2519, allocations: 0.4923 MB / 446.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.252, allocations: 38.11 kB / 446.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.619e-06/0.252, allocations: 8 kB / 446.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.252, allocations: 8 kB / 446.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.2522, allocations: 39.91 kB / 446.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/0.2522, allocations: 11.94 kB / 446.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.2524, allocations: 59.64 kB / 446.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/0.2525, allocations: 20 kB / 446.9 MB, free: 7.613 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.0003502/0.2528, allocations: 252.6 kB / 447.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.769e-05/0.2529, allocations: 47.7 kB / 447.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008042/0.2537, allocations: 419.6 kB / 447.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.2537, allocations: 4 kB / 447.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2537, allocations: 7.938 kB / 447.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.2537, allocations: 3.984 kB / 447.6 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.2548, allocations: 0.623 MB / 448.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2548, allocations: 0 / 448.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.987e-05/0.2548, allocations: 23.98 kB / 448.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2548, allocations: 0 / 448.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.2549, allocations: 15.94 kB / 448.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.2549, allocations: 3.984 kB / 448.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.2549, allocations: 4 kB / 448.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007825/0.2557, allocations: 0.5199 MB / 448.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.819e-05/0.2557, allocations: 51.59 kB / 448.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.815e-05/0.2558, allocations: 12 kB / 448.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.256, allocations: 23.97 kB / 448.9 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.2562, allocations: 47.97 kB / 448.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.84e-05/0.2562, allocations: 23.92 kB / 448.9 MB, free: 5.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003745/0.2566, allocations: 323.1 kB / 449.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2566, allocations: 0 / 449.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004714/0.257, allocations: 119.8 kB / 449.4 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.001751/0.2588, allocations: 481.6 kB / 449.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007574/0.2596, allocations: 426.4 kB / 450.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2596, allocations: 0 / 450.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.26, allocations: 232.9 kB / 450.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.2606, allocations: 89.25 kB / 450.6 MB, free: 3.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.2621, allocations: 0.8288 MB / 451.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.2624, allocations: 238.8 kB / 451.6 MB, free: 2.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.2626, allocations: 75.41 kB / 451.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.2627, allocations: 43.42 kB / 451.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2627, allocations: 0 / 451.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of Templates: time 0.0123/0.275, allocations: 5.75 MB / 457.5 MB, free: 13.03 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 -s gbode -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: 4.399134410996339]