Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008296/0.0008296, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004272/0.004272, allocations: 158 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8783/0.8783, allocations: 177 MB / 204.9 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.765e-05/2.961e-05, allocations: 2.281 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004362/0.004392, allocations: 2.417 MB / 328.2 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002358/0.00675, allocations: 1.428 MB / 329.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002452/0.006995, allocations: 15.88 kB / 329.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007001/0.007696, allocations: 245.6 kB / 329.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004383/0.008134, allocations: 214.9 kB / 330.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.008652, allocations: 267.2 kB / 330.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004684/0.00912, allocations: 487.5 kB / 330.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.009357, allocations: 142.3 kB / 331 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.009641, allocations: 275.3 kB / 331.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.009833, allocations: 175.4 kB / 331.4 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.009875, allocations: 36 kB / 331.4 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.01008, allocations: 127.7 kB / 331.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.01019, allocations: 131.5 kB / 331.7 MB, free: 9.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.0103, allocations: 131.6 kB / 331.8 MB, free: 9.301 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006123/0.01091, allocations: 0.576 MB / 332.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.01092, allocations: 4 kB / 332.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01092, allocations: 0 / 332.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.01093, allocations: 0 / 332.4 MB, free: 8.719 MB / 298.7 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.001098/0.01203, allocations: 0.7908 MB / 333.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.01206, allocations: 15.98 kB / 333.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.01224, allocations: 64.56 kB / 333.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.01264, allocations: 327.7 kB / 333.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-05/0.01271, allocations: 84.95 kB / 333.7 MB, free: 7.363 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.01274, allocations: 40.38 kB / 333.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000459/0.0132, allocations: 454.2 kB / 334.2 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.01321, allocations: 192 / 334.2 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.01324, allocations: 20.12 kB / 334.2 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.01326, allocations: 16.5 kB / 334.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003299/0.01359, allocations: 295.4 kB / 334.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.01481, allocations: 1.5 MB / 336 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004071/0.01522, allocations: 301.7 kB / 336.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.01536, allocations: 148.2 kB / 336.4 MB, free: 4.449 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/0.01541, allocations: 11.98 kB / 336.4 MB, free: 4.438 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.01574, allocations: 353.8 kB / 336.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.533e-06/0.01574, allocations: 0 / 336.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006211/0.01636, allocations: 0.5411 MB / 337.3 MB, free: 3.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.01643, allocations: 140.5 kB / 337.5 MB, free: 3.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.01678, allocations: 0.4935 MB / 337.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.01681, allocations: 37.7 kB / 338 MB, free: 2.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.01694, allocations: 240.9 kB / 338.2 MB, free: 2.531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.388e-05/0.01699, allocations: 87.38 kB / 338.3 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.0171, allocations: 114.2 kB / 338.4 MB, free: 2.328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.01721, allocations: 358.8 kB / 338.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.01737, allocations: 146.6 kB / 338.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.01758, allocations: 312.6 kB / 339.2 MB, free: 1.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.0179, allocations: 414.8 kB / 339.6 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.01791, allocations: 4 kB / 339.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004722/0.01838, allocations: 0.4964 MB / 340.1 MB, free: 456 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.01842, allocations: 41.62 kB / 340.2 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.01842, allocations: 4 kB / 340.2 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.01844, allocations: 4 kB / 340.2 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.286e-05/0.01851, allocations: 43.86 kB / 340.2 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.01852, allocations: 11.98 kB / 340.2 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.01865, allocations: 51.66 kB / 340.3 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.01867, allocations: 24 kB / 340.3 MB, free: 268 kB / 298.7 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.0001795/0.01885, allocations: 249.1 kB / 340.5 MB, free: 4 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.445e-05/0.01891, allocations: 51.66 kB / 340.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004422/0.01935, allocations: 423.6 kB / 341 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.01935, allocations: 4 kB / 341 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.01936, allocations: 0 / 341 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.01936, allocations: 0 / 341 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005961/0.01996, allocations: 0.6347 MB / 341.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01996, allocations: 0 / 341.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.278e-05/0.01999, allocations: 11.94 kB / 341.7 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.02, allocations: 7.938 kB / 341.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.02002, allocations: 11.98 kB / 341.7 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.02002, allocations: 7.984 kB / 341.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.02002, allocations: 0 / 341.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004236/0.02045, allocations: 0.5201 MB / 342.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.852e-05/0.02048, allocations: 47.64 kB / 342.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.02052, allocations: 19.94 kB / 342.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.843e-05/0.02062, allocations: 23.92 kB / 342.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.224e-05/0.02071, allocations: 43.92 kB / 342.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.02073, allocations: 16 kB / 342.4 MB, free: 14.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002217/0.02096, allocations: 331.1 kB / 342.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02096, allocations: 0 / 342.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003057/0.02126, allocations: 107.8 kB / 342.8 MB, free: 13.67 MB / 314.7 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.0007695/0.02203, allocations: 492.9 kB / 343.3 MB, free: 13.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004504/0.02248, allocations: 422.6 kB / 343.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.02248, allocations: 4.938 kB / 343.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.02269, allocations: 236.9 kB / 343.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.02303, allocations: 86.33 kB / 344 MB, free: 12.56 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009914/0.02402, allocations: 0.8647 MB / 344.9 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.02418, allocations: 230.9 kB / 345.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.337e-05/0.02426, allocations: 44.48 kB / 345.1 MB, free: 11.35 MB / 314.7 MB Notification: Performance of SimCode: time 6.82e-07/0.02426, allocations: 4 kB / 345.1 MB, free: 11.35 MB / 314.7 MB Notification: Performance of Templates: time 0.006365/0.03063, allocations: 6.255 MB / 351.4 MB, free: 5.102 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.0259377071633935]