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.0009216/0.0009216, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.000988/0.000988, allocations: 160.5 kB / 24.55 MB, free: 12 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 0.9914/0.9914, allocations: 177 MB / 204.8 MB, free: 5.594 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 1.342e-06/1.342e-06, allocations: 0 / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.911e-05/2.045e-05, allocations: 2.312 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003224/0.003244, allocations: 2.508 MB / 275.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.005441, allocations: 1.468 MB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.005616, allocations: 15.94 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000463/0.006079, allocations: 250.7 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003259/0.006405, allocations: 207 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.006881, allocations: 275.1 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004142/0.007295, allocations: 483.6 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.007492, allocations: 142.3 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000232/0.007724, allocations: 275.3 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.007887, allocations: 183.5 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.007925, allocations: 32 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.008103, allocations: 123.8 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.008207, allocations: 131.5 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.008309, allocations: 131.6 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004669/0.008776, allocations: 450.1 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.243e-06/0.008778, allocations: 0 / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.008778, allocations: 4 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.008782, allocations: 0 / 279.5 MB, free: 10.81 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.0008242/0.009606, allocations: 0.887 MB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.009645, allocations: 11.98 kB / 280.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.009856, allocations: 104.5 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.01019, allocations: 339.3 kB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.048e-05/0.01025, allocations: 80.97 kB / 280.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.01028, allocations: 44.36 kB / 281 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.01068, allocations: 398.5 kB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.01069, allocations: 8.125 kB / 281.4 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.01071, allocations: 24.11 kB / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.01073, allocations: 12.5 kB / 281.4 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.01095, allocations: 188.5 kB / 281.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.01218, allocations: 1.945 MB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.01249, allocations: 263.1 kB / 283.8 MB, free: 6.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.0126, allocations: 112.7 kB / 283.9 MB, free: 6.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.01263, allocations: 8 kB / 283.9 MB, free: 6.121 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.01289, allocations: 328.5 kB / 284.2 MB, free: 5.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.302e-06/0.01289, allocations: 0 / 284.2 MB, free: 5.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0004815/0.01337, allocations: 461.1 kB / 284.7 MB, free: 5.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.01343, allocations: 144.5 kB / 284.8 MB, free: 5.105 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.01377, allocations: 474.4 kB / 285.3 MB, free: 4.625 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.0138, allocations: 41.7 kB / 285.3 MB, free: 4.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.01394, allocations: 287.6 kB / 285.6 MB, free: 4.289 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.363e-05/0.014, allocations: 87.38 kB / 285.7 MB, free: 4.203 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.01412, allocations: 123.8 kB / 285.8 MB, free: 4.074 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.01428, allocations: 0.5313 MB / 286.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.01439, allocations: 90.66 kB / 286.4 MB, free: 3.434 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.0146, allocations: 322.3 kB / 286.8 MB, free: 3.027 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.01488, allocations: 381.4 kB / 287.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.01489, allocations: 4 kB / 287.1 MB, free: 2.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004053/0.01529, allocations: 424.7 kB / 287.5 MB, free: 2.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.01532, allocations: 45.62 kB / 287.6 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.01533, allocations: 4.312 kB / 287.6 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.01534, allocations: 8 kB / 287.6 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.367e-05/0.01542, allocations: 43.86 kB / 287.6 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.01543, allocations: 11.98 kB / 287.7 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.01556, allocations: 55.66 kB / 287.7 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.01558, allocations: 20 kB / 287.7 MB, free: 1.938 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.0001559/0.01573, allocations: 247.5 kB / 288 MB, free: 1.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.84e-05/0.01579, allocations: 63.66 kB / 288 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003587/0.01615, allocations: 352.5 kB / 288.4 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.01615, allocations: 7.938 kB / 288.4 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.01616, allocations: 0 / 288.4 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.01616, allocations: 3.984 kB / 288.4 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005665/0.01673, allocations: 0.6301 MB / 289 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.01673, allocations: 4 kB / 289 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.284e-05/0.01676, allocations: 15.92 kB / 289 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01677, allocations: 4 kB / 289 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.01678, allocations: 11.94 kB / 289.1 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.01678, allocations: 4 kB / 289.1 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01679, allocations: 0 / 289.1 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004024/0.01719, allocations: 0.5298 MB / 289.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.01723, allocations: 47.66 kB / 289.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.457e-05/0.01726, allocations: 11.94 kB / 289.6 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.01735, allocations: 19.98 kB / 289.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.196e-05/0.01742, allocations: 43.92 kB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.01744, allocations: 20 kB / 289.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001888/0.01763, allocations: 283.1 kB / 290 MB, free: 15.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01763, allocations: 0 / 290 MB, free: 15.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002838/0.01792, allocations: 111.8 kB / 290.1 MB, free: 15.43 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.000914/0.01883, allocations: 432.3 kB / 290.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.01922, allocations: 371.8 kB / 290.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-06/0.01922, allocations: 4.125 kB / 290.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.01939, allocations: 215.5 kB / 291.1 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.01971, allocations: 93.27 kB / 291.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008043/0.02052, allocations: 0.7447 MB / 292 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.438e-05/0.02059, allocations: 126.2 kB / 292.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.02071, allocations: 67.66 kB / 292.1 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.109e-05/0.02078, allocations: 44.48 kB / 292.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.02078, allocations: 0 / 292.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of Templates: time 0.008071/0.02885, allocations: 5.429 MB / 297.6 MB, free: 7.984 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: 3.0668063778430223]