Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 80.8 kB / 22.29 MB, free: 2.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 170.2 kB / 25.69 MB, free: 8.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9035/0.9035, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.687e-05, allocations: 2.312 kB / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004256/0.004283, allocations: 2.45 MB / 254 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.006605, allocations: 1.267 MB / 255.2 MB, free: 3.523 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.006834, allocations: 15.88 kB / 255.3 MB, free: 3.508 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007945/0.007628, allocations: 238.9 kB / 255.5 MB, free: 3.273 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004277/0.008056, allocations: 175 kB / 255.7 MB, free: 3.102 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007031/0.008759, allocations: 287.2 kB / 255.9 MB, free: 2.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005855/0.009345, allocations: 475.6 kB / 256.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.00964, allocations: 148.1 kB / 256.6 MB, free: 2.203 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003536/0.009994, allocations: 275.3 kB / 256.8 MB, free: 1.934 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.01023, allocations: 167.5 kB / 257 MB, free: 1.77 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-05/0.01028, allocations: 36 kB / 257 MB, free: 1.734 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.01055, allocations: 143.7 kB / 257.2 MB, free: 1.594 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.01069, allocations: 123.6 kB / 257.3 MB, free: 1.473 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.01083, allocations: 143.5 kB / 257.4 MB, free: 1.332 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006197/0.01145, allocations: 442.2 kB / 257.9 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.01146, allocations: 4 kB / 257.9 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.01146, allocations: 0 / 257.9 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.01146, allocations: 0 / 257.9 MB, free: 0.8945 MB / 234.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.001032/0.0125, allocations: 0.7389 MB / 258.6 MB, free: 120 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.01253, allocations: 15.92 kB / 258.6 MB, free: 104 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.01264, allocations: 76.88 kB / 258.7 MB, free: 28 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.0131, allocations: 296.5 kB / 259 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.241e-05/0.01318, allocations: 80.97 kB / 259.1 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.01323, allocations: 40.38 kB / 259.1 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004697/0.0137, allocations: 364.7 kB / 259.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.01372, allocations: 0 / 259.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.01375, allocations: 16 kB / 259.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.048e-05/0.01378, allocations: 20.44 kB / 259.5 MB, free: 15.15 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.014, allocations: 150.7 kB / 259.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.01539, allocations: 1.294 MB / 260.9 MB, free: 13.64 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.01576, allocations: 313.5 kB / 261.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.01587, allocations: 88.27 kB / 261.3 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.01592, allocations: 15.92 kB / 261.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003103/0.01623, allocations: 308.5 kB / 261.6 MB, free: 12.84 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 3.346e-06/0.01623, allocations: 3.984 kB / 261.6 MB, free: 12.83 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.000474/0.01671, allocations: 328.7 kB / 262 MB, free: 12.48 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/0.01679, allocations: 148.4 kB / 262.1 MB, free: 12.31 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.01715, allocations: 396.7 kB / 262.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.01719, allocations: 41.7 kB / 262.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.01732, allocations: 193.8 kB / 262.7 MB, free: 11.67 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.203e-05/0.0174, allocations: 91.33 kB / 262.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.01754, allocations: 126 kB / 262.9 MB, free: 11.45 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.01767, allocations: 358.7 kB / 263.3 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.01779, allocations: 77.5 kB / 263.4 MB, free: 11.01 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.01798, allocations: 240.6 kB / 263.6 MB, free: 10.7 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.01832, allocations: 335 kB / 263.9 MB, free: 10.3 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.01832, allocations: 4 kB / 263.9 MB, free: 10.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004257/0.01875, allocations: 330.9 kB / 264.3 MB, free: 9.957 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.131e-05/0.01879, allocations: 37.7 kB / 264.3 MB, free: 9.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.0188, allocations: 4 kB / 264.3 MB, free: 9.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.01882, allocations: 8 kB / 264.3 MB, free: 9.902 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.01894, allocations: 47.84 kB / 264.3 MB, free: 9.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.01895, allocations: 11.94 kB / 264.4 MB, free: 9.844 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.01913, allocations: 47.72 kB / 264.4 MB, free: 9.797 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.01917, allocations: 23.94 kB / 264.4 MB, free: 9.773 MB / 250.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.000194/0.01937, allocations: 195.5 kB / 264.6 MB, free: 9.566 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.01944, allocations: 47.89 kB / 264.7 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003802/0.01982, allocations: 272.8 kB / 264.9 MB, free: 9.223 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.01983, allocations: 7.984 kB / 264.9 MB, free: 9.215 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.01983, allocations: 3.938 kB / 264.9 MB, free: 9.211 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.01984, allocations: 4 kB / 264.9 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006891/0.02053, allocations: 0.5218 MB / 265.5 MB, free: 8.656 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.02053, allocations: 0 / 265.5 MB, free: 8.656 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.161e-05/0.02058, allocations: 19.98 kB / 265.5 MB, free: 8.637 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.02059, allocations: 4 kB / 265.5 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.02061, allocations: 11.94 kB / 265.5 MB, free: 8.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.02062, allocations: 7.922 kB / 265.5 MB, free: 8.613 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.02062, allocations: 4 kB / 265.5 MB, free: 8.609 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000387/0.02101, allocations: 421.8 kB / 265.9 MB, free: 8.164 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.02106, allocations: 47.59 kB / 266 MB, free: 8.117 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/0.02112, allocations: 15.94 kB / 266 MB, free: 8.102 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.02127, allocations: 15.98 kB / 266 MB, free: 8.086 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/0.02137, allocations: 35.94 kB / 266 MB, free: 8.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.0214, allocations: 27.92 kB / 266.1 MB, free: 8.023 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001732/0.02157, allocations: 151.5 kB / 266.2 MB, free: 7.875 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02157, allocations: 0 / 266.2 MB, free: 7.875 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004883/0.02206, allocations: 119.8 kB / 266.3 MB, free: 7.758 MB / 250.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: 37 (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,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],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 (37): * Single equations (assignments): 31 * 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.001629/0.02369, allocations: 0.5563 MB / 266.9 MB, free: 7.254 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004189/0.02411, allocations: 324.2 kB / 267.2 MB, free: 6.91 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.02412, allocations: 4 kB / 267.2 MB, free: 6.906 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001952/0.02432, allocations: 201.6 kB / 267.4 MB, free: 6.688 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/0.02474, allocations: 103.5 kB / 267.5 MB, free: 6.586 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.02589, allocations: 0.745 MB / 268.3 MB, free: 5.797 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.771e-05/0.02598, allocations: 114.3 kB / 268.4 MB, free: 5.668 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.02614, allocations: 51.28 kB / 268.4 MB, free: 5.617 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.02639, allocations: 147.3 kB / 268.6 MB, free: 5.473 MB / 250.7 MB Notification: Performance of SimCode: time 1.002e-06/0.02639, allocations: 4 kB / 268.6 MB, free: 5.469 MB / 250.7 MB Notification: Performance of Templates: time 0.01017/0.03656, allocations: 6.055 MB / 274.6 MB, free: 15.39 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.747951381839812]