Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.999/1.999, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.942e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.133, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.57/7.703, allocations: 2.544 GB / 2.853 GB, free: 42.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/7.704, allocations: 81.19 kB / 2.853 GB, free: 42.95 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.426/10.13, allocations: 448.6 MB / 3.291 GB, free: 45.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.934e-06/10.13, allocations: 0 / 3.291 GB, free: 45.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.173e-05/10.13, allocations: 24.62 kB / 3.291 GB, free: 45.67 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.009269/10.14, allocations: 2.096 MB / 3.293 GB, free: 44.73 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/10.14, allocations: 15.59 kB / 3.293 GB, free: 44.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003779/10.14, allocations: 360.5 kB / 3.294 GB, free: 44.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/10.15, allocations: 0.8751 MB / 3.295 GB, free: 44.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.468e-05/10.15, allocations: 42.28 kB / 3.295 GB, free: 44.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/10.15, allocations: 43.12 kB / 3.295 GB, free: 44.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002263/10.15, allocations: 0.9241 MB / 3.296 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002276/10.15, allocations: 1.083 MB / 3.297 GB, free: 44.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.144e-05/10.15, allocations: 7.609 kB / 3.297 GB, free: 44.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/10.15, allocations: 3.812 kB / 3.297 GB, free: 44.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/10.15, allocations: 56.62 kB / 3.297 GB, free: 44.1 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.3251/10.48, allocations: 101.1 MB / 3.395 GB, free: 24.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/10.48, allocations: 473.8 kB / 3.396 GB, free: 23.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005728/10.48, allocations: 277.1 kB / 3.396 GB, free: 23.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05248/10.53, allocations: 16.76 MB / 3.412 GB, free: 7.465 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/10.53, allocations: 42.84 kB / 3.412 GB, free: 7.418 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 4.157e-06/10.53, allocations: 3.797 kB / 3.413 GB, free: 7.418 MB / 490.7 MB Notification: Performance of matching and sorting (n=46): time 0.0102/10.54, allocations: 2.267 MB / 3.415 GB, free: 5.953 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/10.54, allocations: 132.5 kB / 3.415 GB, free: 5.793 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009825/10.54, allocations: 0.5616 MB / 3.415 GB, free: 5.422 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/10.54, allocations: 25.7 kB / 3.415 GB, free: 5.391 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/10.54, allocations: 0.4914 MB / 3.416 GB, free: 5.031 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/10.54, allocations: 158.3 kB / 3.416 GB, free: 4.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.526e-05/10.54, allocations: 8 kB / 3.416 GB, free: 4.902 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/10.54, allocations: 341.2 kB / 3.416 GB, free: 4.578 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000709/10.54, allocations: 323.3 kB / 3.417 GB, free: 4.418 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008187/10.54, allocations: 0.5135 MB / 3.417 GB, free: 3.996 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006688/10.55, allocations: 0.9474 MB / 3.418 GB, free: 3.484 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/10.55, allocations: 4 kB / 3.418 GB, free: 3.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00882/10.56, allocations: 1.633 MB / 3.42 GB, free: 2.543 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009677/10.56, allocations: 2.266 MB / 3.422 GB, free: 156 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/10.56, allocations: 9.875 kB / 3.422 GB, free: 148 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3865/10.95, allocations: 0.5102 MB / 3.422 GB, free: 93.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/10.95, allocations: 158 kB / 3.423 GB, free: 93.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004263/10.95, allocations: 1.35 MB / 3.424 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008404/10.96, allocations: 113.5 kB / 3.424 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002737/10.96, allocations: 39.92 kB / 3.424 GB, free: 92.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/10.96, allocations: 3.781 kB / 3.424 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01391/10.98, allocations: 1.485 MB / 3.426 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.299e-05/10.98, allocations: 5 kB / 3.426 GB, free: 92.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003487/10.98, allocations: 373.5 kB / 3.426 GB, free: 92.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/10.98, allocations: 168.3 kB / 3.426 GB, free: 92.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/10.99, allocations: 1.075 MB / 3.427 GB, free: 92.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/10.99, allocations: 99.36 kB / 3.427 GB, free: 92.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/10.99, allocations: 36.94 kB / 3.427 GB, free: 92.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004402/10.99, allocations: 130.2 kB / 3.427 GB, free: 92.09 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004754/10.99, allocations: 0.7283 MB / 3.428 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000385/10.99, allocations: 73.94 kB / 3.428 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006801/11, allocations: 1.861 MB / 3.43 GB, free: 91.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.157e-05/11, allocations: 24.88 kB / 3.43 GB, free: 91.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/11, allocations: 3.688 kB / 3.43 GB, free: 91.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005225/11.01, allocations: 1.78 MB / 3.432 GB, free: 91.49 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009972/11.02, allocations: 2.843 MB / 3.434 GB, free: 91.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/11.02, allocations: 2.938 kB / 3.434 GB, free: 91.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/11.02, allocations: 122.2 kB / 3.435 GB, free: 91.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000576/11.02, allocations: 85.84 kB / 3.435 GB, free: 91.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/11.02, allocations: 11.84 kB / 3.435 GB, free: 91.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000796/11.02, allocations: 0.6733 MB / 3.435 GB, free: 90.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/11.02, allocations: 2.922 kB / 3.435 GB, free: 90.62 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006857/11.03, allocations: 1.97 MB / 3.437 GB, free: 90.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/11.03, allocations: 263.1 kB / 3.438 GB, free: 90.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003171/11.03, allocations: 3.719 kB / 3.438 GB, free: 90.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/11.03, allocations: 60.25 kB / 3.438 GB, free: 90.17 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/11.03, allocations: 43.8 kB / 3.438 GB, free: 90.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/11.03, allocations: 23.38 kB / 3.438 GB, free: 90.17 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001186/11.03, allocations: 422.5 kB / 3.438 GB, free: 90.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.092e-06/11.03, allocations: 0 / 3.438 GB, free: 90.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01124/11.04, allocations: 1.631 MB / 3.44 GB, free: 90.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02402/11.07, allocations: 4.732 MB / 3.444 GB, free: 88.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005046/11.07, allocations: 1.388 MB / 3.446 GB, free: 88.88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/11.07, allocations: 6.875 kB / 3.446 GB, free: 88.88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/11.07, allocations: 0.5807 MB / 3.446 GB, free: 88.88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004223/11.08, allocations: 329.5 kB / 3.446 GB, free: 88.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/11.09, allocations: 2.464 MB / 3.449 GB, free: 88.31 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/11.09, allocations: 1.163 MB / 3.45 GB, free: 87.61 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/11.09, allocations: 402.2 kB / 3.45 GB, free: 87.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.422e-06/11.09, allocations: 3.438 kB / 3.45 GB, free: 87.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.117/15.21, allocations: 46.65 MB / 3.496 GB, free: 84.51 MB / 490.7 MB