Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.881/1.881, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.883e-05/3.889e-05, allocations: 4 kB / 273.2 MB, free: 0.6172 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09969/0.09976, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.747/7.847, allocations: 2.516 GB / 2.83 GB, free: 45.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003426/7.847, allocations: 88.95 kB / 2.83 GB, free: 45.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.652/10.5, allocations: 489.9 MB / 3.309 GB, free: 38.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.573e-06/10.5, allocations: 0 / 3.309 GB, free: 38.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.228e-05/10.5, allocations: 21.53 kB / 3.309 GB, free: 38.61 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.008011/10.51, allocations: 1.719 MB / 3.31 GB, free: 37.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/10.51, allocations: 13.94 kB / 3.311 GB, free: 37.69 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002982/10.51, allocations: 108 kB / 3.311 GB, free: 37.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003409/10.51, allocations: 313.5 kB / 3.311 GB, free: 37.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/10.51, allocations: 0.5988 MB / 3.311 GB, free: 37.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/10.51, allocations: 121.5 kB / 3.312 GB, free: 37.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/10.51, allocations: 63.38 kB / 3.312 GB, free: 37.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003641/10.52, allocations: 1.18 MB / 3.313 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.898e-05/10.52, allocations: 11.94 kB / 3.313 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/10.52, allocations: 23.09 kB / 3.313 GB, free: 36.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001008/10.52, allocations: 45.25 kB / 3.313 GB, free: 36.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003873/10.52, allocations: 0.9739 MB / 3.314 GB, free: 36.16 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.009843/10.53, allocations: 5.6 MB / 3.319 GB, free: 31.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/10.53, allocations: 0.7214 MB / 3.32 GB, free: 31.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005713/10.53, allocations: 245.6 kB / 3.32 GB, free: 31.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05776/10.59, allocations: 18.77 MB / 3.339 GB, free: 19.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/10.59, allocations: 38.47 kB / 3.339 GB, free: 19.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 2.935e-06/10.59, allocations: 0 / 3.339 GB, free: 19.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.008014/10.6, allocations: 2.017 MB / 3.341 GB, free: 18.24 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/10.6, allocations: 170.4 kB / 3.341 GB, free: 18.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008785/10.6, allocations: 0.5271 MB / 3.341 GB, free: 17.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/10.6, allocations: 33.7 kB / 3.341 GB, free: 17.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000249/10.6, allocations: 435.5 kB / 3.342 GB, free: 17.39 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/10.6, allocations: 172.2 kB / 3.342 GB, free: 17.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/10.6, allocations: 15.72 kB / 3.342 GB, free: 17.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/10.6, allocations: 338.2 kB / 3.342 GB, free: 16.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005796/10.6, allocations: 253 kB / 3.342 GB, free: 16.83 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007601/10.6, allocations: 0.5724 MB / 3.343 GB, free: 16.28 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007211/10.6, allocations: 355.1 kB / 3.343 GB, free: 16.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/10.6, allocations: 3.875 kB / 3.343 GB, free: 16.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001933/10.61, allocations: 0.8316 MB / 3.344 GB, free: 15.81 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/10.61, allocations: 15.66 kB / 3.344 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/10.61, allocations: 11.91 kB / 3.344 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003945/10.61, allocations: 58.58 kB / 3.344 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002536/10.61, allocations: 320.5 kB / 3.345 GB, free: 15.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/10.61, allocations: 1.975 MB / 3.346 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/10.61, allocations: 90.28 kB / 3.347 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.534e-05/10.61, allocations: 47.78 kB / 3.347 GB, free: 13.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.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.0002594/10.61, allocations: 164.1 kB / 3.347 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/10.61, allocations: 73.41 kB / 3.347 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003593/10.62, allocations: 2.564 MB / 3.349 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-05/10.62, allocations: 33.58 kB / 3.349 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/10.62, allocations: 0 / 3.349 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/10.62, allocations: 3.625 kB / 3.349 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005679/10.62, allocations: 3.752 MB / 3.353 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/10.62, allocations: 2.25 kB / 3.353 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/10.62, allocations: 244.5 kB / 3.353 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005076/10.63, allocations: 85.95 kB / 3.353 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.936e-05/10.63, allocations: 11.5 kB / 3.353 GB, free: 10.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001537/10.63, allocations: 1.994 MB / 3.355 GB, free: 8.512 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/10.63, allocations: 0 / 3.355 GB, free: 8.512 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003373/10.63, allocations: 2.228 MB / 3.358 GB, free: 7.398 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007063/10.63, allocations: 327.3 kB / 3.358 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/10.63, allocations: 11.97 kB / 3.358 GB, free: 7.148 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/10.63, allocations: 62.62 kB / 3.358 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/10.63, allocations: 55.25 kB / 3.358 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/10.63, allocations: 26.39 kB / 3.358 GB, free: 7.109 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009999/10.63, allocations: 0.5397 MB / 3.358 GB, free: 6.867 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/10.63, allocations: 0 / 3.358 GB, free: 6.867 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005972/10.64, allocations: 1.126 MB / 3.36 GB, free: 6.566 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.01343/10.65, allocations: 4.302 MB / 3.364 GB, free: 2.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003079/10.66, allocations: 0.9901 MB / 3.365 GB, free: 1.852 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/10.66, allocations: 0.5625 kB / 3.365 GB, free: 1.852 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/10.66, allocations: 0.7495 MB / 3.365 GB, free: 1.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/10.66, allocations: 361 kB / 3.366 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008933/10.67, allocations: 2.491 MB / 3.368 GB, free: 14.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000955/10.67, allocations: 1.184 MB / 3.369 GB, free: 13.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008942/10.67, allocations: 449.5 kB / 3.37 GB, free: 13.2 MB / 458.7 MB Notification: Performance of SimCode: time 9.32e-07/10.67, allocations: 3.938 kB / 3.37 GB, free: 13.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.324/15, allocations: 46.63 MB / 3.415 GB, free: 49.58 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat