Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 197.3 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.6 MB / 244.3 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009129/0.0009127, allocations: 102.5 kB / 296.4 MB, free: 6.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002933, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2215, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.002966/0.2245, allocations: 3.413 MB / 410.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003018/0.2275, allocations: 2.698 MB / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.2279, allocations: 31.81 kB / 413.6 MB, free: 21.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008618/0.2287, allocations: 481.7 kB / 414.1 MB, free: 21.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006304/0.2294, allocations: 385.4 kB / 414.5 MB, free: 20.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.2308, allocations: 0.7486 MB / 415.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.232, allocations: 1.888 MB / 417.1 MB, free: 18.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007838/0.2328, allocations: 0.9506 MB / 418.1 MB, free: 17.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/0.2332, allocations: 0.5174 MB / 418.6 MB, free: 16.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003827/0.2336, allocations: 0.5715 MB / 419.1 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.2337, allocations: 59.98 kB / 419.2 MB, free: 16.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.2339, allocations: 128 kB / 419.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.2341, allocations: 338.8 kB / 419.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.2343, allocations: 281 kB / 419.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009744/0.2353, allocations: 1.739 MB / 421.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2353, allocations: 0 / 421.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2353, allocations: 4 kB / 421.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.2353, allocations: 0 / 421.7 MB, free: 13.59 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.00179/0.2371, allocations: 1.586 MB / 423.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2372, allocations: 8.031 kB / 423.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.2374, allocations: 170.1 kB / 423.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009293/0.2383, allocations: 0.8834 MB / 424.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.2385, allocations: 204.1 kB / 424.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.2386, allocations: 147.9 kB / 424.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.2405, allocations: 1.468 MB / 426.1 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.2405, allocations: 4 kB / 426.1 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-05/0.2406, allocations: 67.97 kB / 426.2 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/0.2407, allocations: 46.19 kB / 426.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.242, allocations: 0.9765 MB / 427.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004104/0.2462, allocations: 5.558 MB / 432.8 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.2476, allocations: 1.269 MB / 434.1 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005947/0.2482, allocations: 0.527 MB / 434.6 MB, free: 56 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001459/0.2483, allocations: 98.09 kB / 434.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001187/0.2495, allocations: 0.8972 MB / 435.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 2.975e-06/0.2495, allocations: 0 / 435.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=133): time 0.002412/0.252, allocations: 1.48 MB / 437.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002733/0.2522, allocations: 0.6039 MB / 437.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.2533, allocations: 0.9537 MB / 438.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001401/0.2535, allocations: 113.7 kB / 438.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004028/0.2539, allocations: 0.5321 MB / 439.3 MB, free: 11.1 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000265/0.2541, allocations: 331.8 kB / 439.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.21e-05/0.2542, allocations: 36 kB / 439.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2544, allocations: 373.9 kB / 440 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007708/0.2552, allocations: 471.8 kB / 440.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.2562, allocations: 0.9077 MB / 441.3 MB, free: 8.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008766/0.2571, allocations: 0.5903 MB / 441.9 MB, free: 8.219 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.2571, allocations: 4 kB / 441.9 MB, free: 8.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.002252/0.2594, allocations: 1.563 MB / 443.5 MB, free: 6.625 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.02e-05/0.2595, allocations: 105.1 kB / 443.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.2595, allocations: 12 kB / 443.6 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.2596, allocations: 20 kB / 443.6 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005941/0.2602, allocations: 184.2 kB / 443.8 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.2602, allocations: 27.94 kB / 443.8 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/0.2608, allocations: 158.6 kB / 444 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.2609, allocations: 75.92 kB / 444.1 MB, free: 6.035 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],$whenCondition6,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition3,$whenCondition2,$whenCondition1,tankController.s1.active,$PRE.tankController.s1.localActive,tankController.s1.localActive,tankController.s1.inPort[2].occupied,$PRE.tankController.s1.newActive,tankController.s1.newActive,$PRE.tankController.s1.oldActive,tankController.s1.oldActive,tankController.makeProduct.stateGraphRoot.suspend,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.active,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.T1.condition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.active,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.condition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.active,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.active,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.T2.fire,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.active,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.T4.fire,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.condition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.active,$PRE.tankController.s2.localActive,tankController.s2.localActive,tankController.s2.outPort[2].available,$PRE.tankController.s2.newActive,tankController.s2.newActive,$PRE.tankController.s2.oldActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.active,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.oldActive,tankController.T6.condition,tankController.T6.enableFire,start.reset[1],start.reset[2],$PRE.start.on,start.on,stop.reset[1],stop.reset[2],$PRE.stop.on,stop.on,shut.reset[1],shut.reset[2],$PRE.shut.on,shut.on,valve2.valveControl,valve3.valveControl,stateGraphRoot.activeSteps,$whenCondition8,$whenCondition7,$whenCondition9,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],$whenCondition11,$whenCondition10,$whenCondition12,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],$whenCondition14,$whenCondition13,$whenCondition15,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],$PRE.tankController.makeProduct.T1.t_start,tankController.makeProduct.T1.t_start,$PRE.tankController.makeProduct.T3.t_start,tankController.makeProduct.T3.t_start,$PRE.tankController.T1.t_start,tankController.T1.t_start,$PRE.tankController.T2.t_start,tankController.T2.t_start,$PRE.tankController.T3.t_start,tankController.T3.t_start,$PRE.tankController.T4.t_start,tankController.T4.t_start,$PRE.tankController.T5.t_start,tankController.T5.t_start,$PRE.tankController.T6.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007526/0.2616, allocations: 0.6381 MB / 444.7 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.2618, allocations: 118.6 kB / 444.8 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/0.2637, allocations: 1.199 MB / 446 MB, free: 4.016 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.2637, allocations: 16 kB / 446 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.2637, allocations: 288 / 446 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.2637, allocations: 15.95 kB / 446.1 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003706/0.2674, allocations: 2.743 MB / 448.8 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.2674, allocations: 7.938 kB / 448.8 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.2678, allocations: 75.81 kB / 448.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.2678, allocations: 8 kB / 448.9 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.638e-05/0.2679, allocations: 43.97 kB / 448.9 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.2679, allocations: 7.938 kB / 448.9 MB, free: 1.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2679, allocations: 4 kB / 448.9 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.2706, allocations: 1.906 MB / 450.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.2709, allocations: 323.5 kB / 451.2 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.2711, allocations: 55.97 kB / 451.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.2715, allocations: 51.97 kB / 451.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002815/0.2718, allocations: 164.7 kB / 451.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.113e-05/0.2719, allocations: 59.97 kB / 451.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000699/0.2726, allocations: 0.5966 MB / 452.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2726, allocations: 0 / 452.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009484/0.2736, allocations: 343 kB / 452.4 MB, free: 13.45 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001059/0.2746, allocations: 0.5488 MB / 453 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.2767, allocations: 1.476 MB / 454.4 MB, free: 11.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2767, allocations: 0 / 454.4 MB, free: 11.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.2778, allocations: 0.8518 MB / 455.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008901/0.2787, allocations: 214.8 kB / 455.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/0.2822, allocations: 2.657 MB / 458.2 MB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007299/0.283, allocations: 1.166 MB / 459.3 MB, free: 6.508 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.2833, allocations: 123.3 kB / 459.5 MB, free: 6.387 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2833, allocations: 0 / 459.5 MB, free: 6.387 MB / 330.7 MB Notification: Performance of Templates: time 0.02347/0.3068, allocations: 18.18 MB / 477.6 MB, free: 4.227 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches