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.001819/0.001819, allocations: 89.53 kB / 20.69 MB, free: 1.02 MB / 14.72 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.002238/0.002238, allocations: 166.5 kB / 23.95 MB, free: 4.152 MB / 14.72 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 1.431/1.431, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] 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.332e-06/1.332e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.883e-05/2.016e-05, allocations: 2.281 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003765/0.003785, allocations: 2.408 MB / 327.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002841/0.006626, allocations: 1.434 MB / 328.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.006812, allocations: 14.72 kB / 328.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007961/0.007608, allocations: 254.6 kB / 329.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000529/0.008137, allocations: 206.8 kB / 329.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.008823, allocations: 266 kB / 329.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006314/0.009455, allocations: 491 kB / 330.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/0.009756, allocations: 137.8 kB / 330.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003492/0.01011, allocations: 270.5 kB / 330.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.01036, allocations: 180.8 kB / 330.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.494e-05/0.01042, allocations: 35.44 kB / 330.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.01068, allocations: 125 kB / 330.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.01084, allocations: 135.7 kB / 330.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.01101, allocations: 133 kB / 331 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007596/0.01177, allocations: 0.5769 MB / 331.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01178, allocations: 1 kB / 331.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01178, allocations: 0 / 331.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.01178, allocations: 0 / 331.6 MB, free: 12.38 MB / 302.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.001455/0.01324, allocations: 0.7928 MB / 332.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.01328, allocations: 14.52 kB / 332.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.01354, allocations: 71.73 kB / 332.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005663/0.01411, allocations: 323.2 kB / 332.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.873e-05/0.01421, allocations: 83.53 kB / 332.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/0.01427, allocations: 40.12 kB / 332.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007316/0.015, allocations: 454.4 kB / 333.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.01501, allocations: 1.406 kB / 333.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.396e-05/0.01506, allocations: 21.25 kB / 333.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.01508, allocations: 20.17 kB / 333.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000555/0.01564, allocations: 290.9 kB / 333.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.01773, allocations: 1.514 MB / 335.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006153/0.01834, allocations: 298.2 kB / 335.5 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.0186, allocations: 141.5 kB / 335.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.01865, allocations: 5 kB / 335.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005377/0.01918, allocations: 366 kB / 336 MB, free: 8.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/0.01919, allocations: 0 / 336 MB, free: 8.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001099/0.02028, allocations: 0.5325 MB / 336.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.02039, allocations: 146.7 kB / 336.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005708/0.02096, allocations: 0.4942 MB / 337.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.009e-05/0.02102, allocations: 43.98 kB / 337.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.02123, allocations: 236 kB / 337.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.081e-05/0.02132, allocations: 86.36 kB / 337.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.02148, allocations: 116.3 kB / 337.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.02165, allocations: 354.2 kB / 338 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.02192, allocations: 148 kB / 338.1 MB, free: 7.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.0223, allocations: 319.8 kB / 338.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005833/0.02289, allocations: 410.1 kB / 338.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.02289, allocations: 2.156 kB / 338.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008391/0.02373, allocations: 0.4926 MB / 339.4 MB, free: 6.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.02378, allocations: 45.58 kB / 339.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.02379, allocations: 4 kB / 339.4 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.02381, allocations: 4 kB / 339.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.02396, allocations: 43.91 kB / 339.5 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.02398, allocations: 7.938 kB / 339.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.02425, allocations: 59.64 kB / 339.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.02429, allocations: 20.16 kB / 339.5 MB, free: 5.969 MB / 302.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.0003172/0.02461, allocations: 245.1 kB / 339.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.951e-05/0.0247, allocations: 63.62 kB / 339.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008076/0.0255, allocations: 416.5 kB / 340.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.02551, allocations: 7.938 kB / 340.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.02552, allocations: 0 / 340.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.02553, allocations: 3.984 kB / 340.3 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.02655, allocations: 0.6308 MB / 340.9 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.02656, allocations: 0 / 340.9 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.711e-05/0.02662, allocations: 15.98 kB / 340.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.02663, allocations: 4 kB / 340.9 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.312e-05/0.02666, allocations: 11.94 kB / 340.9 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.02667, allocations: 7.984 kB / 340.9 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.706e-06/0.02667, allocations: 3.938 kB / 340.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009491/0.02762, allocations: 0.5164 MB / 341.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.389e-05/0.0277, allocations: 43.66 kB / 341.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.02777, allocations: 19.94 kB / 341.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.028, allocations: 31.97 kB / 341.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.02813, allocations: 39.94 kB / 341.6 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.02817, allocations: 15.98 kB / 341.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003817/0.02855, allocations: 327.1 kB / 341.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02855, allocations: 0 / 341.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005346/0.02908, allocations: 115.7 kB / 342 MB, free: 3.367 MB / 302.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.001855/0.03094, allocations: 474.7 kB / 342.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007691/0.03171, allocations: 433.2 kB / 342.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.03171, allocations: 0.9375 kB / 342.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.03208, allocations: 236.9 kB / 343.1 MB, free: 2.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.03266, allocations: 83 kB / 343.2 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.0341, allocations: 0.8278 MB / 344.1 MB, free: 1.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.03436, allocations: 238.9 kB / 344.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.03456, allocations: 79.39 kB / 344.4 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.03469, allocations: 44.48 kB / 344.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.03469, allocations: 0 / 344.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01145/0.04614, allocations: 5.402 MB / 349.8 MB, free: 11.68 MB / 318.1 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: 4.3487746976315975]