Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.102/2.102, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.569e-05/3.574e-05, allocations: 0 / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.541/7.644, allocations: 2.563 GB / 2.877 GB, free: 8.688 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/7.645, allocations: 74.09 kB / 2.877 GB, free: 8.652 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498/12.14, allocations: 0.8462 GB / 3.723 GB, free: 20.21 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.124e-06/12.14, allocations: 0 / 3.723 GB, free: 20.21 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002363/12.14, allocations: 57.95 kB / 3.723 GB, free: 20.2 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01632/12.16, allocations: 3.627 MB / 3.727 GB, free: 18.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/12.16, allocations: 11.28 kB / 3.727 GB, free: 18.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001004/12.16, allocations: 266.1 kB / 3.727 GB, free: 18.03 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00805/12.17, allocations: 0.7635 MB / 3.728 GB, free: 17.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008123/12.18, allocations: 1.959 MB / 3.73 GB, free: 16.93 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/12.18, allocations: 171 kB / 3.73 GB, free: 16.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000736/12.18, allocations: 180.5 kB / 3.73 GB, free: 16.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009801/12.19, allocations: 3.209 MB / 3.733 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.743e-05/12.19, allocations: 7.703 kB / 3.733 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003631/12.19, allocations: 83.97 kB / 3.733 GB, free: 14.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002824/12.19, allocations: 145.5 kB / 3.733 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009297/12.2, allocations: 2.788 MB / 3.736 GB, free: 11.49 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.02611/12.22, allocations: 13.89 MB / 3.75 GB, free: 12.45 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007167/12.23, allocations: 1.947 MB / 3.752 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002745/12.23, allocations: 1.015 MB / 3.753 GB, free: 9.48 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4776/12.71, allocations: 18.85 MB / 3.771 GB, free: 31.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006226/12.72, allocations: 1.581 MB / 3.772 GB, free: 31.25 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001894/12.72, allocations: 162 kB / 3.773 GB, free: 31.25 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 1.26e-05/12.72, allocations: 2.438 kB / 3.773 GB, free: 31.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.03073/12.75, allocations: 6.869 MB / 3.779 GB, free: 30.48 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/12.75, allocations: 262.5 kB / 3.78 GB, free: 30.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003208/12.75, allocations: 1.257 MB / 3.781 GB, free: 30.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006228/12.75, allocations: 55.98 kB / 3.781 GB, free: 29.99 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009957/12.76, allocations: 0.8378 MB / 3.782 GB, free: 29.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001059/12.76, allocations: 0.5423 MB / 3.782 GB, free: 29.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/12.76, allocations: 35.44 kB / 3.782 GB, free: 29.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/12.76, allocations: 391.6 kB / 3.783 GB, free: 29.06 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/12.76, allocations: 0.9071 MB / 3.784 GB, free: 29.06 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003105/12.76, allocations: 1.335 MB / 3.785 GB, free: 28.62 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002993/12.77, allocations: 1.154 MB / 3.786 GB, free: 28.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.741e-05/12.77, allocations: 0 / 3.786 GB, free: 28.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.008789/12.77, allocations: 2.795 MB / 3.789 GB, free: 28.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000986/12.78, allocations: 4.256 MB / 3.793 GB, free: 23.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-05/12.78, allocations: 11.59 kB / 3.793 GB, free: 23.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004398/12.78, allocations: 0.5169 MB / 3.793 GB, free: 23.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003786/12.78, allocations: 460.1 kB / 3.794 GB, free: 23.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/12.79, allocations: 2.692 MB / 3.796 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004477/12.79, allocations: 269.3 kB / 3.797 GB, free: 21.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007299/12.79, allocations: 96.53 kB / 3.797 GB, free: 21.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/12.79, allocations: 5.031 kB / 3.797 GB, free: 21.8 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007489/12.8, allocations: 2.542 MB / 3.799 GB, free: 21.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.448e-05/12.8, allocations: 7.656 kB / 3.799 GB, free: 21.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009349/12.8, allocations: 202.5 kB / 3.799 GB, free: 21.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003894/12.8, allocations: 467.2 kB / 3.8 GB, free: 21.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/12.81, allocations: 1.871 MB / 3.802 GB, free: 20.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003534/12.81, allocations: 265.6 kB / 3.802 GB, free: 20.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003779/12.81, allocations: 92.97 kB / 3.802 GB, free: 20.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007848/12.81, allocations: 292.9 kB / 3.802 GB, free: 19.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007004/12.81, allocations: 190.5 kB / 3.803 GB, free: 19.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01469/12.83, allocations: 7.356 MB / 3.81 GB, free: 19.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001097/12.83, allocations: 79.5 kB / 3.81 GB, free: 19.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/12.83, allocations: 4.484 kB / 3.81 GB, free: 19.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01153/12.84, allocations: 6.433 MB / 3.816 GB, free: 18.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0245/12.86, allocations: 11.08 MB / 3.827 GB, free: 17.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.536e-05/12.86, allocations: 14.03 kB / 3.827 GB, free: 17.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002868/12.87, allocations: 359.2 kB / 3.827 GB, free: 17.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004143/12.87, allocations: 1.288 MB / 3.829 GB, free: 17.03 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005416/12.87, allocations: 62.83 kB / 3.829 GB, free: 17.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/12.87, allocations: 3.191 MB / 3.832 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/12.87, allocations: 5.219 kB / 3.832 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/12.89, allocations: 7.172 MB / 3.839 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002272/12.89, allocations: 0.6999 MB / 3.839 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008735/12.89, allocations: 50.94 kB / 3.839 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003338/12.89, allocations: 192.4 kB / 3.84 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005446/12.89, allocations: 147.1 kB / 3.84 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002498/12.89, allocations: 75.47 kB / 3.84 GB, free: 13.33 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002378/12.9, allocations: 1.064 MB / 3.841 GB, free: 13.17 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.92e-07/12.9, allocations: 0 / 3.841 GB, free: 13.17 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01296/12.91, allocations: 2.574 MB / 3.843 GB, free: 13.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02791/12.94, allocations: 11.25 MB / 3.854 GB, free: 10.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0111/12.95, allocations: 4.409 MB / 3.859 GB, free: 9.707 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/12.95, allocations: 0 / 3.859 GB, free: 9.707 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005503/12.95, allocations: 2.372 MB / 3.861 GB, free: 9.57 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008062/12.96, allocations: 0.9057 MB / 3.862 GB, free: 9.543 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7973/13.76, allocations: 127 MB / 3.986 GB, free: 65.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/13.76, allocations: 2.132 MB / 3.988 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002898/13.77, allocations: 1.232 MB / 3.989 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of SimCode: time 2.565e-06/13.77, allocations: 0 / 3.989 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.111/18.88, allocations: 123 MB / 4.109 GB, free: 17.16 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat