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.001518/0.001518, allocations: 85.95 kB / 22.21 MB, free: 2.285 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.001861/0.001861, allocations: 163.3 kB / 25.6 MB, free: 8.09 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 1.047/1.047, allocations: 158.6 MB / 187.5 MB, free: 2.809 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 2.785e-06/2.785e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.726e-05/4.005e-05, allocations: 6.312 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005395/0.005435, allocations: 2.446 MB / 253.9 MB, free: 4.785 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002921/0.008356, allocations: 1.24 MB / 255.2 MB, free: 3.531 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004555/0.008811, allocations: 15.88 kB / 255.2 MB, free: 3.516 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.009832, allocations: 238.8 kB / 255.4 MB, free: 3.281 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00047/0.0103, allocations: 179 kB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006224/0.01092, allocations: 283.2 kB / 255.9 MB, free: 2.828 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.01149, allocations: 471.6 kB / 256.3 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.01175, allocations: 142.1 kB / 256.5 MB, free: 2.223 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003611/0.01211, allocations: 271.3 kB / 256.7 MB, free: 1.957 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.01236, allocations: 175.4 kB / 256.9 MB, free: 1.785 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.01242, allocations: 36 kB / 256.9 MB, free: 1.75 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.01272, allocations: 131.8 kB / 257.1 MB, free: 1.621 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.01287, allocations: 127.6 kB / 257.2 MB, free: 1.496 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.01301, allocations: 139.5 kB / 257.3 MB, free: 1.359 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006571/0.01367, allocations: 446.2 kB / 257.7 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.01367, allocations: 0 / 257.7 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.01367, allocations: 4 kB / 257.8 MB, free: 0.918 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.01368, allocations: 0 / 257.8 MB, free: 0.918 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.001166/0.01485, allocations: 0.887 MB / 258.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.0149, allocations: 11.98 kB / 258.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.01503, allocations: 92.52 kB / 258.7 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.01542, allocations: 331.3 kB / 259.1 MB, free: 15.53 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-05/0.0155, allocations: 88.95 kB / 259.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.01553, allocations: 40.38 kB / 259.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004157/0.01595, allocations: 378.2 kB / 259.6 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.01596, allocations: 0 / 259.6 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.01598, allocations: 19.94 kB / 259.6 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.01601, allocations: 12.5 kB / 259.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.01618, allocations: 151.8 kB / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.01769, allocations: 1.883 MB / 261.6 MB, free: 12.83 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/0.01807, allocations: 259 kB / 261.9 MB, free: 12.53 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.363e-05/0.01816, allocations: 100.7 kB / 262 MB, free: 12.41 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.029e-05/0.01822, allocations: 19.98 kB / 262 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.01851, allocations: 319.7 kB / 262.3 MB, free: 12.03 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 1.423e-06/0.01851, allocations: 0 / 262.3 MB, free: 12.03 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.000486/0.019, allocations: 410.8 kB / 262.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.01906, allocations: 144.4 kB / 262.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.01937, allocations: 458.2 kB / 263.3 MB, free: 10.97 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.0194, allocations: 41.69 kB / 263.3 MB, free: 10.92 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.01956, allocations: 295.5 kB / 263.6 MB, free: 10.62 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.258e-05/0.01962, allocations: 95.33 kB / 263.7 MB, free: 10.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.01973, allocations: 135.7 kB / 263.9 MB, free: 10.39 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.01991, allocations: 0.5312 MB / 264.4 MB, free: 9.848 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-05/0.01999, allocations: 78.66 kB / 264.5 MB, free: 9.766 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.02017, allocations: 290.4 kB / 264.7 MB, free: 9.391 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.02047, allocations: 373.8 kB / 265.1 MB, free: 8.938 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.02047, allocations: 0 / 265.1 MB, free: 8.938 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004601/0.02093, allocations: 412.1 kB / 265.5 MB, free: 8.516 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.02097, allocations: 33.7 kB / 265.5 MB, free: 8.477 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.02098, allocations: 7.984 kB / 265.6 MB, free: 8.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.021, allocations: 11.94 kB / 265.6 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.596e-05/0.02109, allocations: 47.86 kB / 265.6 MB, free: 8.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.0211, allocations: 4.469 kB / 265.6 MB, free: 8.406 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.02124, allocations: 55.72 kB / 265.7 MB, free: 8.352 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.02127, allocations: 19.98 kB / 265.7 MB, free: 8.332 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.0001881/0.02146, allocations: 243.3 kB / 265.9 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.02152, allocations: 63.66 kB / 266 MB, free: 8.016 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004575/0.02198, allocations: 353.1 kB / 266.3 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.02198, allocations: 8 kB / 266.3 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.02199, allocations: 0 / 266.3 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.02199, allocations: 0 / 266.3 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005681/0.02256, allocations: 0.5758 MB / 266.9 MB, free: 7.031 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.02256, allocations: 3.984 kB / 266.9 MB, free: 7.027 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.911e-05/0.0226, allocations: 23.92 kB / 266.9 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.02261, allocations: 4 kB / 266.9 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.02262, allocations: 11.98 kB / 267 MB, free: 6.988 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.02263, allocations: 4 kB / 267 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.02263, allocations: 0 / 267 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003826/0.02301, allocations: 0.5408 MB / 267.5 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.02306, allocations: 43.64 kB / 267.5 MB, free: 6.363 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.02309, allocations: 11.98 kB / 267.6 MB, free: 6.352 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.646e-05/0.02319, allocations: 19.98 kB / 267.6 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.06e-05/0.02328, allocations: 39.8 kB / 267.6 MB, free: 6.293 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.02331, allocations: 19.98 kB / 267.6 MB, free: 6.273 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003845/0.02369, allocations: 259 kB / 267.9 MB, free: 6.02 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02369, allocations: 4 kB / 267.9 MB, free: 6.016 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000419/0.02411, allocations: 123.7 kB / 268 MB, free: 5.895 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.0009555/0.02507, allocations: 444.9 kB / 268.4 MB, free: 5.504 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003673/0.02543, allocations: 331.1 kB / 268.8 MB, free: 5.152 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.02544, allocations: 0 / 268.8 MB, free: 5.152 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.02559, allocations: 208.4 kB / 269 MB, free: 4.926 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.02595, allocations: 106 kB / 269.1 MB, free: 4.828 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008814/0.02684, allocations: 0.7401 MB / 269.8 MB, free: 4.043 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.499e-05/0.02692, allocations: 126.3 kB / 269.9 MB, free: 3.902 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.02705, allocations: 51.69 kB / 270 MB, free: 3.848 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.02724, allocations: 170.1 kB / 270.2 MB, free: 3.68 MB / 250.7 MB Notification: Performance of SimCode: time 1.142e-06/0.02724, allocations: 4 kB / 270.2 MB, free: 3.676 MB / 250.7 MB Notification: Performance of Templates: time 0.01037/0.03761, allocations: 6.24 MB / 276.4 MB, free: 13.43 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: 3.2766457800753415]