Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ControlledTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_ControlledTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.16e-05/2.169e-05, allocations: 4 kB / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2797, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.4113, allocations: 69.49 MB / 327.8 MB, free: 8.34 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.4116, allocations: 63.97 kB / 327.9 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07839/0.49, allocations: 19.65 MB / 347.5 MB, free: 4.559 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4901, allocations: 0 / 347.5 MB, free: 4.559 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.499e-05/0.4902, allocations: 27.92 kB / 347.5 MB, free: 4.531 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003977/0.4942, allocations: 1.279 MB / 348.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.4943, allocations: 8.031 kB / 348.8 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006898/0.495, allocations: 122.7 kB / 348.9 MB, free: 2.996 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/0.4968, allocations: 0.6278 MB / 349.6 MB, free: 2.328 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.497, allocations: 139.3 kB / 349.7 MB, free: 2.172 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000336/0.4974, allocations: 87.86 kB / 349.8 MB, free: 2.086 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002753/0.5001, allocations: 0.8323 MB / 350.6 MB, free: 1.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003144/0.5033, allocations: 1.154 MB / 351.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.141e-05/0.5034, allocations: 7.938 kB / 351.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/0.5035, allocations: 11.98 kB / 351.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-05/0.5036, allocations: 45.98 kB / 351.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008506/0.5122, allocations: 4.88 MB / 356.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.5143, allocations: 0.921 MB / 357.6 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009279/0.5152, allocations: 411.8 kB / 358 MB, free: 9.504 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001699/0.5154, allocations: 85.89 kB / 358.1 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001343/0.5168, allocations: 0.6696 MB / 358.8 MB, free: 8.684 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 3.837e-06/0.5168, allocations: 0 / 358.8 MB, free: 8.684 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.002454/0.5193, allocations: 0.8213 MB / 359.6 MB, free: 7.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003197/0.5197, allocations: 415.3 kB / 360 MB, free: 7.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009482/0.5206, allocations: 452.1 kB / 360.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003612/0.521, allocations: 77.67 kB / 360.5 MB, free: 6.836 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005556/0.5216, allocations: 474.7 kB / 361 MB, free: 6.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004769/0.5221, allocations: 248.9 kB / 361.2 MB, free: 6.121 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.119e-05/0.5222, allocations: 0 / 361.2 MB, free: 6.121 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.5224, allocations: 366.8 kB / 361.6 MB, free: 5.754 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.5234, allocations: 356 kB / 362 MB, free: 5.406 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.5247, allocations: 0.6566 MB / 362.6 MB, free: 4.621 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.5259, allocations: 382.1 kB / 363 MB, free: 4.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.5259, allocations: 7.938 kB / 363 MB, free: 4.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003033/0.5289, allocations: 1.125 MB / 364.1 MB, free: 3.109 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.5292, allocations: 271.3 kB / 364.4 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.5292, allocations: 8 kB / 364.4 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.525e-05/0.5293, allocations: 16 kB / 364.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008537/0.5301, allocations: 140.3 kB / 364.5 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.147e-05/0.5302, allocations: 27.92 kB / 364.6 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007635/0.5309, allocations: 67.38 kB / 364.6 MB, free: 2.535 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001874/0.5311, allocations: 71.98 kB / 364.7 MB, free: 2.465 MB / 314.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.0006382/0.5318, allocations: 445.4 kB / 365.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002296/0.5341, allocations: 0.8759 MB / 366 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.5343, allocations: 67.25 kB / 366.1 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.5369, allocations: 0.9463 MB / 367 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/0.5369, allocations: 19.89 kB / 367 MB, free: 52 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.5369, allocations: 3.984 kB / 367 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5369, allocations: 3.984 kB / 367.1 MB, free: 44 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2318/0.7687, allocations: 2.079 MB / 369.1 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.7688, allocations: 0.9688 kB / 369.1 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.7694, allocations: 64.34 kB / 369.2 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.53e-05/0.7694, allocations: 6.953 kB / 369.2 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.49e-05/0.7695, allocations: 23.12 kB / 369.2 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.987e-06/0.7695, allocations: 6.594 kB / 369.2 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.7695, allocations: 0 / 369.2 MB, free: 86.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003388/0.7729, allocations: 1.494 MB / 370.7 MB, free: 85.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005037/0.7735, allocations: 244.5 kB / 371 MB, free: 85.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/0.7737, allocations: 31.75 kB / 371 MB, free: 85.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005887/0.7743, allocations: 30.5 kB / 371 MB, free: 85.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004337/0.7748, allocations: 143.1 kB / 371.2 MB, free: 85.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.7749, allocations: 45.3 kB / 371.2 MB, free: 85.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003834/0.7753, allocations: 257.3 kB / 371.5 MB, free: 85.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7753, allocations: 0 / 371.5 MB, free: 85.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001366/0.7767, allocations: 232.4 kB / 371.7 MB, free: 85.8 MB / 314.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.004041/0.7808, allocations: 2.201 MB / 373.9 MB, free: 85.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.7831, allocations: 1.478 MB / 375.4 MB, free: 84.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.7832, allocations: 0 / 375.4 MB, free: 84.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.7843, allocations: 0.8258 MB / 376.2 MB, free: 84.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.785, allocations: 70.27 kB / 376.3 MB, free: 84.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.7889, allocations: 1.429 MB / 377.7 MB, free: 83.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005835/0.7895, allocations: 1.045 MB / 378.7 MB, free: 83.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007865/0.7903, allocations: 359.4 kB / 379.1 MB, free: 83.01 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7903, allocations: 0 / 379.1 MB, free: 83.01 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.693/3.483, allocations: 16.61 MB / 395.7 MB, free: 76.21 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.ControlledTanks_res.mat does not exist to compare? outputFormat=mat