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.001754/0.001754, allocations: 92.27 kB / 20.96 MB, free: 3.449 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.00237/0.00237, allocations: 156.9 kB / 24.26 MB, free: 152 kB / 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 1.581/1.581, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 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.704e-06/1.704e-06, allocations: 0 / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.231e-05/3.401e-05, allocations: 2.312 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.0127/0.01274, allocations: 2.408 MB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.02642, allocations: 1.421 MB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.02662, allocations: 11.88 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009206/0.02754, allocations: 242.9 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005565/0.0281, allocations: 214.8 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005557/0.03366, allocations: 275.2 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.03479, allocations: 495.5 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002922/0.03508, allocations: 138.3 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003551/0.03544, allocations: 275.4 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.03568, allocations: 167.5 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-05/0.03574, allocations: 36 kB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002361/0.03598, allocations: 119.8 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.03614, allocations: 135.5 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.03631, allocations: 135.6 kB / 278.2 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002783/0.03909, allocations: 0.5798 MB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.03909, allocations: 0 / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.03909, allocations: 0 / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.0391, allocations: 3.984 kB / 278.8 MB, free: 11.15 MB / 266.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.00507/0.04417, allocations: 0.7794 MB / 279.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.04421, allocations: 11.98 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.04452, allocations: 108.5 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005124/0.04964, allocations: 339.8 kB / 280.1 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.04975, allocations: 88.89 kB / 280.1 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.039e-05/0.04981, allocations: 40.38 kB / 280.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008113/0.05062, allocations: 450.2 kB / 280.6 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.05063, allocations: 192 / 280.6 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.05068, allocations: 24.11 kB / 280.6 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.0507, allocations: 12.5 kB / 280.7 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005837/0.05129, allocations: 303.4 kB / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002293/0.05358, allocations: 1.504 MB / 282.5 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.05428, allocations: 309.6 kB / 282.8 MB, free: 6.988 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.05456, allocations: 140.2 kB / 282.9 MB, free: 6.836 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.117e-05/0.05461, allocations: 15.92 kB / 282.9 MB, free: 6.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006003/0.05521, allocations: 354.1 kB / 283.3 MB, free: 6.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.393e-06/0.05521, allocations: 0 / 283.3 MB, free: 6.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.001204/0.05641, allocations: 0.545 MB / 283.8 MB, free: 5.859 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003684/0.0601, allocations: 140.5 kB / 283.9 MB, free: 5.691 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006772/0.06077, allocations: 0.4974 MB / 284.4 MB, free: 5.184 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.06083, allocations: 37.7 kB / 284.5 MB, free: 5.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002553/0.06109, allocations: 237 kB / 284.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.0612, allocations: 91.36 kB / 284.8 MB, free: 4.812 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.06138, allocations: 114.2 kB / 284.9 MB, free: 4.695 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.06162, allocations: 358.8 kB / 285.3 MB, free: 4.336 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.06191, allocations: 142.6 kB / 285.4 MB, free: 4.191 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005982/0.06251, allocations: 320.6 kB / 285.7 MB, free: 3.805 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006489/0.06315, allocations: 406.9 kB / 286.1 MB, free: 3.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.06316, allocations: 0 / 286.1 MB, free: 3.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009169/0.06407, allocations: 0.5161 MB / 286.6 MB, free: 2.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.783e-05/0.06412, allocations: 45.69 kB / 286.7 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.06413, allocations: 4 kB / 286.7 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.06416, allocations: 8 kB / 286.7 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.06429, allocations: 39.86 kB / 286.7 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.06431, allocations: 15.92 kB / 286.7 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.06455, allocations: 55.66 kB / 286.8 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.06458, allocations: 20 kB / 286.8 MB, free: 2.613 MB / 266.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.0003155/0.0649, allocations: 244.7 kB / 287 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.065, allocations: 67.59 kB / 287.1 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008188/0.06582, allocations: 424.2 kB / 287.5 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.06583, allocations: 7.938 kB / 287.5 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.06584, allocations: 0 / 287.5 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.06584, allocations: 0 / 287.5 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.06693, allocations: 0.6231 MB / 288.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.06694, allocations: 4 kB / 288.2 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.222e-05/0.067, allocations: 15.94 kB / 288.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.067, allocations: 0 / 288.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.06703, allocations: 15.92 kB / 288.2 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.06704, allocations: 4 kB / 288.2 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.06704, allocations: 0 / 288.2 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009116/0.06795, allocations: 0.5358 MB / 288.7 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.946e-05/0.06803, allocations: 51.58 kB / 288.8 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.06809, allocations: 11.94 kB / 288.8 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.0683, allocations: 27.97 kB / 288.8 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004715/0.07301, allocations: 43.94 kB / 288.9 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/0.07305, allocations: 15.98 kB / 288.9 MB, free: 448 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004459/0.0735, allocations: 323.1 kB / 289.2 MB, free: 128 kB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0735, allocations: 0 / 289.2 MB, free: 128 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005106/0.07401, allocations: 119.8 kB / 289.3 MB, free: 8 kB / 266.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.008261/0.08227, allocations: 479.9 kB / 289.8 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007978/0.08307, allocations: 442.1 kB / 290.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.08307, allocations: 0 / 290.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.08346, allocations: 232.9 kB / 290.4 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006047/0.08407, allocations: 94.7 kB / 290.5 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.08571, allocations: 0.8402 MB / 291.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.086, allocations: 234.9 kB / 291.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.00359/0.08959, allocations: 75.27 kB / 291.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.08971, allocations: 40.48 kB / 291.7 MB, free: 13.64 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.08971, allocations: 0 / 291.7 MB, free: 13.64 MB / 282.7 MB Notification: Performance of Templates: time 0.01558/0.1053, allocations: 5.435 MB / 297.1 MB, free: 8.266 MB / 282.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: 4.980835754075088]