Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ControlledTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ControlledTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.402e-05/3.427e-05, allocations: 1.406 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4093/0.5101, allocations: 75.44 MB / 375.4 MB, free: 22.08 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.5105, allocations: 70.72 kB / 375.4 MB, free: 22.08 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07758/0.5881, allocations: 19.94 MB / 395.4 MB, free: 20.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5881, allocations: 0 / 395.4 MB, free: 20.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.764e-05/0.5882, allocations: 27.31 kB / 395.4 MB, free: 20.27 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003221/0.5915, allocations: 1.285 MB / 396.7 MB, free: 19.31 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.5915, allocations: 7.812 kB / 396.7 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005708/0.5921, allocations: 181.2 kB / 396.9 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004425/0.5926, allocations: 124.9 kB / 397 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.5942, allocations: 0.6182 MB / 397.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.5945, allocations: 196.6 kB / 397.8 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003712/0.5949, allocations: 132 kB / 397.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00371/0.5986, allocations: 1.314 MB / 399.3 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.517e-05/0.5987, allocations: 0 / 399.3 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.5989, allocations: 54.14 kB / 399.3 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.448e-05/0.599, allocations: 45.06 kB / 399.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002923/0.6019, allocations: 0.9247 MB / 400.3 MB, free: 18.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007706/0.6097, allocations: 5.065 MB / 405.3 MB, free: 15.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002089/0.6118, allocations: 0.9783 MB / 406.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.613, allocations: 443.5 kB / 406.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001813/0.6132, allocations: 93.62 kB / 406.8 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.6145, allocations: 0.694 MB / 407.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 4.599e-06/0.6146, allocations: 0 / 407.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.002343/0.6169, allocations: 1.068 MB / 408.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/0.6171, allocations: 403.5 kB / 409 MB, free: 13.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007873/0.6179, allocations: 461.5 kB / 409.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/0.6182, allocations: 100.2 kB / 409.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003533/0.6186, allocations: 479.6 kB / 410 MB, free: 12.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003687/0.619, allocations: 261.2 kB / 410.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.6191, allocations: 30.38 kB / 410.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0005286/0.6196, allocations: 372.2 kB / 410.7 MB, free: 28.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.6208, allocations: 392.5 kB / 411 MB, free: 28.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.6221, allocations: 0.6969 MB / 411.7 MB, free: 28.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.6234, allocations: 0.647 MB / 412.4 MB, free: 27.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.6234, allocations: 3.875 kB / 412.4 MB, free: 27.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003232/0.6267, allocations: 1.507 MB / 413.9 MB, free: 27.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001908/0.6269, allocations: 265.1 kB / 414.2 MB, free: 26.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.6269, allocations: 7.812 kB / 414.2 MB, free: 26.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.354e-05/0.627, allocations: 23.52 kB / 414.2 MB, free: 26.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009159/0.6279, allocations: 137.2 kB / 414.3 MB, free: 26.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.248e-05/0.628, allocations: 23.64 kB / 414.3 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000893/0.6289, allocations: 103 kB / 414.4 MB, free: 26.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/0.6291, allocations: 65.3 kB / 414.5 MB, free: 26.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 149 ($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,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$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.s1.active,tankController.makeProduct.stateGraphRoot.suspend,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,$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.fillTank1.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.condition,$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.fillTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.condition,$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.emptyTank2.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.wait1.active,tankController.makeProduct.T2.enableFire,tankController.makeProduct.T2.fire,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.t_start,$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.wait2.active,tankController.makeProduct.T4.enableFire,tankController.makeProduct.T4.fire,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.enableFire,tankController.T2.condition,tankController.T3.enableFire,$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.s2.active,tankController.T4.enableFire,tankController.T5.enableFire,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.oldActive,tankController.emptyTanks.active,tankController.T6.enableFire,tankController.T6.condition,tankController.valve2,tankController.valve3,$PRE.start.reset[1],start.reset[1],$PRE.start.reset[2],start.reset[2],$PRE.start.on,start.on,$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,$PRE.stop.reset[1],stop.reset[1],$PRE.stop.reset[2],stop.reset[2],$PRE.stop.on,stop.on,$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,$PRE.shut.reset[1],shut.reset[1],$PRE.shut.reset[2],shut.reset[2],$PRE.shut.on,shut.on,$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,tankController.makeProduct.T4.condition,tankController.makeProduct.T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 9 * 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.0006198/0.6297, allocations: 473.5 kB / 415 MB, free: 26.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002203/0.63, allocations: 81.83 kB / 415.1 MB, free: 26.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/0.6327, allocations: 1.2 MB / 416.3 MB, free: 25.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.6328, allocations: 11.72 kB / 416.3 MB, free: 25.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.6328, allocations: 4 kB / 416.3 MB, free: 25.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6328, allocations: 7.969 kB / 416.3 MB, free: 25.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005495/0.6383, allocations: 2.477 MB / 418.8 MB, free: 24.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.6384, allocations: 0 / 418.8 MB, free: 24.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005685/0.639, allocations: 62.64 kB / 418.8 MB, free: 24.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.561e-05/0.639, allocations: 7.875 kB / 418.8 MB, free: 24.94 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.6391, allocations: 42.33 kB / 418.9 MB, free: 24.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.6392, allocations: 3.906 kB / 418.9 MB, free: 24.92 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6392, allocations: 3.938 kB / 418.9 MB, free: 24.92 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.6428, allocations: 1.756 MB / 420.6 MB, free: 24.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000533/0.6434, allocations: 241.8 kB / 420.9 MB, free: 24.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002309/0.6437, allocations: 41.45 kB / 420.9 MB, free: 24.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006347/0.6443, allocations: 51.98 kB / 421 MB, free: 24.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004757/0.6448, allocations: 137.6 kB / 421.1 MB, free: 24.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.645, allocations: 46.84 kB / 421.1 MB, free: 24.2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004514/0.6454, allocations: 276.7 kB / 421.4 MB, free: 24.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6455, allocations: 0 / 421.4 MB, free: 24.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001451/0.6469, allocations: 281.8 kB / 421.7 MB, free: 24.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank1.level,tank2.level) * Number of discrete variables: 95 (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,$cse4,$cse6,$cse7,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.s1.active,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.condition,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.condition,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.enableFire,tankController.T2.condition,tankController.T3.enableFire,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.s2.active,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.emptyTanks.active,tankController.T6.enableFire,tankController.T6.condition,tankController.valve2,tankController.valve3,start.reset[1],start.reset[2],start.on,start.table.y,start.table.nextTime,start.table.index,stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.nextTime,shut.table.index,stateGraphRoot.activeSteps) * Number of discrete states: 36 (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,start.table.y,start.table.nextTime,start.table.index,$whenCondition12,$whenCondition11,$whenCondition10,start.on,start.reset[1],start.reset[2],stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition9,$whenCondition8,$whenCondition7,stop.on,stop.reset[1],stop.reset[2],shut.table.y,shut.table.nextTime,shut.table.index,$whenCondition6,$whenCondition5,$whenCondition4,shut.on,shut.reset[1],shut.reset[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 10 * 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.004615/0.6516, allocations: 2.477 MB / 424.2 MB, free: 22.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002983/0.6546, allocations: 1.558 MB / 425.7 MB, free: 21.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6547, allocations: 0 / 425.7 MB, free: 21.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.656, allocations: 0.856 MB / 426.6 MB, free: 21.24 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.6568, allocations: 89.45 kB / 426.7 MB, free: 21.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.6616, allocations: 1.533 MB / 428.2 MB, free: 20.33 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007429/0.6624, allocations: 1.043 MB / 429.2 MB, free: 19.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008821/0.6633, allocations: 357.8 kB / 429.6 MB, free: 19.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6633, allocations: 3.906 kB / 429.6 MB, free: 19.18 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.894/3.558, allocations: 16.66 MB / 446.2 MB, free: 8.91 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ControlledTanks_res.mat does not exist to compare? outputFormat=mat