Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.858/1.858, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4e-05/4.004e-05, allocations: 4 kB / 273.2 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.513/7.617, allocations: 2.553 GB / 2.867 GB, free: 4.688 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/7.617, allocations: 72.72 kB / 2.868 GB, free: 4.652 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.537/10.15, allocations: 489.8 MB / 3.346 GB, free: 27.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.953e-06/10.15, allocations: 0 / 3.346 GB, free: 27.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001493/10.15, allocations: 44 kB / 3.346 GB, free: 27.26 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.0141/10.17, allocations: 2.926 MB / 3.349 GB, free: 24.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/10.17, allocations: 12.03 kB / 3.349 GB, free: 24.62 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001002/10.17, allocations: 276.8 kB / 3.349 GB, free: 24.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007219/10.18, allocations: 0.6983 MB / 3.35 GB, free: 23.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00618/10.18, allocations: 1.574 MB / 3.351 GB, free: 22.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002593/10.18, allocations: 167.4 kB / 3.351 GB, free: 22.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000757/10.18, allocations: 187.5 kB / 3.352 GB, free: 22.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01003/10.19, allocations: 3.498 MB / 3.355 GB, free: 19.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.546e-05/10.19, allocations: 7.938 kB / 3.355 GB, free: 19.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003884/10.19, allocations: 75.91 kB / 3.355 GB, free: 19.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002296/10.19, allocations: 177.2 kB / 3.355 GB, free: 18.94 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/10.2, allocations: 3.293 MB / 3.359 GB, free: 16.13 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.02791/10.23, allocations: 14.12 MB / 3.372 GB, free: 1.406 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3363/10.57, allocations: 2.126 MB / 3.374 GB, free: 36.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002981/10.57, allocations: 1.078 MB / 3.375 GB, free: 36.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2076/10.78, allocations: 63.58 MB / 3.438 GB, free: 29.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005385/10.79, allocations: 1.682 MB / 3.439 GB, free: 29.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=154): time 5.129e-06/10.79, allocations: 0 / 3.439 GB, free: 29.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.02497/10.81, allocations: 8.144 MB / 3.447 GB, free: 28.41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001949/10.81, allocations: 285.6 kB / 3.447 GB, free: 28.09 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002256/10.81, allocations: 1.172 MB / 3.449 GB, free: 27.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005292/10.81, allocations: 58.95 kB / 3.449 GB, free: 27.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000784/10.81, allocations: 0.8145 MB / 3.449 GB, free: 27.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007627/10.81, allocations: 0.5995 MB / 3.45 GB, free: 27.22 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/10.81, allocations: 44.19 kB / 3.45 GB, free: 27.22 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002219/10.82, allocations: 399.9 kB / 3.45 GB, free: 26.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002637/10.82, allocations: 1.146 MB / 3.452 GB, free: 26.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002904/10.82, allocations: 1.678 MB / 3.453 GB, free: 26.27 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/10.82, allocations: 1.381 MB / 3.455 GB, free: 26.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/10.82, allocations: 7.062 kB / 3.455 GB, free: 26.22 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009013/10.83, allocations: 3.856 MB / 3.458 GB, free: 26.07 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002668/10.84, allocations: 6.275 MB / 3.464 GB, free: 19.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.472e-05/10.84, allocations: 19.11 kB / 3.464 GB, free: 19.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02488/10.86, allocations: 3.431 MB / 3.468 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/10.86, allocations: 333.9 kB / 3.468 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008617/10.87, allocations: 3.82 MB / 3.472 GB, free: 18.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003864/10.88, allocations: 268.7 kB / 3.472 GB, free: 18.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002877/10.88, allocations: 109.7 kB / 3.472 GB, free: 18.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/10.88, allocations: 3.094 kB / 3.472 GB, free: 18.78 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008964/10.88, allocations: 3.54 MB / 3.476 GB, free: 18.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.58e-05/10.88, allocations: 19.2 kB / 3.476 GB, free: 18.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01324/10.9, allocations: 2.173 MB / 3.478 GB, free: 18.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002564/10.9, allocations: 362.6 kB / 3.478 GB, free: 18.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005872/10.91, allocations: 3.103 MB / 3.481 GB, free: 18.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003175/10.91, allocations: 268.8 kB / 3.481 GB, free: 18.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002644/10.91, allocations: 101.5 kB / 3.482 GB, free: 18.04 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.00077/10.91, allocations: 227.8 kB / 3.482 GB, free: 17.94 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004922/10.91, allocations: 167.9 kB / 3.482 GB, free: 17.85 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/10.92, allocations: 6.751 MB / 3.489 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-05/10.92, allocations: 80.42 kB / 3.489 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/10.92, allocations: 4 kB / 3.489 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008732/10.93, allocations: 5.443 MB / 3.494 GB, free: 16.51 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/10.95, allocations: 9.48 MB / 3.503 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.992e-05/10.95, allocations: 0 / 3.503 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003488/10.95, allocations: 441 kB / 3.504 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002352/10.95, allocations: 443 kB / 3.504 GB, free: 15.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/10.96, allocations: 64.97 kB / 3.504 GB, free: 15.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002666/10.96, allocations: 3.217 MB / 3.507 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/10.96, allocations: 0 / 3.507 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01227/10.97, allocations: 6.742 MB / 3.514 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/10.97, allocations: 0.7697 MB / 3.515 GB, free: 10.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005155/10.97, allocations: 54.28 kB / 3.515 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002794/10.98, allocations: 211.8 kB / 3.515 GB, free: 10.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004854/10.98, allocations: 177.7 kB / 3.515 GB, free: 9.996 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/10.98, allocations: 71.14 kB / 3.515 GB, free: 9.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00235/10.98, allocations: 1.221 MB / 3.516 GB, free: 9.504 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/10.98, allocations: 0 / 3.516 GB, free: 9.504 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01005/10.99, allocations: 2.342 MB / 3.519 GB, free: 9.262 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0237/11.01, allocations: 9.561 MB / 3.528 GB, free: 1.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01499/11.03, allocations: 5.065 MB / 3.533 GB, free: 12.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/11.03, allocations: 3.953 kB / 3.533 GB, free: 12.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005652/11.03, allocations: 2.266 MB / 3.535 GB, free: 10.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/11.04, allocations: 0.7798 MB / 3.536 GB, free: 10.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/11.06, allocations: 6.867 MB / 3.542 GB, free: 4.504 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/11.06, allocations: 2.052 MB / 3.544 GB, free: 2.871 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002741/11.07, allocations: 1.154 MB / 3.546 GB, free: 1.805 MB / 490.7 MB Notification: Performance of SimCode: time 1.152e-06/11.07, allocations: 0 / 3.546 GB, free: 1.805 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.962/16.03, allocations: 99.63 MB / 3.643 GB, free: 68.73 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat