Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.953/1.953, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.898e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1252, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.16/8.285, allocations: 2.542 GB / 2.856 GB, free: 16.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/8.285, allocations: 76.95 kB / 2.856 GB, free: 16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177/12.46, allocations: 0.7229 GB / 3.579 GB, free: 36.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.124e-06/12.46, allocations: 0.9844 kB / 3.579 GB, free: 36.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002019/12.46, allocations: 36.8 kB / 3.579 GB, free: 36.84 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.0159/12.48, allocations: 2.661 MB / 3.582 GB, free: 35.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/12.48, allocations: 11 kB / 3.582 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007412/12.48, allocations: 154.5 kB / 3.582 GB, free: 35.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006769/12.49, allocations: 463.1 kB / 3.582 GB, free: 35.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005141/12.49, allocations: 1.127 MB / 3.583 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002519/12.49, allocations: 146.2 kB / 3.584 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004073/12.49, allocations: 103.2 kB / 3.584 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007872/12.5, allocations: 1.889 MB / 3.585 GB, free: 34.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.869e-05/12.5, allocations: 6.016 kB / 3.585 GB, free: 34.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002884/12.5, allocations: 43.66 kB / 3.586 GB, free: 34.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002278/12.5, allocations: 79.41 kB / 3.586 GB, free: 34.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007687/12.51, allocations: 1.715 MB / 3.587 GB, free: 34.83 MB / 458.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.0228/12.53, allocations: 8.544 MB / 3.596 GB, free: 29.92 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004543/12.54, allocations: 1.38 MB / 3.597 GB, free: 29.61 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/12.54, allocations: 471.5 kB / 3.597 GB, free: 29.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.206/12.74, allocations: 63.42 MB / 3.659 GB, free: 22.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003026/12.75, allocations: 0.9008 MB / 3.66 GB, free: 21.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 4.919e-06/12.75, allocations: 0 / 3.66 GB, free: 21.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.01167/12.76, allocations: 3.736 MB / 3.664 GB, free: 20.81 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000285/12.76, allocations: 412.6 kB / 3.664 GB, free: 20.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001937/12.76, allocations: 0.9186 MB / 3.665 GB, free: 20.17 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002777/12.76, allocations: 44.39 kB / 3.665 GB, free: 20.14 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005462/12.76, allocations: 0.5592 MB / 3.666 GB, free: 19.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003978/12.76, allocations: 306 kB / 3.666 GB, free: 19.63 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/12.76, allocations: 26.16 kB / 3.666 GB, free: 19.63 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002112/12.76, allocations: 358.7 kB / 3.666 GB, free: 19.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/12.76, allocations: 478.4 kB / 3.667 GB, free: 19.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/12.76, allocations: 0.944 MB / 3.668 GB, free: 18.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/12.77, allocations: 0.6326 MB / 3.668 GB, free: 18.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/12.77, allocations: 3.5 kB / 3.668 GB, free: 18.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004652/12.77, allocations: 1.71 MB / 3.67 GB, free: 18.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002434/12.77, allocations: 5.402 MB / 3.675 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/12.77, allocations: 12.25 kB / 3.675 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009702/12.78, allocations: 1.054 MB / 3.676 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/12.78, allocations: 249 kB / 3.677 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003087/12.79, allocations: 1.452 MB / 3.678 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/12.79, allocations: 123.4 kB / 3.678 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002657/12.79, allocations: 82.23 kB / 3.678 GB, free: 12.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/12.79, allocations: 3.844 kB / 3.678 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004317/12.8, allocations: 1.524 MB / 3.68 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/12.8, allocations: 17.88 kB / 3.68 GB, free: 12.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/12.8, allocations: 337.2 kB / 3.68 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001898/12.8, allocations: 281.5 kB / 3.68 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/12.8, allocations: 1.007 MB / 3.681 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/12.8, allocations: 131.8 kB / 3.681 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/12.8, allocations: 68.59 kB / 3.682 GB, free: 11.73 MB / 490.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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005419/12.8, allocations: 203.8 kB / 3.682 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/12.8, allocations: 125.6 kB / 3.682 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006557/12.81, allocations: 3.975 MB / 3.686 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.217e-05/12.81, allocations: 46.97 kB / 3.686 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/12.81, allocations: 3.656 kB / 3.686 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/12.81, allocations: 3.375 kB / 3.686 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008924/12.82, allocations: 5.486 MB / 3.691 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/12.82, allocations: 0 / 3.691 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/12.82, allocations: 177.9 kB / 3.691 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01389/12.83, allocations: 1.768 MB / 3.693 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000313/12.84, allocations: 27.8 kB / 3.693 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003758/12.84, allocations: 2.086 MB / 3.695 GB, free: 9.312 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/12.84, allocations: 3.844 kB / 3.695 GB, free: 9.312 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008529/12.85, allocations: 3.815 MB / 3.699 GB, free: 8.723 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/12.85, allocations: 0.5317 MB / 3.699 GB, free: 8.477 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004548/12.85, allocations: 24.72 kB / 3.699 GB, free: 8.473 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/12.85, allocations: 97.33 kB / 3.699 GB, free: 8.465 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/12.85, allocations: 84.34 kB / 3.7 GB, free: 8.457 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/12.85, allocations: 32.48 kB / 3.7 GB, free: 8.457 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002137/12.85, allocations: 1.036 MB / 3.701 GB, free: 8.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.12e-07/12.85, allocations: 0 / 3.701 GB, free: 8.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009347/12.86, allocations: 2.045 MB / 3.703 GB, free: 8.031 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01997/12.88, allocations: 6.616 MB / 3.709 GB, free: 5.996 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005973/12.89, allocations: 2.259 MB / 3.711 GB, free: 4.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/12.89, allocations: 3.625 kB / 3.711 GB, free: 4.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/12.89, allocations: 0.9896 MB / 3.712 GB, free: 4.234 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005285/12.9, allocations: 0.6288 MB / 3.713 GB, free: 3.902 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/12.91, allocations: 3.826 MB / 3.717 GB, free: 1.066 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/12.91, allocations: 1.515 MB / 3.718 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/12.91, allocations: 0.723 MB / 3.719 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.473e-06/12.91, allocations: 3.75 kB / 3.719 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.814/17.73, allocations: 66.99 MB / 3.784 GB, free: 79.14 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat