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.001433/0.001433, allocations: 80.62 kB / 22.21 MB, free: 2.297 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.001537/0.001537, allocations: 146.9 kB / 25.59 MB, free: 8.578 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 1.026/1.026, allocations: 173.4 MB / 202.3 MB, free: 8.297 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 1.643e-06/1.643e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.098e-05/2.262e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003369/0.003392, allocations: 2.443 MB / 271.6 MB, free: 7.316 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.005326, allocations: 1.312 MB / 273 MB, free: 6.004 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002068/0.005533, allocations: 11.94 kB / 273 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006719/0.006205, allocations: 241.9 kB / 273.2 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006271/0.006832, allocations: 168.8 kB / 273.4 MB, free: 5.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005895/0.007421, allocations: 304.8 kB / 273.7 MB, free: 5.297 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004564/0.007878, allocations: 483.6 kB / 274.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.008114, allocations: 146.6 kB / 274.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002701/0.008384, allocations: 275.3 kB / 274.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.008577, allocations: 168.2 kB / 274.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.632e-05/0.008623, allocations: 36 kB / 274.7 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000225/0.008848, allocations: 134.8 kB / 274.9 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.008976, allocations: 131.5 kB / 275 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.009094, allocations: 135.6 kB / 275.1 MB, free: 3.812 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004844/0.009579, allocations: 446.2 kB / 275.6 MB, free: 3.375 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.009582, allocations: 0 / 275.6 MB, free: 3.375 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.009583, allocations: 0 / 275.6 MB, free: 3.375 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.00959, allocations: 0 / 275.6 MB, free: 3.375 MB / 250.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.0009305/0.01052, allocations: 0.8762 MB / 276.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.01056, allocations: 15.97 kB / 276.5 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.01066, allocations: 93.05 kB / 276.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003755/0.01104, allocations: 339.3 kB / 276.9 MB, free: 1.98 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.825e-05/0.01112, allocations: 88.72 kB / 277 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.555e-05/0.01115, allocations: 36 kB / 277 MB, free: 1.848 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.01155, allocations: 377.9 kB / 277.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.01156, allocations: 0 / 277.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.01159, allocations: 15.98 kB / 277.4 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.946e-05/0.01161, allocations: 24.42 kB / 277.4 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.01179, allocations: 149 kB / 277.6 MB, free: 1.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.01308, allocations: 1.876 MB / 279.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.01337, allocations: 258.9 kB / 279.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.665e-05/0.01345, allocations: 100.7 kB / 279.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.01349, allocations: 12 kB / 279.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.01375, allocations: 327.8 kB / 280.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.513e-06/0.01376, allocations: 0 / 280.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007436/0.0145, allocations: 416.3 kB / 280.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.01455, allocations: 132.5 kB / 280.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.01485, allocations: 474.2 kB / 281.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.01488, allocations: 45.64 kB / 281.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.01502, allocations: 279.7 kB / 281.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.711e-05/0.01509, allocations: 95.23 kB / 281.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.01522, allocations: 127.7 kB / 281.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.0154, allocations: 0.5429 MB / 282.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.729e-05/0.01549, allocations: 74.66 kB / 282.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.0157, allocations: 298.3 kB / 282.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.01599, allocations: 376 kB / 282.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.016, allocations: 4 kB / 282.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004058/0.01641, allocations: 410.1 kB / 283.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.01644, allocations: 40.03 kB / 283.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.01645, allocations: 4 kB / 283.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.01647, allocations: 12 kB / 283.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.108e-05/0.01656, allocations: 43.91 kB / 283.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.01657, allocations: 11.94 kB / 283.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.01669, allocations: 43.77 kB / 283.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.952e-05/0.01672, allocations: 20 kB / 283.5 MB, free: 10.79 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.0001612/0.01688, allocations: 251.2 kB / 283.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.872e-05/0.01694, allocations: 59.72 kB / 283.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.0173, allocations: 356.8 kB / 284.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.0173, allocations: 4 kB / 284.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.0173, allocations: 4 kB / 284.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.01731, allocations: 3.984 kB / 284.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005541/0.01787, allocations: 0.5788 MB / 284.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.01787, allocations: 0 / 284.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.768e-05/0.01791, allocations: 19.92 kB / 284.8 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.01791, allocations: 4 kB / 284.8 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.01793, allocations: 12 kB / 284.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.01793, allocations: 4 kB / 284.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.01793, allocations: 3.984 kB / 284.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003961/0.01833, allocations: 0.5326 MB / 285.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.47e-05/0.01837, allocations: 47.64 kB / 285.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.01841, allocations: 12 kB / 285.4 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.01852, allocations: 15.98 kB / 285.4 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.42e-05/0.01861, allocations: 43.8 kB / 285.4 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.01864, allocations: 15.98 kB / 285.5 MB, free: 8.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001764/0.01881, allocations: 274.9 kB / 285.7 MB, free: 8.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01881, allocations: 3.938 kB / 285.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003716/0.01919, allocations: 119.7 kB / 285.8 MB, free: 8.344 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.0009108/0.0201, allocations: 439.4 kB / 286.3 MB, free: 8.051 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.02043, allocations: 335.1 kB / 286.6 MB, free: 7.695 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.02043, allocations: 0.9375 kB / 286.6 MB, free: 7.695 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.02058, allocations: 200.6 kB / 286.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.02095, allocations: 98.67 kB / 286.9 MB, free: 7.383 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.02207, allocations: 0.7445 MB / 287.6 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.42e-05/0.02215, allocations: 118.3 kB / 287.8 MB, free: 6.461 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000115/0.02226, allocations: 59.28 kB / 287.8 MB, free: 6.402 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.02245, allocations: 170.1 kB / 288 MB, free: 6.234 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02245, allocations: 0 / 288 MB, free: 6.234 MB / 266.7 MB Notification: Performance of Templates: time 0.008947/0.0314, allocations: 6.342 MB / 294.3 MB, free: 15.98 MB / 282.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: 3.0345904752612114]