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 2.003/2.003, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.162e-05, allocations: 0 / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 48.7 MB / 316.3 MB, free: 4.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.857/7.964, allocations: 2.541 GB / 2.85 GB, free: 48.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/7.965, allocations: 84.06 kB / 2.85 GB, free: 48.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.67/11.63, allocations: 0.7163 GB / 3.567 GB, free: 6.473 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/11.63, allocations: 0 / 3.567 GB, free: 6.473 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001913/11.63, allocations: 35.91 kB / 3.567 GB, free: 6.441 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.01441/11.65, allocations: 2.665 MB / 3.569 GB, free: 3.734 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/11.65, allocations: 8.031 kB / 3.569 GB, free: 3.727 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005264/11.65, allocations: 462 kB / 3.57 GB, free: 3.273 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004447/11.66, allocations: 1.129 MB / 3.571 GB, free: 2.121 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002575/11.66, allocations: 106.1 kB / 3.571 GB, free: 2.008 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004396/11.66, allocations: 59.98 kB / 3.571 GB, free: 1.949 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004277/11.66, allocations: 1.339 MB / 3.572 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3888/12.05, allocations: 1.457 MB / 3.574 GB, free: 38.19 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.644e-05/12.05, allocations: 4.969 kB / 3.574 GB, free: 38.19 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/12.05, allocations: 5.656 kB / 3.574 GB, free: 38.19 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/12.05, allocations: 81.28 kB / 3.574 GB, free: 38.19 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.4567/12.51, allocations: 135.1 MB / 3.706 GB, free: 18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/12.51, allocations: 0.9214 MB / 3.707 GB, free: 17.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008632/12.51, allocations: 383.3 kB / 3.707 GB, free: 17.76 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0543/12.57, allocations: 16.69 MB / 3.723 GB, free: 22.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/12.57, allocations: 0.4941 MB / 3.724 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=66): time 4.659e-06/12.57, allocations: 0 / 3.724 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70): time 0.01293/12.58, allocations: 3.112 MB / 3.727 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002783/12.58, allocations: 342.6 kB / 3.727 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/12.58, allocations: 0.8448 MB / 3.728 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002414/12.58, allocations: 25.7 kB / 3.728 GB, free: 21.54 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005634/12.59, allocations: 0.6336 MB / 3.729 GB, free: 21.21 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/12.59, allocations: 243.4 kB / 3.729 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/12.59, allocations: 0 / 3.729 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000181/12.59, allocations: 364.7 kB / 3.729 GB, free: 20.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/12.59, allocations: 464.2 kB / 3.73 GB, free: 20.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/12.59, allocations: 0.9192 MB / 3.73 GB, free: 20.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/12.6, allocations: 1.652 MB / 3.732 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.263e-05/12.6, allocations: 3.969 kB / 3.732 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.0152/12.62, allocations: 2.634 MB / 3.735 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002232/12.62, allocations: 5.406 MB / 3.74 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.636e-05/12.62, allocations: 15.56 kB / 3.74 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005662/12.62, allocations: 0.7081 MB / 3.741 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/12.63, allocations: 251.7 kB / 3.741 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/12.63, allocations: 1.614 MB / 3.742 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/12.63, allocations: 124.6 kB / 3.743 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/12.63, allocations: 73.36 kB / 3.743 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/12.63, allocations: 5 kB / 3.743 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01406/12.65, allocations: 2.325 MB / 3.745 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/12.65, allocations: 16.83 kB / 3.745 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00174/12.65, allocations: 321.2 kB / 3.745 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001919/12.65, allocations: 286.7 kB / 3.746 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/12.65, allocations: 1.027 MB / 3.747 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/12.65, allocations: 113.4 kB / 3.747 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001762/12.65, allocations: 63.86 kB / 3.747 GB, free: 13.16 MB / 0.5261 GB 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 ($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,source.medium.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.0005437/12.65, allocations: 163.7 kB / 3.747 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003812/12.66, allocations: 1.041 MB / 3.748 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000248/12.66, allocations: 112.8 kB / 3.748 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00588/12.66, allocations: 2.902 MB / 3.751 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.267e-05/12.67, allocations: 33.06 kB / 3.751 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/12.67, allocations: 3.781 kB / 3.751 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/12.67, allocations: 3.844 kB / 3.751 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008865/12.67, allocations: 4.563 MB / 3.755 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/12.67, allocations: 6.719 kB / 3.755 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/12.68, allocations: 126.8 kB / 3.755 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007708/12.68, allocations: 1.53 MB / 3.757 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002161/12.68, allocations: 13.56 kB / 3.757 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003213/12.69, allocations: 2.26 MB / 3.759 GB, free: 8.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/12.69, allocations: 7.625 kB / 3.759 GB, free: 8.746 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007948/12.69, allocations: 3.321 MB / 3.762 GB, free: 6.902 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001922/12.7, allocations: 345.4 kB / 3.763 GB, free: 6.664 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007304/12.7, allocations: 9.094 kB / 3.763 GB, free: 6.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/12.7, allocations: 74.42 kB / 3.763 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004176/12.7, allocations: 62.03 kB / 3.763 GB, free: 6.574 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001937/12.7, allocations: 31.86 kB / 3.763 GB, free: 6.555 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001909/12.7, allocations: 0.6035 MB / 3.763 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.452e-06/12.7, allocations: 0 / 3.763 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01007/12.71, allocations: 1.909 MB / 3.765 GB, free: 4.652 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01962/12.73, allocations: 6.073 MB / 3.771 GB, free: 0.5781 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3733/13.11, allocations: 2.069 MB / 3.773 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/13.11, allocations: 1.25 kB / 3.773 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002072/13.11, allocations: 0.8056 MB / 3.774 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006856/13.11, allocations: 457 kB / 3.775 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/13.13, allocations: 3.22 MB / 3.778 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/13.13, allocations: 1.338 MB / 3.779 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/13.14, allocations: 0.5668 MB / 3.78 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.573e-06/13.14, allocations: 0 / 3.78 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.566/17.7, allocations: 61.59 MB / 3.84 GB, free: 110.9 MB / 0.5261 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