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.778/1.778, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.578e-05, allocations: 10.81 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2744, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.4048, allocations: 70.15 MB / 334 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.4052, allocations: 71.95 kB / 334.1 MB, free: 3.438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09307/0.4983, allocations: 19.95 MB / 354 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4983, allocations: 7.938 kB / 354 MB, free: 15.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001082/0.4984, allocations: 27.94 kB / 354.1 MB, free: 15.38 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.004065/0.5025, allocations: 1.279 MB / 355.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.557e-05/0.5026, allocations: 8.031 kB / 355.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006404/0.5033, allocations: 177.3 kB / 355.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005556/0.5038, allocations: 118.7 kB / 355.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002201/0.5061, allocations: 0.6278 MB / 356.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003571/0.5065, allocations: 191.7 kB / 356.4 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004527/0.5069, allocations: 131.9 kB / 356.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005226/0.5122, allocations: 1.307 MB / 357.9 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-05/0.5123, allocations: 4 kB / 357.9 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002616/0.5126, allocations: 52 kB / 357.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/0.5127, allocations: 49.92 kB / 358 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004157/0.5169, allocations: 0.8941 MB / 358.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01306/0.53, allocations: 5.07 MB / 363.9 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003393/0.5335, allocations: 0.9585 MB / 364.9 MB, free: 3.984 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.535, allocations: 443.8 kB / 365.3 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002125/0.5352, allocations: 93.89 kB / 365.4 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001762/0.537, allocations: 0.6989 MB / 366.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 5.46e-06/0.5371, allocations: 0 / 366.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.002878/0.54, allocations: 1.047 MB / 367.2 MB, free: 1.598 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003251/0.5403, allocations: 412.8 kB / 367.6 MB, free: 1.109 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.5414, allocations: 470 kB / 368 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/0.5418, allocations: 97.67 kB / 368.1 MB, free: 0.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005525/0.5424, allocations: 474.7 kB / 368.6 MB, free: 76 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2443/0.7867, allocations: 255.3 kB / 368.8 MB, free: 84.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.7869, allocations: 30.59 kB / 368.9 MB, free: 84.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.7871, allocations: 368.2 kB / 369.2 MB, free: 84.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.7885, allocations: 388.3 kB / 369.6 MB, free: 84.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.7901, allocations: 0.6874 MB / 370.3 MB, free: 83.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.7917, allocations: 0.6527 MB / 371 MB, free: 83.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.626e-05/0.7917, allocations: 3.5 kB / 371 MB, free: 83.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003257/0.795, allocations: 1.476 MB / 372.4 MB, free: 83.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.7952, allocations: 271.3 kB / 372.7 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.7952, allocations: 10.97 kB / 372.7 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.627e-05/0.7953, allocations: 15.59 kB / 372.7 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.7963, allocations: 145.5 kB / 372.9 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.881e-05/0.7964, allocations: 27.52 kB / 372.9 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009132/0.7973, allocations: 92.91 kB / 373 MB, free: 82.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.7975, allocations: 71.75 kB / 373.1 MB, free: 82.79 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.0005852/0.7981, allocations: 473 kB / 373.5 MB, free: 82.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.7983, allocations: 76.91 kB / 373.6 MB, free: 82.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.801, allocations: 1.208 MB / 374.8 MB, free: 82.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.8011, allocations: 12.81 kB / 374.8 MB, free: 82.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.8011, allocations: 2.844 kB / 374.8 MB, free: 82.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.8011, allocations: 3.797 kB / 374.8 MB, free: 82.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005196/0.8063, allocations: 2.476 MB / 377.3 MB, free: 81.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.8064, allocations: 0 / 377.3 MB, free: 81.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005545/0.807, allocations: 65.55 kB / 377.4 MB, free: 81.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-05/0.807, allocations: 3.219 kB / 377.4 MB, free: 81.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.8071, allocations: 35.44 kB / 377.4 MB, free: 81.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.8071, allocations: 3.969 kB / 377.4 MB, free: 81.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.8071, allocations: 0 / 377.4 MB, free: 81.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/0.8108, allocations: 1.768 MB / 379.2 MB, free: 81.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004949/0.8113, allocations: 245.7 kB / 379.4 MB, free: 81.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.8116, allocations: 41.84 kB / 379.4 MB, free: 81.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.8122, allocations: 46.52 kB / 379.5 MB, free: 81.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004479/0.8127, allocations: 145.5 kB / 379.6 MB, free: 81.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.8128, allocations: 44.41 kB / 379.7 MB, free: 81.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004231/0.8133, allocations: 263.1 kB / 379.9 MB, free: 81 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8133, allocations: 5.688 kB / 379.9 MB, free: 81 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001482/0.8148, allocations: 277.1 kB / 380.2 MB, free: 81 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.004446/0.8192, allocations: 2.471 MB / 382.7 MB, free: 80.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.8221, allocations: 1.539 MB / 384.2 MB, free: 79.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.8221, allocations: 3.312 kB / 384.2 MB, free: 79.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.8234, allocations: 0.8499 MB / 385.1 MB, free: 78.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.8241, allocations: 85.64 kB / 385.2 MB, free: 78.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004689/0.8288, allocations: 1.525 MB / 386.7 MB, free: 77.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.8295, allocations: 1.038 MB / 387.7 MB, free: 77.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008141/0.8303, allocations: 363 kB / 388.1 MB, free: 76.73 MB / 314.7 MB Notification: Performance of SimCode: time 1.684e-06/0.8303, allocations: 0 / 388.1 MB, free: 76.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.936/3.767, allocations: 16.6 MB / 404.7 MB, free: 64.86 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