Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.747e-05, allocations: 7.938 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.553/7.656, allocations: 2.566 GB / 2.881 GB, free: 4.516 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/7.656, allocations: 80.77 kB / 2.881 GB, free: 4.477 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.115/12.77, allocations: 0.8797 GB / 3.76 GB, free: 3.238 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.034e-06/12.77, allocations: 0 / 3.76 GB, free: 3.238 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002629/12.77, allocations: 71.86 kB / 3.76 GB, free: 3.168 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.4081/13.18, allocations: 3.827 MB / 3.764 GB, free: 27.29 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/13.18, allocations: 10.06 kB / 3.764 GB, free: 27.29 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001417/13.18, allocations: 299.8 kB / 3.765 GB, free: 27.24 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009577/13.19, allocations: 0.8471 MB / 3.765 GB, free: 27.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009781/13.2, allocations: 2.09 MB / 3.767 GB, free: 26.76 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000387/13.2, allocations: 182.7 kB / 3.768 GB, free: 26.75 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/13.2, allocations: 206.5 kB / 3.768 GB, free: 26.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/13.22, allocations: 3.593 MB / 3.771 GB, free: 26.21 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.637e-05/13.22, allocations: 8.969 kB / 3.771 GB, free: 26.21 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004623/13.22, allocations: 90.98 kB / 3.771 GB, free: 26.21 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003504/13.22, allocations: 166.1 kB / 3.772 GB, free: 26.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/13.23, allocations: 3.158 MB / 3.775 GB, free: 26.2 MB / 474.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.03195/13.26, allocations: 15.42 MB / 3.79 GB, free: 16.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008183/13.27, allocations: 2.672 MB / 3.792 GB, free: 16.27 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002803/13.27, allocations: 1.12 MB / 3.793 GB, free: 16.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05888/13.33, allocations: 18.75 MB / 3.812 GB, free: 20.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005911/13.34, allocations: 1.683 MB / 3.813 GB, free: 20.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 5.47e-06/13.34, allocations: 0 / 3.813 GB, free: 20.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.03521/13.37, allocations: 7.708 MB / 3.821 GB, free: 19.45 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001772/13.37, allocations: 262.3 kB / 3.821 GB, free: 19.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003116/13.38, allocations: 1.344 MB / 3.822 GB, free: 18.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007267/13.38, allocations: 60.52 kB / 3.822 GB, free: 18.96 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/13.38, allocations: 0.916 MB / 3.823 GB, free: 18.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/13.38, allocations: 0.6233 MB / 3.824 GB, free: 18.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002666/13.38, allocations: 40.78 kB / 3.824 GB, free: 18.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002476/13.38, allocations: 391.6 kB / 3.824 GB, free: 17.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002907/13.38, allocations: 1.008 MB / 3.825 GB, free: 17.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003494/13.39, allocations: 1.497 MB / 3.827 GB, free: 17.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/13.39, allocations: 1.274 MB / 3.828 GB, free: 17.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.399e-05/13.39, allocations: 3.719 kB / 3.828 GB, free: 17.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.009155/13.4, allocations: 2.941 MB / 3.831 GB, free: 17.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002024/13.4, allocations: 4.861 MB / 3.836 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.435e-05/13.4, allocations: 11.25 kB / 3.836 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/13.4, allocations: 232.8 kB / 3.836 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004653/13.41, allocations: 0.5321 MB / 3.836 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/13.41, allocations: 2.442 MB / 3.839 GB, free: 9.898 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005094/13.42, allocations: 302.2 kB / 3.839 GB, free: 9.883 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007846/13.42, allocations: 109.4 kB / 3.839 GB, free: 9.883 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/13.42, allocations: 2.938 kB / 3.839 GB, free: 9.883 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008627/13.42, allocations: 2.789 MB / 3.842 GB, free: 25.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-05/13.42, allocations: 13.12 kB / 3.842 GB, free: 25.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/13.43, allocations: 235 kB / 3.842 GB, free: 25.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00464/13.43, allocations: 0.5183 MB / 3.843 GB, free: 25.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/13.43, allocations: 2.428 MB / 3.845 GB, free: 23.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004097/13.44, allocations: 302.9 kB / 3.845 GB, free: 23.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00064/13.44, allocations: 105.6 kB / 3.845 GB, free: 23.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001049/13.44, allocations: 307.6 kB / 3.846 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007208/13.44, allocations: 213.7 kB / 3.846 GB, free: 23.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0152/13.45, allocations: 7.464 MB / 3.853 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/13.45, allocations: 86.11 kB / 3.853 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/13.45, allocations: 6.219 kB / 3.853 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01617/13.47, allocations: 6.491 MB / 3.86 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02731/13.5, allocations: 12.05 MB / 3.871 GB, free: 20.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/13.5, allocations: 8.531 kB / 3.871 GB, free: 20.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003503/13.5, allocations: 434.5 kB / 3.872 GB, free: 20.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001928/13.5, allocations: 341.7 kB / 3.872 GB, free: 19.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000525/13.5, allocations: 71.55 kB / 3.872 GB, free: 19.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/13.51, allocations: 2.525 MB / 3.875 GB, free: 17.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/13.51, allocations: 10.28 kB / 3.875 GB, free: 17.91 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01419/13.52, allocations: 7.422 MB / 3.882 GB, free: 16.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002675/13.52, allocations: 0.7445 MB / 3.883 GB, free: 16.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/13.52, allocations: 63.41 kB / 3.883 GB, free: 16.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004132/13.53, allocations: 221.3 kB / 3.883 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008277/13.53, allocations: 170 kB / 3.883 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003172/13.53, allocations: 83.22 kB / 3.883 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002535/13.53, allocations: 1.123 MB / 3.884 GB, free: 16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.313e-06/13.53, allocations: 1.375 kB / 3.884 GB, free: 16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01306/13.55, allocations: 2.713 MB / 3.887 GB, free: 15.89 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02936/13.58, allocations: 12.11 MB / 3.899 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01253/13.59, allocations: 4.876 MB / 3.904 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/13.59, allocations: 3.781 kB / 3.904 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005987/13.59, allocations: 2.599 MB / 3.906 GB, free: 9.684 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008764/13.6, allocations: 0.9722 MB / 3.907 GB, free: 9.496 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8268/14.43, allocations: 127.2 MB / 4.031 GB, free: 66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002207/14.43, allocations: 2.24 MB / 4.033 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002949/14.43, allocations: 1.337 MB / 4.035 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of SimCode: time 1.613e-06/14.43, allocations: 0 / 4.035 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.806/20.24, allocations: 131 MB / 4.163 GB, free: 68.18 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat