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.978/1.978, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.101e-05/3.115e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.09864, allocations: 44.51 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4773/0.576, allocations: 75.45 MB / 375.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.5763, allocations: 70.09 kB / 375.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07556/0.6518, allocations: 19.95 MB / 395.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6519, allocations: 0 / 395.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.285e-05/0.652, allocations: 27.31 kB / 395.4 MB, free: 10.76 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.002338/0.6543, allocations: 1.282 MB / 396.7 MB, free: 9.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.6544, allocations: 7.562 kB / 396.7 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003005/0.6547, allocations: 180.6 kB / 396.9 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003026/0.655, allocations: 123.8 kB / 397 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.6562, allocations: 0.6178 MB / 397.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.6564, allocations: 195.3 kB / 397.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002542/0.6567, allocations: 137 kB / 398 MB, free: 9.137 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00283/0.6595, allocations: 1.304 MB / 399.3 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.849e-05/0.6596, allocations: 3.938 kB / 399.3 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.6598, allocations: 47.53 kB / 399.3 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/0.6599, allocations: 52.42 kB / 399.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.6622, allocations: 0.8965 MB / 400.3 MB, free: 8.578 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007444/0.6696, allocations: 5.074 MB / 405.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002019/0.6717, allocations: 0.9558 MB / 406.3 MB, free: 4.875 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.6728, allocations: 440.7 kB / 406.7 MB, free: 4.848 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/0.6729, allocations: 93.59 kB / 406.8 MB, free: 4.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001267/0.6742, allocations: 0.6972 MB / 407.5 MB, free: 4.402 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 5.651e-06/0.6743, allocations: 0 / 407.5 MB, free: 4.402 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.002379/0.6766, allocations: 1.052 MB / 408.6 MB, free: 4.059 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.6768, allocations: 409.3 kB / 409 MB, free: 3.613 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007665/0.6776, allocations: 467.5 kB / 409.4 MB, free: 3.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/0.6779, allocations: 91.5 kB / 409.5 MB, free: 3.375 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.6783, allocations: 480.9 kB / 410 MB, free: 3.047 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003246/0.6786, allocations: 262.9 kB / 410.2 MB, free: 2.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.992e-05/0.6787, allocations: 32.44 kB / 410.3 MB, free: 2.891 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002758/0.679, allocations: 379.8 kB / 410.6 MB, free: 18.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.6801, allocations: 389.1 kB / 411 MB, free: 18.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.6813, allocations: 0.6875 MB / 411.7 MB, free: 18.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.6827, allocations: 0.648 MB / 412.4 MB, free: 17.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/0.6827, allocations: 7.781 kB / 412.4 MB, free: 17.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004325/0.6871, allocations: 1.468 MB / 413.8 MB, free: 17.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.6874, allocations: 265.5 kB / 414.1 MB, free: 16.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/0.6874, allocations: 8.531 kB / 414.1 MB, free: 16.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.508e-05/0.6875, allocations: 19.22 kB / 414.1 MB, free: 16.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.6888, allocations: 154.4 kB / 414.3 MB, free: 16.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.553e-05/0.6888, allocations: 19.47 kB / 414.3 MB, free: 16.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.6901, allocations: 90.55 kB / 414.4 MB, free: 16.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002504/0.6904, allocations: 69.78 kB / 414.5 MB, free: 16.89 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.000871/0.6913, allocations: 483.7 kB / 414.9 MB, free: 16.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/0.6916, allocations: 78 kB / 415 MB, free: 16.47 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/0.696, allocations: 1.21 MB / 416.2 MB, free: 16.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.6961, allocations: 7.75 kB / 416.2 MB, free: 16.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.6961, allocations: 0 / 416.2 MB, free: 16.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/0.6961, allocations: 3.984 kB / 416.2 MB, free: 16.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00752/0.7037, allocations: 2.472 MB / 418.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.7037, allocations: 3.984 kB / 418.7 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.7045, allocations: 68.39 kB / 418.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.799e-05/0.7045, allocations: 3.844 kB / 418.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.7047, allocations: 27.55 kB / 418.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.145e-05/0.7047, allocations: 11.42 kB / 418.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.7047, allocations: 0 / 418.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005048/0.7098, allocations: 1.753 MB / 420.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007164/0.7106, allocations: 241.8 kB / 420.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003273/0.7109, allocations: 50.73 kB / 420.8 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009267/0.7119, allocations: 46.56 kB / 420.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005926/0.7125, allocations: 150.9 kB / 421 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/0.7127, allocations: 43.09 kB / 421.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006368/0.7133, allocations: 272.2 kB / 421.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.7134, allocations: 0 / 421.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001978/0.7154, allocations: 273.1 kB / 421.6 MB, free: 13.91 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.006255/0.7216, allocations: 2.482 MB / 424.1 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004035/0.7257, allocations: 1.531 MB / 425.6 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.7258, allocations: 0 / 425.6 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002017/0.7278, allocations: 0.8503 MB / 426.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009985/0.7289, allocations: 97.97 kB / 426.6 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006291/0.7352, allocations: 1.536 MB / 428.1 MB, free: 9.793 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.7363, allocations: 1.041 MB / 429.1 MB, free: 8.934 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/0.7376, allocations: 360.4 kB / 429.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of SimCode: time 1.552e-06/0.7376, allocations: 0 / 429.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.054/3.792, allocations: 16.58 MB / 446.1 MB, free: 14.41 MB / 346.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