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.001119/0.001119, allocations: 88.86 kB / 21.5 MB, free: 2.984 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.001327/0.001327, allocations: 162 kB / 24.91 MB, free: 8.766 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 1.007/1.007, allocations: 177 MB / 205.2 MB, free: 5.438 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.583e-06/1.583e-06, allocations: 0 / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.607e-05, allocations: 2.312 kB / 273.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003436/0.003462, allocations: 2.527 MB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.005689, allocations: 1.487 MB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.005905, allocations: 15.88 kB / 277.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000622/0.006527, allocations: 238.8 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004208/0.006947, allocations: 202.9 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005233/0.007471, allocations: 271.1 kB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005169/0.007988, allocations: 487.6 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.008233, allocations: 148.3 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.008519, allocations: 275.3 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.008728, allocations: 175.4 kB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.382e-05/0.008772, allocations: 36 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002214/0.008993, allocations: 131.7 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.009115, allocations: 131.5 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.009219, allocations: 139.6 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005131/0.009732, allocations: 446.1 kB / 280.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.009736, allocations: 0 / 280.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.009736, allocations: 4 kB / 280.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.009742, allocations: 0 / 280.1 MB, free: 10.47 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.0007861/0.01053, allocations: 0.7505 MB / 280.8 MB, free: 9.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.01057, allocations: 11.98 kB / 280.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002112/0.01078, allocations: 80.88 kB / 280.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.01114, allocations: 296.6 kB / 281.2 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.643e-05/0.01121, allocations: 88.89 kB / 281.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.01125, allocations: 40.38 kB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.0116, allocations: 357 kB / 281.7 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.01161, allocations: 4.125 kB / 281.7 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.01163, allocations: 20.11 kB / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.01165, allocations: 16.5 kB / 281.7 MB, free: 8.699 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.0118, allocations: 150.7 kB / 281.9 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.01289, allocations: 1.302 MB / 283.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.01317, allocations: 313.6 kB / 283.5 MB, free: 6.848 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.422e-05/0.01325, allocations: 92.23 kB / 283.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.01329, allocations: 8 kB / 283.6 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.01358, allocations: 305 kB / 283.9 MB, free: 6.391 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.01358, allocations: 0 / 283.9 MB, free: 6.391 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0004272/0.01401, allocations: 328.1 kB / 284.2 MB, free: 6.043 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.01408, allocations: 140.5 kB / 284.3 MB, free: 5.875 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.01442, allocations: 408.7 kB / 284.7 MB, free: 5.461 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.01445, allocations: 37.7 kB / 284.8 MB, free: 5.418 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.01457, allocations: 197.8 kB / 285 MB, free: 5.223 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.392e-05/0.01464, allocations: 87.28 kB / 285.1 MB, free: 5.137 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.01478, allocations: 126 kB / 285.2 MB, free: 5.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.01499, allocations: 366.6 kB / 285.5 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.0151, allocations: 73.52 kB / 285.6 MB, free: 4.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.01534, allocations: 248.6 kB / 285.8 MB, free: 4.246 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003174/0.01565, allocations: 323.2 kB / 286.2 MB, free: 3.859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.01566, allocations: 0 / 286.2 MB, free: 3.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004792/0.01614, allocations: 330.1 kB / 286.5 MB, free: 3.516 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.01618, allocations: 34.17 kB / 286.5 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.01619, allocations: 4 kB / 286.5 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.01621, allocations: 15.94 kB / 286.5 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.01636, allocations: 47.91 kB / 286.6 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.01637, allocations: 11.94 kB / 286.6 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.01656, allocations: 55.66 kB / 286.7 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.01659, allocations: 16 kB / 286.7 MB, free: 3.328 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.00027/0.01686, allocations: 203.7 kB / 286.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.35e-05/0.01692, allocations: 47.94 kB / 286.9 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.01729, allocations: 267.9 kB / 287.2 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.134e-05/0.01732, allocations: 8 kB / 287.2 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.01732, allocations: 0 / 287.2 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.01733, allocations: 0 / 287.2 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000708/0.01804, allocations: 458.6 kB / 287.6 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.01805, allocations: 0 / 287.6 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.223e-05/0.01813, allocations: 19.98 kB / 287.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.01814, allocations: 4 kB / 287.7 MB, free: 2.273 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.01816, allocations: 12 kB / 287.7 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.01817, allocations: 11.81 kB / 287.7 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.01817, allocations: 4 kB / 287.7 MB, free: 2.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.01858, allocations: 414.9 kB / 288.1 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.701e-05/0.01864, allocations: 39.66 kB / 288.1 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.01869, allocations: 12 kB / 288.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.01889, allocations: 23.92 kB / 288.2 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.01902, allocations: 50.73 kB / 288.2 MB, free: 1.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.01905, allocations: 11.94 kB / 288.2 MB, free: 1.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001769/0.01922, allocations: 148.7 kB / 288.4 MB, free: 1.523 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01922, allocations: 4 kB / 288.4 MB, free: 1.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005391/0.01976, allocations: 115.8 kB / 288.5 MB, free: 1.406 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.001738/0.0215, allocations: 0.5294 MB / 289 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004117/0.02191, allocations: 324.7 kB / 289.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/0.02192, allocations: 4 kB / 289.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.02208, allocations: 185.7 kB / 289.5 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.02239, allocations: 95 kB / 289.6 MB, free: 432 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009586/0.02335, allocations: 0.7424 MB / 290.4 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.167e-05/0.02343, allocations: 126.3 kB / 290.5 MB, free: 15.5 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.02354, allocations: 47.44 kB / 290.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.02373, allocations: 143.3 kB / 290.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of SimCode: time 1.323e-06/0.02373, allocations: 0 / 290.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of Templates: time 0.009118/0.03285, allocations: 5.755 MB / 296.4 MB, free: 9.625 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 -s gbode -gbm=radauIIA3 -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: 2.8553694621659815]