Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.675/1.675, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.455e-05/3.469e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.267, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9102/1.177, allocations: 311.3 MB / 0.5616 GB, free: 72.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/1.178, allocations: 77.53 kB / 0.5617 GB, free: 72.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.424/2.602, allocations: 266.8 MB / 0.8223 GB, free: 52.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/2.602, allocations: 2.188 kB / 0.8223 GB, free: 52.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001599/2.602, allocations: 37.62 kB / 0.8223 GB, free: 52.54 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.007727/2.61, allocations: 1.809 MB / 0.8241 GB, free: 51.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/2.61, allocations: 7.875 kB / 0.8241 GB, free: 51.65 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006009/2.61, allocations: 165.7 kB / 0.8242 GB, free: 51.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009041/2.611, allocations: 172.1 kB / 0.8244 GB, free: 51.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004033/2.615, allocations: 1.117 MB / 0.8255 GB, free: 51.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/2.616, allocations: 180.9 kB / 0.8257 GB, free: 51.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003909/2.616, allocations: 101 kB / 0.8258 GB, free: 51.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00445/2.62, allocations: 1.75 MB / 0.8275 GB, free: 50.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.484e-05/2.621, allocations: 1.219 kB / 0.8275 GB, free: 50.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/2.621, allocations: 45.55 kB / 0.8275 GB, free: 50.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002436/2.621, allocations: 111.2 kB / 0.8276 GB, free: 50.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004476/2.626, allocations: 1.739 MB / 0.8293 GB, free: 50.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01844/2.644, allocations: 6.412 MB / 0.8356 GB, free: 48.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00283/2.647, allocations: 1.154 MB / 0.8367 GB, free: 48.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001718/2.649, allocations: 0.6979 MB / 0.8374 GB, free: 48.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008893/2.658, allocations: 4.284 MB / 0.8416 GB, free: 46.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/2.658, allocations: 42.16 kB / 0.8416 GB, free: 46.43 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001715/2.659, allocations: 208.2 kB / 0.8418 GB, free: 46.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 6.843e-06/2.66, allocations: 6.594 kB / 0.8418 GB, free: 46.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01368/2.673, allocations: 3.778 MB / 0.8455 GB, free: 45.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/2.673, allocations: 150.1 kB / 0.8456 GB, free: 45.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00217/2.676, allocations: 1.088 MB / 0.8467 GB, free: 45.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000358/2.676, allocations: 50.33 kB / 0.8468 GB, free: 45.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004232/2.676, allocations: 0.5726 MB / 0.8473 GB, free: 45.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004849/2.677, allocations: 383.1 kB / 0.8477 GB, free: 44.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/2.677, allocations: 30.34 kB / 0.8477 GB, free: 44.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/2.677, allocations: 375.2 kB / 0.8481 GB, free: 44.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/2.679, allocations: 0.625 MB / 0.8487 GB, free: 44.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/2.681, allocations: 0.9457 MB / 0.8496 GB, free: 44.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/2.682, allocations: 0.7464 MB / 0.8503 GB, free: 44.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/2.682, allocations: 0 / 0.8503 GB, free: 44.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005277/2.688, allocations: 1.998 MB / 0.8523 GB, free: 44.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008007/2.689, allocations: 3.488 MB / 0.8557 GB, free: 40.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/2.689, allocations: 6.781 kB / 0.8557 GB, free: 40.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/2.701, allocations: 1.204 MB / 0.8569 GB, free: 40.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002451/2.704, allocations: 294.5 kB / 0.8572 GB, free: 40.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003688/2.708, allocations: 1.541 MB / 0.8587 GB, free: 39.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/2.71, allocations: 86.05 kB / 0.8587 GB, free: 39.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/2.71, allocations: 72.38 kB / 0.8588 GB, free: 39.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/2.711, allocations: 2.906 kB / 0.8588 GB, free: 39.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004652/2.715, allocations: 1.761 MB / 0.8605 GB, free: 39.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.501e-05/2.715, allocations: 7.812 kB / 0.8605 GB, free: 39.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01101/2.726, allocations: 0.9423 MB / 0.8615 GB, free: 39.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/2.729, allocations: 306.6 kB / 0.8617 GB, free: 39.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/2.731, allocations: 1.201 MB / 0.8629 GB, free: 39.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/2.733, allocations: 85.27 kB / 0.863 GB, free: 39.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/2.734, allocations: 69.56 kB / 0.8631 GB, free: 39.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005993/2.734, allocations: 186.4 kB / 0.8632 GB, free: 39.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005586/2.735, allocations: 146.2 kB / 0.8634 GB, free: 39.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00981/2.745, allocations: 1.995 MB / 0.8653 GB, free: 38.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/2.745, allocations: 16.47 kB / 0.8654 GB, free: 38.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/2.745, allocations: 6.047 kB / 0.8654 GB, free: 38.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.86e-05/2.745, allocations: 7.828 kB / 0.8654 GB, free: 38.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/2.757, allocations: 3.412 MB / 0.8687 GB, free: 37.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/2.757, allocations: 0 / 0.8687 GB, free: 37.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00233/2.759, allocations: 195.8 kB / 0.8689 GB, free: 37.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008577/2.768, allocations: 0.9434 MB / 0.8698 GB, free: 36.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000403/2.768, allocations: 29.97 kB / 0.8698 GB, free: 36.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003269/2.772, allocations: 1.565 MB / 0.8714 GB, free: 36.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/2.772, allocations: 3.938 kB / 0.8714 GB, free: 36.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00652/2.778, allocations: 2.712 MB / 0.874 GB, free: 34.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/2.78, allocations: 401.9 kB / 0.8744 GB, free: 34.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003382/2.78, allocations: 26.16 kB / 0.8744 GB, free: 34.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/2.782, allocations: 90.36 kB / 0.8745 GB, free: 34.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/2.782, allocations: 95.81 kB / 0.8746 GB, free: 34.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00019/2.782, allocations: 50.48 kB / 0.8746 GB, free: 34.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001606/2.784, allocations: 0.8273 MB / 0.8755 GB, free: 33.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.8e-07/2.784, allocations: 0 / 0.8755 GB, free: 33.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004752/2.789, allocations: 1.24 MB / 0.8767 GB, free: 32.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01195/2.801, allocations: 4.24 MB / 0.8808 GB, free: 28.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01164/2.812, allocations: 2.496 MB / 0.8832 GB, free: 26.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/2.813, allocations: 4 kB / 0.8832 GB, free: 26.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00368/2.816, allocations: 0.8163 MB / 0.884 GB, free: 25.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006464/2.823, allocations: 0.6019 MB / 0.8846 GB, free: 25.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/2.837, allocations: 3.143 MB / 0.8877 GB, free: 22.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/2.838, allocations: 1.312 MB / 0.889 GB, free: 21.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/2.84, allocations: 0.5655 MB / 0.8895 GB, free: 21.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/2.84, allocations: 4 kB / 0.8895 GB, free: 21.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.793/6.634, allocations: 41.75 MB / 0.9303 GB, free: 40.37 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat