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 2.126/2.126, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.361e-05, allocations: 8 kB / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3271, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/0.5137, allocations: 74.79 MB / 369 MB, free: 7.191 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.514, allocations: 67.95 kB / 369 MB, free: 7.125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08538/0.5994, allocations: 19.63 MB / 388.7 MB, free: 3.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5995, allocations: 3.938 kB / 388.7 MB, free: 3.426 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000116/0.5996, allocations: 31.98 kB / 388.7 MB, free: 3.395 MB / 330.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.00439/0.604, allocations: 1.275 MB / 390 MB, free: 1.992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.123e-05/0.6041, allocations: 12.03 kB / 390 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007951/0.6049, allocations: 130.6 kB / 390.1 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.6073, allocations: 0.6162 MB / 390.7 MB, free: 1.191 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003184/0.6077, allocations: 143.3 kB / 390.9 MB, free: 1.031 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004681/0.6082, allocations: 80 kB / 391 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004099/0.6123, allocations: 0.8284 MB / 391.8 MB, free: 124 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004956/0.6173, allocations: 1.162 MB / 392.9 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.662e-05/0.6174, allocations: 3.938 kB / 393 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002099/0.6177, allocations: 11.98 kB / 393 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.6178, allocations: 42 kB / 393 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01229/0.6301, allocations: 4.884 MB / 397.9 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003159/0.6333, allocations: 0.9255 MB / 398.8 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.6349, allocations: 415.7 kB / 399.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000244/0.6352, allocations: 93.89 kB / 399.3 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00199/0.6372, allocations: 0.6618 MB / 400 MB, free: 7.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=110): time 6.842e-06/0.6372, allocations: 0 / 400 MB, free: 7.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=110): time 0.003463/0.6407, allocations: 0.8291 MB / 400.8 MB, free: 6.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003573/0.6411, allocations: 413.1 kB / 401.2 MB, free: 6.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.6423, allocations: 456.2 kB / 401.7 MB, free: 5.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000445/0.6428, allocations: 69.69 kB / 401.7 MB, free: 5.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007181/0.6435, allocations: 474.7 kB / 402.2 MB, free: 5.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006588/0.6442, allocations: 252.8 kB / 402.4 MB, free: 4.973 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.6443, allocations: 4 kB / 402.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000305/0.6447, allocations: 362.8 kB / 402.8 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001591/0.6463, allocations: 356 kB / 403.1 MB, free: 4.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.6482, allocations: 0.6642 MB / 403.8 MB, free: 3.465 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.65, allocations: 382.1 kB / 404.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.5e-05/0.65, allocations: 0 / 404.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004527/0.6545, allocations: 1.129 MB / 405.3 MB, free: 1.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002803/0.6549, allocations: 271.2 kB / 405.6 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.565e-05/0.6549, allocations: 12 kB / 405.6 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.15e-05/0.655, allocations: 16 kB / 405.6 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.6563, allocations: 139.6 kB / 405.7 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-05/0.6563, allocations: 24.52 kB / 405.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.6575, allocations: 67.45 kB / 405.8 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/0.6578, allocations: 71.98 kB / 405.9 MB, free: 1.312 MB / 346.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.0006807/0.6585, allocations: 437.4 kB / 406.3 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002574/0.6611, allocations: 0.876 MB / 407.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.6613, allocations: 79.11 kB / 407.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.6641, allocations: 0.9464 MB / 408.2 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.6642, allocations: 8 kB / 408.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.6642, allocations: 0 / 408.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.6642, allocations: 3.984 kB / 408.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005733/0.67, allocations: 2.098 MB / 410.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.6701, allocations: 0 / 410.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005752/0.6706, allocations: 63.83 kB / 410.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.567e-05/0.6707, allocations: 4 kB / 410.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001549/0.6708, allocations: 27.97 kB / 410.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.6709, allocations: 0 / 410.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.6709, allocations: 4 kB / 410.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/0.6747, allocations: 1.496 MB / 411.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005974/0.6753, allocations: 240.1 kB / 412.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002506/0.6756, allocations: 31.98 kB / 412.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000605/0.6762, allocations: 31.97 kB / 412.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004748/0.6767, allocations: 141.1 kB / 412.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/0.6768, allocations: 48.03 kB / 412.4 MB, free: 10.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000438/0.6773, allocations: 258.9 kB / 412.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6773, allocations: 0 / 412.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001464/0.6788, allocations: 239.8 kB / 412.9 MB, free: 10.16 MB / 362.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.004834/0.6836, allocations: 2.191 MB / 415.1 MB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003204/0.6869, allocations: 1.482 MB / 416.6 MB, free: 6.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.687, allocations: 0 / 416.6 MB, free: 6.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.6886, allocations: 0.8333 MB / 417.4 MB, free: 5.441 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000776/0.6895, allocations: 62.69 kB / 417.5 MB, free: 5.379 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004988/0.6945, allocations: 1.44 MB / 418.9 MB, free: 3.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009674/0.6955, allocations: 1.037 MB / 419.9 MB, free: 2.836 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/0.6965, allocations: 363.3 kB / 420.3 MB, free: 2.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6966, allocations: 3.938 kB / 420.3 MB, free: 2.477 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.056/3.752, allocations: 16.59 MB / 436.9 MB, free: 99.34 MB / 362.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