Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks") translateModel(Modelica.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 115 kB / 17.07 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 196 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.4221, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.006421/0.4286, allocations: 3.82 MB / 404.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005182/0.4338, allocations: 2.58 MB / 407.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009042/0.4348, allocations: 27.88 kB / 407.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.4363, allocations: 0.5638 MB / 407.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001057/0.4374, allocations: 440.1 kB / 408.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002712/0.4401, allocations: 1.09 MB / 409.2 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00277/0.4429, allocations: 2.15 MB / 411.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001681/0.4446, allocations: 1.228 MB / 412.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008459/0.4454, allocations: 0.7281 MB / 413.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007229/0.4462, allocations: 0.7313 MB / 414.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002348/0.4464, allocations: 200 kB / 414.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004855/0.4469, allocations: 295.9 kB / 414.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004336/0.4473, allocations: 0.4908 MB / 415 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007009/0.4481, allocations: 0.7814 MB / 415.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002368/0.4504, allocations: 2.341 MB / 418.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4505, allocations: 0 / 418.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4505, allocations: 4 kB / 418.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.4505, allocations: 0 / 418.2 MB, free: 7.344 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 319 * Number of variables: 319 Notification: Performance of Generate backend data structure: time 0.003155/0.4537, allocations: 1.902 MB / 420.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4537, allocations: 11.89 kB / 420.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.454, allocations: 163.1 kB / 420.2 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.4553, allocations: 0.9076 MB / 421.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.4555, allocations: 200.7 kB / 421.3 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.4557, allocations: 155.9 kB / 421.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.4581, allocations: 1.484 MB / 423 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.4581, allocations: 7.938 kB / 423 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.4582, allocations: 51.98 kB / 423 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.297e-05/0.4583, allocations: 50.17 kB / 423.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.46, allocations: 0.9843 MB / 424.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005978/0.466, allocations: 5.496 MB / 429.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.4681, allocations: 1.265 MB / 430.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008644/0.469, allocations: 0.5336 MB / 431.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00022/0.4692, allocations: 94.11 kB / 431.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001472/0.4707, allocations: 0.905 MB / 432.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=133): time 3.867e-06/0.4707, allocations: 0 / 432.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=133): time 0.002836/0.4736, allocations: 1.484 MB / 433.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003377/0.4739, allocations: 0.601 MB / 434.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.4752, allocations: 0.9369 MB / 435.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.4754, allocations: 113.7 kB / 435.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.4759, allocations: 0.5205 MB / 436 MB, free: 4.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.4762, allocations: 343.6 kB / 436.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004882/0.4767, allocations: 371.5 kB / 436.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4768, allocations: 357.9 kB / 437.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008379/0.4777, allocations: 475.8 kB / 437.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.4789, allocations: 0.9195 MB / 438.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/0.4807, allocations: 1.378 MB / 439.8 MB, free: 384 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.4807, allocations: 4 kB / 439.8 MB, free: 380 kB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.002719/0.4835, allocations: 1.587 MB / 441.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.4836, allocations: 105.1 kB / 441.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.4836, allocations: 12 kB / 441.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.328e-05/0.4837, allocations: 20 kB / 441.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005979/0.4843, allocations: 187.5 kB / 441.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.16e-05/0.4843, allocations: 28.44 kB / 441.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006573/0.485, allocations: 146.7 kB / 441.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.4851, allocations: 80.05 kB / 442 MB, free: 14.17 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 180 ($PRE.tankController.makeProduct.T1.enableFire,$PRE.tankController.makeProduct.T3.enableFire,$PRE.tankController.makeProduct.T2.enableFire,$PRE.tankController.makeProduct.T4.enableFire,$PRE.tankController.T1.enableFire,$PRE.tankController.T2.enableFire,$PRE.tankController.T3.enableFire,$PRE.tankController.T4.enableFire,$PRE.tankController.T5.enableFire,$PRE.tankController.T6.enableFire,$PRE.start.pre_reset[1],$PRE.start.pre_reset[2],$PRE.stop.pre_reset[1],$PRE.stop.pre_reset[2],$PRE.shut.pre_reset[1],$PRE.shut.pre_reset[2],$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition4,stateGraphRoot.activeSteps,valve3.valveControl,valve2.valveControl,shut.on,$PRE.shut.on,shut.reset[2],shut.reset[1],stop.on,$PRE.stop.on,stop.reset[2],stop.reset[1],start.on,$PRE.start.on,start.reset[2],start.reset[1],tankController.T6.enableFire,tankController.T6.localCondition,tankController.emptyTanks.oldActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.active,tankController.T5.enableFire,tankController.T4.enableFire,tankController.s2.oldActive,$PRE.tankController.s2.oldActive,tankController.s2.newActive,$PRE.tankController.s2.newActive,tankController.s2.outPort[2].available,tankController.s2.localActive,$PRE.tankController.s2.localActive,tankController.s2.active,tankController.T3.enableFire,tankController.T2.enableFire,tankController.T2.localCondition,tankController.T1.enableFire,tankController.makeProduct.T4.t_start,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.oldActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T2.t_start,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.oldActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.active,tankController.makeProduct.emptyTank2.oldActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.localCondition,tankController.makeProduct.fillTank2.oldActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.localCondition,tankController.makeProduct.fillTank1.oldActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.activeSteps,tankController.makeProduct.newActive,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.active,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.stateGraphRoot.suspend,tankController.s1.oldActive,$PRE.tankController.s1.oldActive,tankController.s1.newActive,$PRE.tankController.s1.newActive,tankController.s1.inPort[2].occupied,tankController.s1.localActive,$PRE.tankController.s1.localActive,tankController.s1.active,$whenCondition1,$whenCondition2,$whenCondition3,shut.pre_reset[2],shut.pre_reset[1],shut.table.combiTimeTable.nextTimeEventScaled,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEvent,shut.table.y,$PRE.shut.table.y,$PRE.shut.reset[2],$PRE.shut.reset[1],$whenCondition9,$whenCondition7,$whenCondition8,stop.pre_reset[2],stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[2],$PRE.stop.reset[1],$whenCondition12,$whenCondition10,$whenCondition11,start.pre_reset[2],start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[2],$PRE.start.reset[1],$whenCondition15,$whenCondition13,$whenCondition14,tankController.makeProduct.T1.t_start,$PRE.tankController.makeProduct.T1.t_start,tankController.makeProduct.T3.t_start,$PRE.tankController.makeProduct.T3.t_start,tankController.T1.t_start,$PRE.tankController.T1.t_start,tankController.T2.t_start,$PRE.tankController.T2.t_start,tankController.T3.t_start,$PRE.tankController.T3.t_start,tankController.T4.t_start,$PRE.tankController.T4.t_start,tankController.T5.t_start,$PRE.tankController.T5.t_start,tankController.T6.t_start,$PRE.tankController.T6.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,tankController.makeProduct.T4.condition,tankController.makeProduct.T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 3 * 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.001038/0.4862, allocations: 0.6303 MB / 442.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002453/0.4864, allocations: 118.7 kB / 442.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/0.4884, allocations: 1.195 MB / 443.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.4885, allocations: 16 kB / 443.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4885, allocations: 4 kB / 443.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.4885, allocations: 3.984 kB / 443.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.4925, allocations: 2.714 MB / 446.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/0.4926, allocations: 7.984 kB / 446.7 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.4929, allocations: 83.77 kB / 446.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.564e-05/0.4929, allocations: 11.94 kB / 446.8 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-05/0.493, allocations: 39.97 kB / 446.8 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.493, allocations: 4 kB / 446.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.493, allocations: 4 kB / 446.8 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/0.496, allocations: 1.912 MB / 448.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004231/0.4964, allocations: 303.5 kB / 449 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.4966, allocations: 55.92 kB / 449.1 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003647/0.497, allocations: 52.02 kB / 449.1 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/0.4973, allocations: 148.8 kB / 449.3 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.4974, allocations: 51.97 kB / 449.3 MB, free: 6.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007614/0.4982, allocations: 0.5849 MB / 449.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4982, allocations: 0 / 449.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001266/0.4995, allocations: 347 kB / 450.2 MB, free: 5.691 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (tank1.level,tank2.level) * Number of discrete variables: 112 (tankController.T6.t_start,tankController.T5.t_start,tankController.T4.t_start,tankController.T3.t_start,tankController.T2.t_start,tankController.T1.t_start,tankController.makeProduct.T3.t_start,tankController.makeProduct.T1.t_start,tankController.makeProduct.stateGraphRoot.suspend,tankController.emptyTanks.active,tankController.s2.active,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.active,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.active,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.fillTank2.active,tankController.makeProduct.fillTank1.localActive,tankController.s1.active,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition14,$whenCondition13,$whenCondition15,tankController.s1.localActive,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.active,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.T1.localCondition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.localCondition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.localCondition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.localActive,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.localActive,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.T6.localCondition,tankController.T6.enableFire,start.reset[1],start.reset[2],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],valve2.valveControl,valve3.valveControl,stateGraphRoot.activeSteps) * Number of discrete states: 50 (shut.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,tankController.s1.newActive,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait2.newActive,tankController.makeProduct.newActive,tankController.s2.newActive,tankController.emptyTanks.newActive,shut.table.combiTimeTable.nextTimeEventScaled,$whenCondition9,shut.on,$whenCondition8,$whenCondition7,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],shut.table.y,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition12,stop.on,$whenCondition11,$whenCondition10,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition15,start.on,$whenCondition14,$whenCondition13,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2],start.table.y,tankController.makeProduct.T1.t_start,tankController.makeProduct.T3.t_start,tankController.T1.t_start,tankController.T2.t_start,tankController.T3.t_start,tankController.T4.t_start,tankController.T5.t_start,tankController.T6.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 24 * 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.001214/0.5007, allocations: 0.5737 MB / 450.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00252/0.5032, allocations: 1.491 MB / 452.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5032, allocations: 0 / 452.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.5044, allocations: 0.8631 MB / 453.2 MB, free: 2.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.5055, allocations: 233.5 kB / 453.4 MB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00435/0.5099, allocations: 2.237 MB / 455.6 MB, free: 324 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008695/0.5107, allocations: 1.166 MB / 456.8 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005986/0.5114, allocations: 201.6 kB / 457 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.5117, allocations: 119.4 kB / 457.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5117, allocations: 0 / 457.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of Templates: time 0.03038/0.542, allocations: 15.32 MB / 472.4 MB, free: 15.54 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/ControlledTanks/ControlledTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches