Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002926/0.002926, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008836/0.0008836, allocations: 148.9 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9742/0.9742, allocations: 173.4 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.515e-06/2.515e-06, allocations: 0 / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.93e-05, allocations: 6.312 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003274/0.003303, allocations: 2.445 MB / 270.9 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.00521, allocations: 1.305 MB / 272.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.005384, allocations: 11.94 kB / 272.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006101/0.005995, allocations: 258.8 kB / 272.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.006286, allocations: 163.1 kB / 272.6 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.006771, allocations: 311 kB / 272.9 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003732/0.007144, allocations: 475.6 kB / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.007349, allocations: 145.9 kB / 273.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002239/0.007573, allocations: 275.3 kB / 273.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.007731, allocations: 175.4 kB / 273.9 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.007771, allocations: 32 kB / 274 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004537/0.008225, allocations: 131.7 kB / 274.1 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.008325, allocations: 135.5 kB / 274.2 MB, free: 368 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.517e-05/0.00842, allocations: 135.5 kB / 274.4 MB, free: 232 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.008845, allocations: 442.2 kB / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.008848, allocations: 0 / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.008849, allocations: 0 / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.008854, allocations: 0 / 274.8 MB, free: 15.79 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.0007603/0.009614, allocations: 0.883 MB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.009649, allocations: 8.922 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.844e-05/0.009737, allocations: 92.55 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.01004, allocations: 343.2 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.797e-05/0.0101, allocations: 84.72 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.146e-05/0.01013, allocations: 40 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.01045, allocations: 369.9 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.01046, allocations: 4 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.01048, allocations: 19.98 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.0105, allocations: 16.48 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.01065, allocations: 156.9 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.01169, allocations: 1.883 MB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.01195, allocations: 251 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.678e-05/0.01202, allocations: 108.7 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.091e-05/0.01206, allocations: 16 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.01229, allocations: 323.7 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.734e-06/0.0123, allocations: 0 / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0004183/0.01271, allocations: 417.2 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.01277, allocations: 136.5 kB / 279.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.01304, allocations: 466.2 kB / 280.3 MB, free: 9.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.01306, allocations: 41.7 kB / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.0132, allocations: 283.6 kB / 280.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/0.01326, allocations: 99.22 kB / 280.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.01337, allocations: 131.7 kB / 280.9 MB, free: 9.258 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004255/0.01379, allocations: 0.5351 MB / 281.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.799e-05/0.01387, allocations: 82.66 kB / 281.5 MB, free: 8.625 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.01403, allocations: 294.4 kB / 281.8 MB, free: 8.242 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.01425, allocations: 361.4 kB / 282.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01425, allocations: 0 / 282.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000328/0.01458, allocations: 412.8 kB / 282.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/0.01461, allocations: 38.16 kB / 282.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.01462, allocations: 4 kB / 282.6 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.01463, allocations: 8 kB / 282.6 MB, free: 7.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.824e-05/0.01472, allocations: 51.84 kB / 282.6 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.01473, allocations: 11.94 kB / 282.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.01484, allocations: 43.77 kB / 282.7 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.01487, allocations: 20.31 kB / 282.7 MB, free: 7.199 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.0001414/0.01501, allocations: 255.2 kB / 283 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.01506, allocations: 59.72 kB / 283 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.01539, allocations: 348.8 kB / 283.4 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.01539, allocations: 4 kB / 283.4 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01539, allocations: 0 / 283.4 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.0154, allocations: 7.984 kB / 283.4 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004958/0.0159, allocations: 0.5821 MB / 284 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-06/0.0159, allocations: 4 kB / 284 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.354e-05/0.01593, allocations: 15.92 kB / 284 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.01594, allocations: 4 kB / 284 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.01595, allocations: 12 kB / 284 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.01596, allocations: 4 kB / 284 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.01596, allocations: 0 / 284 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003295/0.01629, allocations: 0.5404 MB / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.01632, allocations: 47.62 kB / 284.6 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.456e-05/0.01635, allocations: 12 kB / 284.6 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.693e-05/0.01644, allocations: 19.98 kB / 284.6 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.0165, allocations: 39.8 kB / 284.7 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.01652, allocations: 15.98 kB / 284.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.01666, allocations: 275 kB / 284.9 MB, free: 4.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01666, allocations: 0 / 284.9 MB, free: 4.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.01693, allocations: 119.7 kB / 285.1 MB, free: 4.754 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: 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.000843/0.01778, allocations: 438.8 kB / 285.5 MB, free: 4.461 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002918/0.01807, allocations: 339.1 kB / 285.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01807, allocations: 0.9375 kB / 285.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.0182, allocations: 200.6 kB / 286 MB, free: 3.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.01853, allocations: 104.3 kB / 286.1 MB, free: 3.785 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000783/0.01931, allocations: 0.7399 MB / 286.9 MB, free: 3.004 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.221e-05/0.01938, allocations: 126.2 kB / 287 MB, free: 2.863 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.01949, allocations: 55.28 kB / 287 MB, free: 2.809 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.01967, allocations: 166.2 kB / 287.2 MB, free: 2.645 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01967, allocations: 0 / 287.2 MB, free: 2.645 MB / 266.7 MB Notification: Performance of Templates: time 0.09919/0.1189, allocations: 6.214 MB / 293.4 MB, free: 28.9 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.770686164032668]