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.773/1.773, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.279e-05, allocations: 0 / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2922, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1274/0.4197, allocations: 70.15 MB / 334 MB, free: 3.621 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.42, allocations: 67.97 kB / 334 MB, free: 3.555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08753/0.5076, allocations: 19.96 MB / 354 MB, free: 15.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5076, allocations: 0 / 354 MB, free: 15.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.388e-05/0.5077, allocations: 31.94 kB / 354 MB, free: 15.49 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.003703/0.5115, allocations: 1.275 MB / 355.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.5115, allocations: 12.03 kB / 355.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006327/0.5122, allocations: 177.3 kB / 355.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004629/0.5127, allocations: 126.7 kB / 355.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.5145, allocations: 0.62 MB / 356.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003204/0.5149, allocations: 195.6 kB / 356.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004981/0.5154, allocations: 135.9 kB / 356.5 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004184/0.5196, allocations: 1.319 MB / 357.9 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.506e-05/0.5197, allocations: 4 kB / 357.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.5199, allocations: 44 kB / 357.9 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.52, allocations: 45.98 kB / 358 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003443/0.5234, allocations: 0.9252 MB / 358.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/0.5336, allocations: 5.074 MB / 364 MB, free: 5.082 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/0.5362, allocations: 0.9678 MB / 364.9 MB, free: 4.047 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.5376, allocations: 445.2 kB / 365.4 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002151/0.5379, allocations: 93.84 kB / 365.4 MB, free: 3.492 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001701/0.5396, allocations: 0.6928 MB / 366.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 6.212e-06/0.5397, allocations: 0 / 366.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.003039/0.5427, allocations: 1.054 MB / 367.2 MB, free: 1.656 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003135/0.5431, allocations: 408.8 kB / 367.6 MB, free: 1.172 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.5441, allocations: 470 kB / 368.1 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004256/0.5446, allocations: 97.69 kB / 368.1 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005837/0.5452, allocations: 474.7 kB / 368.6 MB, free: 144 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2226/0.7678, allocations: 254.7 kB / 368.9 MB, free: 84.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.768, allocations: 31.09 kB / 368.9 MB, free: 84.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.7682, allocations: 367.9 kB / 369.2 MB, free: 84.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.7699, allocations: 386.2 kB / 369.6 MB, free: 84.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001894/0.7718, allocations: 0.6981 MB / 370.3 MB, free: 83.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.7737, allocations: 0.6527 MB / 371 MB, free: 83.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.11e-05/0.7738, allocations: 2.594 kB / 371 MB, free: 83.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004016/0.7778, allocations: 1.506 MB / 372.5 MB, free: 83.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.7781, allocations: 270.6 kB / 372.8 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/0.7781, allocations: 8.297 kB / 372.8 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.045e-05/0.7782, allocations: 19.41 kB / 372.8 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.7793, allocations: 147 kB / 372.9 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.793e-05/0.7794, allocations: 22.48 kB / 372.9 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.7804, allocations: 98.64 kB / 373 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/0.7807, allocations: 66.05 kB / 373.1 MB, free: 82.92 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.0006227/0.7814, allocations: 473.1 kB / 373.6 MB, free: 82.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.7816, allocations: 72.66 kB / 373.6 MB, free: 82.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.7845, allocations: 1.219 MB / 374.9 MB, free: 82.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.7846, allocations: 9.312 kB / 374.9 MB, free: 82.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.7846, allocations: 2.75 kB / 374.9 MB, free: 82.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/0.7846, allocations: 7.312 kB / 374.9 MB, free: 82.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00595/0.7906, allocations: 2.481 MB / 377.4 MB, free: 81.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.7907, allocations: 0 / 377.4 MB, free: 81.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006106/0.7913, allocations: 62.58 kB / 377.4 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.574e-05/0.7913, allocations: 3.938 kB / 377.4 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/0.7915, allocations: 31.59 kB / 377.5 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.957e-06/0.7915, allocations: 3.531 kB / 377.5 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.7915, allocations: 5.125 kB / 377.5 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00389/0.7954, allocations: 1.762 MB / 379.2 MB, free: 81.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006055/0.7961, allocations: 247.3 kB / 379.5 MB, free: 81.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.7964, allocations: 45.52 kB / 379.5 MB, free: 81.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007184/0.7971, allocations: 42.73 kB / 379.5 MB, free: 81.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000439/0.7976, allocations: 147.9 kB / 379.7 MB, free: 81.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.7978, allocations: 41.05 kB / 379.7 MB, free: 81.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004358/0.7982, allocations: 272.8 kB / 380 MB, free: 81.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7982, allocations: 0 / 380 MB, free: 81.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001537/0.7998, allocations: 273.3 kB / 380.3 MB, free: 81.16 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.004668/0.8045, allocations: 2.475 MB / 382.7 MB, free: 80.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00317/0.8077, allocations: 1.564 MB / 384.3 MB, free: 79.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.8078, allocations: 0 / 384.3 MB, free: 79.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.8093, allocations: 0.8537 MB / 385.2 MB, free: 78.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007666/0.8101, allocations: 87.72 kB / 385.2 MB, free: 78.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00497/0.8151, allocations: 1.536 MB / 386.8 MB, free: 78.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006122/0.8158, allocations: 1.039 MB / 387.8 MB, free: 77.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009053/0.8167, allocations: 363.8 kB / 388.2 MB, free: 76.78 MB / 314.7 MB Notification: Performance of SimCode: time 1.873e-06/0.8168, allocations: 0 / 388.2 MB, free: 76.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.923/3.74, allocations: 16.67 MB / 404.8 MB, free: 64.85 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