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.00194/0.00194, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002244/0.002244, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.545/1.545, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001595/0.001595, allocations: 51.91 kB / 373.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1035, allocations: 53.33 MB / 426.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004752/0.1083, allocations: 2.499 MB / 429.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.1112, allocations: 1.485 MB / 430.8 MB, free: 356 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.1114, allocations: 11.88 kB / 430.8 MB, free: 344 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008638/0.1123, allocations: 242.9 kB / 431 MB, free: 100 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2144/0.3267, allocations: 196 kB / 431.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009481/0.3277, allocations: 263.5 kB / 431.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007793/0.3284, allocations: 481.6 kB / 432 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003632/0.3288, allocations: 153.3 kB / 432.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.3291, allocations: 201.9 kB / 432.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.3294, allocations: 225.5 kB / 432.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.073e-05/0.3294, allocations: 38.56 kB / 432.6 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000293/0.3297, allocations: 135 kB / 432.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.3299, allocations: 124.7 kB / 432.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.33, allocations: 221.4 kB / 433 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007845/0.3308, allocations: 0.5674 MB / 433.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3308, allocations: 5.156 kB / 433.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3308, allocations: 0 / 433.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.3308, allocations: 2.656 kB / 433.6 MB, free: 7.805 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.001553/0.3324, allocations: 0.8664 MB / 434.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3324, allocations: 11.34 kB / 434.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003967/0.3328, allocations: 73.34 kB / 434.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.3333, allocations: 400.1 kB / 434.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-05/0.3334, allocations: 57.52 kB / 435 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.3335, allocations: 37.5 kB / 435 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.3342, allocations: 443.1 kB / 435.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.3342, allocations: 0 / 435.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.64e-05/0.3342, allocations: 18.58 kB / 435.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.3342, allocations: 13.7 kB / 435.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.3347, allocations: 264.4 kB / 435.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.3366, allocations: 1.666 MB / 437.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.3372, allocations: 273.5 kB / 437.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.3375, allocations: 111.9 kB / 437.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.802e-05/0.3375, allocations: 11.58 kB / 437.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00055/0.3381, allocations: 327.4 kB / 438.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.844e-06/0.3381, allocations: 0 / 438.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.00104/0.3391, allocations: 473 kB / 438.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.3392, allocations: 163.5 kB / 438.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005977/0.3398, allocations: 0.4987 MB / 439.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.3398, allocations: 41.64 kB / 439.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.34, allocations: 236.5 kB / 439.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.053e-05/0.34, allocations: 91.08 kB / 439.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.3402, allocations: 117.9 kB / 439.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.556e-05/0.3403, allocations: 361.6 kB / 440.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.3405, allocations: 116.5 kB / 440.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3408, allocations: 263.7 kB / 440.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.3413, allocations: 405.8 kB / 440.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3413, allocations: 2.719 kB / 440.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007643/0.3421, allocations: 469.3 kB / 441.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.3421, allocations: 35.88 kB / 441.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.3421, allocations: 8.844 kB / 441.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.3421, allocations: 6.531 kB / 441.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.3423, allocations: 42.95 kB / 441.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.3423, allocations: 11.64 kB / 441.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.3426, allocations: 53.69 kB / 441.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.3426, allocations: 20.72 kB / 441.5 MB, free: 3.379 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.000229/0.3428, allocations: 256.9 kB / 441.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.3429, allocations: 50.98 kB / 441.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004272/0.3433, allocations: 227.9 kB / 442 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.3433, allocations: 4.438 kB / 442 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3433, allocations: 1.188 kB / 442 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3433, allocations: 2.594 kB / 442 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.3445, allocations: 0.7473 MB / 442.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3445, allocations: 3 kB / 442.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.15e-05/0.3446, allocations: 15.34 kB / 442.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3446, allocations: 2.031 kB / 442.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.3446, allocations: 12.64 kB / 442.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3446, allocations: 2.656 kB / 442.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3446, allocations: 0.6094 kB / 442.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007547/0.3454, allocations: 0.4931 MB / 443.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.839e-05/0.3455, allocations: 122.8 kB / 443.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/0.3455, allocations: 11.97 kB / 443.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.3458, allocations: 25.8 kB / 443.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.3459, allocations: 43.45 kB / 443.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/0.346, allocations: 16.84 kB / 443.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004194/0.3464, allocations: 339.9 kB / 443.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3464, allocations: 0 / 443.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005276/0.3469, allocations: 118.6 kB / 444 MB, free: 1.965 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,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * 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.001757/0.3487, allocations: 446 kB / 444.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007612/0.3494, allocations: 361.5 kB / 444.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3494, allocations: 1.25 kB / 444.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003804/0.3498, allocations: 207 kB / 445 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005497/0.3504, allocations: 79.92 kB / 445 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.3517, allocations: 0.8046 MB / 445.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.352, allocations: 0.8386 MB / 446.7 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.3522, allocations: 82.42 kB / 446.8 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.3523, allocations: 40.66 kB / 446.8 MB, free: 356 kB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3523, allocations: 1.562 kB / 446.8 MB, free: 356 kB / 350.1 MB Notification: Performance of Templates: time 0.01277/0.3651, allocations: 5.299 MB / 452.1 MB, free: 15.6 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: 5.057649862021208]