Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.005/2.005, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/3.995e-05, allocations: 4 kB / 267.6 MB, free: 5.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 48.69 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.6/7.709, allocations: 2.516 GB / 2.824 GB, free: 82.23 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/7.709, allocations: 95.05 kB / 2.825 GB, free: 82.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.569/10.28, allocations: 485.1 MB / 3.298 GB, free: 42.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.914e-06/10.28, allocations: 0 / 3.298 GB, free: 42.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.897e-05/10.28, allocations: 16 kB / 3.298 GB, free: 42.8 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.009467/10.29, allocations: 1.679 MB / 3.3 GB, free: 42.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.271e-05/10.29, allocations: 10.44 kB / 3.3 GB, free: 42.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005392/10.29, allocations: 317.3 kB / 3.3 GB, free: 41.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002402/10.3, allocations: 0.6032 MB / 3.301 GB, free: 41.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/10.3, allocations: 87.03 kB / 3.301 GB, free: 41.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/10.3, allocations: 35.27 kB / 3.301 GB, free: 41.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002243/10.3, allocations: 0.6493 MB / 3.302 GB, free: 41.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/10.3, allocations: 0.88 MB / 3.302 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/10.3, allocations: 6.719 kB / 3.302 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001615/10.3, allocations: 7.266 kB / 3.302 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/10.3, allocations: 47 kB / 3.303 GB, free: 41.36 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2664/10.57, allocations: 82.99 MB / 3.384 GB, free: 21.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009338/10.57, allocations: 367.1 kB / 3.384 GB, free: 21.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/10.57, allocations: 159.3 kB / 3.384 GB, free: 21.69 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.108/10.68, allocations: 33.95 MB / 3.417 GB, free: 9.531 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.448e-05/10.68, allocations: 39.91 kB / 3.417 GB, free: 9.492 MB / 490.7 MB Notification: Performance of pre-optimization done (n=33): time 3.186e-06/10.68, allocations: 4 kB / 3.417 GB, free: 9.488 MB / 490.7 MB Notification: Performance of matching and sorting (n=37): time 0.005341/10.68, allocations: 1.371 MB / 3.419 GB, free: 8.504 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/10.68, allocations: 134.8 kB / 3.419 GB, free: 8.344 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008153/10.68, allocations: 495 kB / 3.419 GB, free: 8.008 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/10.68, allocations: 29.7 kB / 3.419 GB, free: 7.973 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/10.68, allocations: 470 kB / 3.42 GB, free: 7.621 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/10.68, allocations: 140.2 kB / 3.42 GB, free: 7.516 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/10.68, allocations: 0 / 3.42 GB, free: 7.516 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/10.68, allocations: 345.4 kB / 3.42 GB, free: 7.195 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/10.69, allocations: 199.1 kB / 3.42 GB, free: 7.086 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006222/10.69, allocations: 0.5557 MB / 3.421 GB, free: 6.492 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009419/10.69, allocations: 318.8 kB / 3.421 GB, free: 6.32 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/10.69, allocations: 4 kB / 3.421 GB, free: 6.316 MB / 490.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002021/10.69, allocations: 0.7533 MB / 3.422 GB, free: 5.848 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/10.69, allocations: 15.28 kB / 3.422 GB, free: 5.836 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/10.69, allocations: 12 kB / 3.422 GB, free: 5.824 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/10.69, allocations: 57.73 kB / 3.422 GB, free: 5.781 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/10.69, allocations: 291 kB / 3.422 GB, free: 5.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3295/11.02, allocations: 1.932 MB / 3.424 GB, free: 94.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/11.02, allocations: 45.83 kB / 3.424 GB, free: 94.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/11.02, allocations: 44.61 kB / 3.424 GB, free: 94.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002833/11.02, allocations: 141.5 kB / 3.424 GB, free: 94.02 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001401/11.02, allocations: 417.7 kB / 3.425 GB, free: 93.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/11.02, allocations: 70.06 kB / 3.425 GB, free: 93.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/11.03, allocations: 1.58 MB / 3.426 GB, free: 93.83 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.527e-05/11.03, allocations: 23.95 kB / 3.426 GB, free: 93.83 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/11.03, allocations: 0.7656 kB / 3.426 GB, free: 93.83 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/11.03, allocations: 4.297 kB / 3.426 GB, free: 93.83 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004661/11.03, allocations: 2.446 MB / 3.429 GB, free: 93.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/11.03, allocations: 3.062 kB / 3.429 GB, free: 93.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/11.03, allocations: 174.2 kB / 3.429 GB, free: 93.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/11.03, allocations: 81.08 kB / 3.429 GB, free: 93.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/11.03, allocations: 7.125 kB / 3.429 GB, free: 93.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/11.04, allocations: 1.974 MB / 3.431 GB, free: 91.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/11.04, allocations: 5.266 kB / 3.431 GB, free: 91.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/11.04, allocations: 1.509 MB / 3.432 GB, free: 91.47 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005638/11.04, allocations: 218.5 kB / 3.433 GB, free: 91.33 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/11.04, allocations: 1.5 kB / 3.433 GB, free: 91.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009309/11.04, allocations: 46.56 kB / 3.433 GB, free: 91.33 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/11.04, allocations: 26.44 kB / 3.433 GB, free: 91.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/11.04, allocations: 24.84 kB / 3.433 GB, free: 91.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007279/11.04, allocations: 350.2 kB / 3.433 GB, free: 91.23 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/11.04, allocations: 0 / 3.433 GB, free: 91.23 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005925/11.05, allocations: 1.082 MB / 3.434 GB, free: 91.23 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01284/11.06, allocations: 3.586 MB / 3.438 GB, free: 90.46 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002899/11.06, allocations: 0.7795 MB / 3.438 GB, free: 90.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/11.06, allocations: 1.406 kB / 3.438 GB, free: 90.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/11.07, allocations: 0.5176 MB / 3.439 GB, free: 90.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/11.07, allocations: 268.4 kB / 3.439 GB, free: 90.44 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007956/11.08, allocations: 1.972 MB / 3.441 GB, free: 90.03 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008347/11.08, allocations: 1.072 MB / 3.442 GB, free: 89.32 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007119/11.08, allocations: 339.4 kB / 3.442 GB, free: 89.31 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/11.08, allocations: 3 kB / 3.442 GB, free: 89.31 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.86/14.94, allocations: 42.46 MB / 3.484 GB, free: 87.18 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat