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.000981/0.000981, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.0009005/0.0009005, allocations: 170 kB / 24.82 MB, free: 9.254 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.9463/0.9463, allocations: 177 MB / 205.1 MB, free: 5.477 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.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.047e-05/3.275e-05, allocations: 5.266 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004569/0.004602, allocations: 2.478 MB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.006692, allocations: 1.449 MB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002418/0.006934, allocations: 11.88 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007148/0.007649, allocations: 246.8 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004721/0.008121, allocations: 210.8 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006237/0.008744, allocations: 271.2 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006695/0.009414, allocations: 495.5 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.009763, allocations: 142.3 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005018/0.01026, allocations: 271.4 kB / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003281/0.01059, allocations: 175.5 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.358e-05/0.01065, allocations: 36 kB / 279.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002763/0.01092, allocations: 119.8 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.01105, allocations: 127.6 kB / 279.3 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.01118, allocations: 139.5 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005568/0.01174, allocations: 450 kB / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.01174, allocations: 0 / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.01174, allocations: 4 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.01175, allocations: 0 / 279.9 MB, free: 10.61 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.0009669/0.01272, allocations: 0.8908 MB / 280.8 MB, free: 9.672 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.01276, allocations: 11.98 kB / 280.8 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.013, allocations: 104.5 kB / 280.9 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.01335, allocations: 327.4 kB / 281.2 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.03e-05/0.01342, allocations: 88.95 kB / 281.3 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.01345, allocations: 40.31 kB / 281.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000372/0.01382, allocations: 374.5 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.01384, allocations: 4.188 kB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.01386, allocations: 20.12 kB / 281.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.01388, allocations: 16.48 kB / 281.8 MB, free: 8.609 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.01404, allocations: 156.9 kB / 281.9 MB, free: 8.449 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.01561, allocations: 1.872 MB / 283.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.01588, allocations: 239.1 kB / 284 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.042e-05/0.01596, allocations: 115.8 kB / 284.1 MB, free: 6.102 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.01601, allocations: 15.98 kB / 284.1 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.01625, allocations: 316.5 kB / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.433e-06/0.01625, allocations: 0 / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0004279/0.01668, allocations: 418.1 kB / 284.9 MB, free: 5.293 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.01673, allocations: 136.5 kB / 285 MB, free: 5.129 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.01702, allocations: 470.2 kB / 285.5 MB, free: 4.652 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.01704, allocations: 37.7 kB / 285.5 MB, free: 4.609 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.01719, allocations: 295.5 kB / 285.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.957e-05/0.01725, allocations: 95.33 kB / 285.9 MB, free: 4.219 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.01736, allocations: 127.7 kB / 286 MB, free: 4.086 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.0175, allocations: 0.5351 MB / 286.5 MB, free: 3.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-05/0.01758, allocations: 74.66 kB / 286.6 MB, free: 3.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.01774, allocations: 302.2 kB / 286.9 MB, free: 3.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.018, allocations: 357.7 kB / 287.2 MB, free: 2.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.018, allocations: 0 / 287.2 MB, free: 2.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0003766/0.01837, allocations: 404.2 kB / 287.6 MB, free: 2.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.01841, allocations: 37.7 kB / 287.7 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.01842, allocations: 7.938 kB / 287.7 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.01843, allocations: 4 kB / 287.7 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.607e-05/0.01852, allocations: 48.31 kB / 287.7 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.01853, allocations: 12.25 kB / 287.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.01865, allocations: 55.66 kB / 287.8 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.01866, allocations: 20 kB / 287.8 MB, free: 2.031 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,showValue.active,showValue2.active,showValue3.active,showValue4.active,showValue1.number,showValue5.active,showValue6.active,set1.expr[1],set1.expr[2],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,triggeredAdd.local_reset,triggeredAdd.local_set) * 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.0001539/0.01882, allocations: 239.4 kB / 288.1 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.01888, allocations: 63.7 kB / 288.1 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003194/0.0192, allocations: 331.9 kB / 288.4 MB, free: 1.379 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.0192, allocations: 8 kB / 288.5 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.0192, allocations: 3.938 kB / 288.5 MB, free: 1.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.01921, allocations: 3.984 kB / 288.5 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005198/0.01973, allocations: 0.5525 MB / 289 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01973, allocations: 3.938 kB / 289 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.503e-05/0.01977, allocations: 19.98 kB / 289 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.01977, allocations: 0 / 289 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.01979, allocations: 15.98 kB / 289.1 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.01979, allocations: 0 / 289.1 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.01979, allocations: 7.875 kB / 289.1 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007642/0.02056, allocations: 0.5107 MB / 289.6 MB, free: 180 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.0206, allocations: 39.66 kB / 289.6 MB, free: 140 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.02065, allocations: 19.98 kB / 289.6 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.722e-05/0.02074, allocations: 15.98 kB / 289.6 MB, free: 104 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.02083, allocations: 39.88 kB / 289.7 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.02085, allocations: 12 kB / 289.7 MB, free: 52 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001995/0.02105, allocations: 271 kB / 290 MB, free: 15.79 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02105, allocations: 3.938 kB / 290 MB, free: 15.79 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000379/0.02143, allocations: 115.8 kB / 290.1 MB, free: 15.67 MB / 282.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.0009309/0.02236, allocations: 430 kB / 290.5 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003315/0.02269, allocations: 335 kB / 290.8 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.02269, allocations: 3.938 kB / 290.8 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.02284, allocations: 196.6 kB / 291 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.02319, allocations: 99.19 kB / 291.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000856/0.02404, allocations: 0.733 MB / 291.8 MB, free: 13.92 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.079e-05/0.02412, allocations: 130.2 kB / 292 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.02425, allocations: 51.42 kB / 292 MB, free: 13.72 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.02445, allocations: 170.1 kB / 292.2 MB, free: 13.55 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/0.02446, allocations: 4 kB / 292.2 MB, free: 13.55 MB / 282.7 MB Notification: Performance of Templates: time 0.009275/0.03373, allocations: 5.929 MB / 298.1 MB, free: 7.688 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9374515479430556]