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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 105.4 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 47.88 kB / 350 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3961, allocations: 49.43 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.004877/0.401, allocations: 3.982 MB / 403.4 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003653/0.4047, allocations: 2.626 MB / 406.1 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006389/0.4054, allocations: 27.88 kB / 406.1 MB, free: 26.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.4064, allocations: 495.8 kB / 406.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006648/0.4071, allocations: 374.6 kB / 406.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.409, allocations: 0.9941 MB / 407.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.4106, allocations: 1.997 MB / 409.9 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001314/0.412, allocations: 1.089 MB / 411 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007356/0.4127, allocations: 0.5953 MB / 411.6 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008245/0.4135, allocations: 0.6688 MB / 412.3 MB, free: 20.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.4137, allocations: 92 kB / 412.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004683/0.4142, allocations: 171.9 kB / 412.5 MB, free: 20.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003676/0.4146, allocations: 390.7 kB / 412.9 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006702/0.4153, allocations: 0.6838 MB / 413.6 MB, free: 19.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.4168, allocations: 2.105 MB / 415.7 MB, free: 17.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4168, allocations: 4 kB / 415.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4168, allocations: 0 / 415.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.4168, allocations: 0 / 415.7 MB, free: 17.07 MB / 298.7 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.002623/0.4195, allocations: 1.902 MB / 417.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.4195, allocations: 12.03 kB / 417.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.4198, allocations: 163 kB / 417.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.4208, allocations: 0.9036 MB / 418.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.421, allocations: 200.7 kB / 418.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.4212, allocations: 143.9 kB / 419 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.423, allocations: 1.503 MB / 420.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.4231, allocations: 3.938 kB / 420.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.37e-05/0.4232, allocations: 55.98 kB / 420.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-05/0.4232, allocations: 46.19 kB / 420.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.4246, allocations: 0.9882 MB / 421.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005038/0.4297, allocations: 5.539 MB / 427.2 MB, free: 5.156 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.4313, allocations: 1.262 MB / 428.4 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.432, allocations: 0.5258 MB / 429 MB, free: 3.203 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001656/0.4322, allocations: 106 kB / 429.1 MB, free: 3.082 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001218/0.4334, allocations: 0.901 MB / 430 MB, free: 2.102 MB / 298.7 MB Notification: Performance of pre-optimization done (n=133): time 3.787e-06/0.4334, allocations: 3.938 kB / 430 MB, free: 2.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=133): time 0.002459/0.4359, allocations: 1.477 MB / 431.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002584/0.4362, allocations: 0.6078 MB / 432.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.4376, allocations: 0.9369 MB / 433 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.4379, allocations: 109.7 kB / 433.1 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005144/0.4384, allocations: 0.5204 MB / 433.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.4388, allocations: 340 kB / 433.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005582/0.4393, allocations: 379.4 kB / 434.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.4396, allocations: 365.9 kB / 434.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009119/0.4405, allocations: 475.8 kB / 435.1 MB, free: 12.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.4418, allocations: 0.9194 MB / 436.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002103/0.4439, allocations: 1.37 MB / 437.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.444, allocations: 4 kB / 437.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.002905/0.4469, allocations: 1.585 MB / 439 MB, free: 8.449 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.447, allocations: 101.1 kB / 439.1 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.447, allocations: 12 kB / 439.1 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.685e-05/0.4471, allocations: 20 kB / 439.1 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005981/0.4477, allocations: 187.5 kB / 439.3 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.352e-05/0.4477, allocations: 27.92 kB / 439.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007907/0.4485, allocations: 142.6 kB / 439.5 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.4487, allocations: 83.97 kB / 439.6 MB, free: 7.867 MB / 314.7 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.condition,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.condition,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.condition,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.condition,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.001139/0.4498, allocations: 0.6459 MB / 440.2 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.4501, allocations: 106.8 kB / 440.3 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002176/0.4523, allocations: 1.202 MB / 441.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/0.4524, allocations: 12 kB / 441.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.4524, allocations: 7.984 kB / 441.6 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.4524, allocations: 11.98 kB / 441.6 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004425/0.4568, allocations: 2.735 MB / 444.3 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.4569, allocations: 4 kB / 444.3 MB, free: 3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.4572, allocations: 75.81 kB / 444.4 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.798e-05/0.4573, allocations: 11.94 kB / 444.4 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4574, allocations: 39.97 kB / 444.4 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.978e-05/0.4574, allocations: 11.94 kB / 444.4 MB, free: 2.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.4574, allocations: 0 / 444.4 MB, free: 2.863 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006976/0.4644, allocations: 4.266 MB / 448.7 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004437/0.4649, allocations: 299.5 kB / 449 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001798/0.465, allocations: 63.97 kB / 449.1 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.4654, allocations: 39.97 kB / 449.1 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.4658, allocations: 152.7 kB / 449.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.74e-05/0.4659, allocations: 55.97 kB / 449.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007409/0.4666, allocations: 0.585 MB / 449.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4666, allocations: 0 / 449.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001315/0.468, allocations: 383 kB / 450.3 MB, free: 12.83 MB / 330.7 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.localActive,tankController.s2.localActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.localActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.localActive,tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank1.localActive,tankController.s1.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition14,$whenCondition13,$whenCondition15,tankController.s1.active,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.condition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.active,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.condition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.active,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.condition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.active,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.active,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.T6.condition,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.001176/0.4691, allocations: 0.5658 MB / 450.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002401/0.4716, allocations: 1.474 MB / 452.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4716, allocations: 1.875 kB / 452.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.4727, allocations: 0.8713 MB / 453.2 MB, free: 9.992 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009879/0.4737, allocations: 204.9 kB / 453.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004668/0.4784, allocations: 3.385 MB / 456.8 MB, free: 6.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008267/0.4792, allocations: 1.208 MB / 458 MB, free: 5.098 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007341/0.48, allocations: 197.7 kB / 458.2 MB, free: 4.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003083/0.4803, allocations: 119.4 kB / 458.3 MB, free: 4.785 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.4803, allocations: 0 / 458.3 MB, free: 4.785 MB / 330.7 MB Notification: Performance of Templates: time 0.02964/0.51, allocations: 15.52 MB / 473.8 MB, free: 5.332 MB / 346.7 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)