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.001095/0.001095, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001687/0.001687, allocations: 160.1 kB / 25.61 MB, free: 8.582 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.9279/0.9279, allocations: 177 MB / 205.9 MB, free: 4.461 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.653e-06/1.653e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.316e-05/1.482e-05, allocations: 2.312 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003159/0.003174, allocations: 2.473 MB / 276.6 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.005186, allocations: 1.443 MB / 278 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/0.005398, allocations: 15.88 kB / 278.1 MB, free: 344 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006879/0.006086, allocations: 250.6 kB / 278.3 MB, free: 96 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004733/0.00656, allocations: 208.8 kB / 278.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005737/0.007133, allocations: 263.7 kB / 278.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004659/0.007599, allocations: 496.1 kB / 279.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.007826, allocations: 135 kB / 279.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/0.008071, allocations: 279.3 kB / 279.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.008254, allocations: 179.5 kB / 279.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.592e-05/0.0083, allocations: 32 kB / 279.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.00851, allocations: 127.8 kB / 280 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.008632, allocations: 127.5 kB / 280.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.008744, allocations: 135.6 kB / 280.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004918/0.009235, allocations: 450.1 kB / 280.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.009238, allocations: 0 / 280.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.009239, allocations: 4 kB / 280.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.009246, allocations: 0 / 280.7 MB, free: 13.7 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.000877/0.01012, allocations: 0.8831 MB / 281.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.01016, allocations: 15.97 kB / 281.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002129/0.01037, allocations: 96.55 kB / 281.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/0.01099, allocations: 339.3 kB / 282 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.698e-05/0.01105, allocations: 84.97 kB / 282.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.01108, allocations: 40.38 kB / 282.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/0.01143, allocations: 374.5 kB / 282.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.01144, allocations: 4.188 kB / 282.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.01146, allocations: 20.12 kB / 282.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.095e-05/0.01148, allocations: 12.5 kB / 282.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.01163, allocations: 152.9 kB / 282.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.01279, allocations: 1.887 MB / 284.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002899/0.01308, allocations: 248.2 kB / 284.8 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.719e-05/0.01317, allocations: 108.8 kB / 284.9 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.01321, allocations: 7.984 kB / 284.9 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.01344, allocations: 311.8 kB / 285.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/0.01344, allocations: 7.938 kB / 285.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.000432/0.01388, allocations: 413.4 kB / 285.6 MB, free: 8.383 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.01393, allocations: 136.5 kB / 285.8 MB, free: 8.219 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.01425, allocations: 474.2 kB / 286.2 MB, free: 7.738 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.01428, allocations: 41.64 kB / 286.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.01443, allocations: 299.5 kB / 286.6 MB, free: 7.391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.929e-05/0.01448, allocations: 83.34 kB / 286.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.01459, allocations: 131.7 kB / 286.8 MB, free: 7.172 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.01474, allocations: 0.5351 MB / 287.3 MB, free: 6.625 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.519e-05/0.01482, allocations: 78.66 kB / 287.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.01499, allocations: 294.4 kB / 287.7 MB, free: 6.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.01526, allocations: 359.1 kB / 288 MB, free: 5.727 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01527, allocations: 0 / 288 MB, free: 5.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0003641/0.01563, allocations: 405.3 kB / 288.4 MB, free: 5.312 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.01566, allocations: 41.69 kB / 288.5 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.01567, allocations: 7.938 kB / 288.5 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.01568, allocations: 8 kB / 288.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.566e-05/0.01577, allocations: 39.92 kB / 288.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.01578, allocations: 15.92 kB / 288.5 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.0159, allocations: 47.66 kB / 288.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.01592, allocations: 20 kB / 288.6 MB, free: 5.129 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.00044/0.01636, allocations: 243.9 kB / 288.8 MB, free: 4.875 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.829e-05/0.01642, allocations: 59.72 kB / 288.9 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003237/0.01674, allocations: 336.5 kB / 289.2 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.01674, allocations: 4 kB / 289.2 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.01675, allocations: 3.938 kB / 289.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.01675, allocations: 0 / 289.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005282/0.01728, allocations: 0.5632 MB / 289.8 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.01728, allocations: 4 kB / 289.8 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.743e-05/0.01732, allocations: 19.91 kB / 289.8 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.01732, allocations: 4 kB / 289.8 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.01734, allocations: 8 kB / 289.8 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.01734, allocations: 0 / 289.8 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.01734, allocations: 7.938 kB / 289.8 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.01771, allocations: 0.503 MB / 290.3 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.722e-05/0.01774, allocations: 43.64 kB / 290.4 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.01778, allocations: 19.94 kB / 290.4 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.816e-05/0.01788, allocations: 23.98 kB / 290.4 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.391e-05/0.01796, allocations: 47.8 kB / 290.5 MB, free: 3.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.01798, allocations: 12 kB / 290.5 MB, free: 3.133 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001593/0.01814, allocations: 267 kB / 290.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01814, allocations: 0 / 290.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003512/0.01849, allocations: 111.8 kB / 290.9 MB, free: 2.766 MB / 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.001115/0.01961, allocations: 423.5 kB / 291.3 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003284/0.01994, allocations: 332.3 kB / 291.6 MB, free: 2.121 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01994, allocations: 0 / 291.6 MB, free: 2.121 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.02009, allocations: 200.6 kB / 291.8 MB, free: 1.902 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.02044, allocations: 102.3 kB / 291.9 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008798/0.02132, allocations: 0.7292 MB / 292.6 MB, free: 1.031 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.874e-05/0.0214, allocations: 126.5 kB / 292.7 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.02152, allocations: 47.3 kB / 292.8 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.02171, allocations: 162.2 kB / 292.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.02171, allocations: 0 / 292.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of Templates: time 0.008877/0.03059, allocations: 6.045 MB / 299 MB, free: 10.71 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.130997076164931]