Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.973/1.973, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.536e-05/3.538e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.698/7.806, allocations: 2.549 GB / 2.864 GB, free: 6.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/7.806, allocations: 79.89 kB / 2.864 GB, free: 6.461 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.257/13.06, allocations: 0.8761 GB / 3.74 GB, free: 32.5 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.425e-06/13.06, allocations: 0 / 3.74 GB, free: 32.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000315/13.06, allocations: 70.19 kB / 3.74 GB, free: 32.49 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.01835/13.08, allocations: 3.906 MB / 3.744 GB, free: 30.78 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/13.08, allocations: 8.938 kB / 3.744 GB, free: 30.78 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/13.08, allocations: 298.1 kB / 3.744 GB, free: 30.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008806/13.09, allocations: 0.8446 MB / 3.745 GB, free: 30.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008433/13.1, allocations: 2.06 MB / 3.747 GB, free: 30.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000357/13.1, allocations: 180.9 kB / 3.747 GB, free: 30.15 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/13.1, allocations: 200.9 kB / 3.747 GB, free: 30.15 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/13.11, allocations: 3.651 MB / 3.751 GB, free: 29.62 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/13.11, allocations: 9.188 kB / 3.751 GB, free: 29.62 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004704/13.11, allocations: 87.14 kB / 3.751 GB, free: 29.62 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003232/13.11, allocations: 165.2 kB / 3.751 GB, free: 29.61 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/13.13, allocations: 3.283 MB / 3.754 GB, free: 29.6 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.02957/13.16, allocations: 15.37 MB / 3.769 GB, free: 20.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007108/13.16, allocations: 2.172 MB / 3.771 GB, free: 20.26 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002388/13.17, allocations: 1.018 MB / 3.772 GB, free: 20.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05699/13.22, allocations: 18.93 MB / 3.791 GB, free: 24.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005959/13.23, allocations: 1.68 MB / 3.793 GB, free: 24.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 5.37e-06/13.23, allocations: 0 / 3.793 GB, free: 24.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.03071/13.26, allocations: 7.511 MB / 3.8 GB, free: 23.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002035/13.26, allocations: 262.2 kB / 3.8 GB, free: 22.96 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00299/13.26, allocations: 1.431 MB / 3.802 GB, free: 22.78 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005646/13.26, allocations: 53.14 kB / 3.802 GB, free: 22.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009441/13.26, allocations: 0.9402 MB / 3.803 GB, free: 22.27 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008673/13.26, allocations: 0.5897 MB / 3.803 GB, free: 21.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/13.27, allocations: 37.53 kB / 3.803 GB, free: 21.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/13.27, allocations: 393.7 kB / 3.804 GB, free: 21.59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002513/13.27, allocations: 1.005 MB / 3.805 GB, free: 21.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002833/13.27, allocations: 1.463 MB / 3.806 GB, free: 21.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003021/13.27, allocations: 1.263 MB / 3.807 GB, free: 21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-05/13.27, allocations: 7.219 kB / 3.807 GB, free: 21 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007759/13.28, allocations: 2.951 MB / 3.81 GB, free: 20.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002054/13.28, allocations: 4.859 MB / 3.815 GB, free: 15.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.377e-05/13.28, allocations: 13.88 kB / 3.815 GB, free: 15.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/13.29, allocations: 240.9 kB / 3.815 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004314/13.29, allocations: 0.5126 MB / 3.816 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/13.29, allocations: 2.43 MB / 3.818 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004325/13.3, allocations: 285.2 kB / 3.818 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004464/13.3, allocations: 102.5 kB / 3.818 GB, free: 13.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/13.3, allocations: 6.875 kB / 3.818 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007341/13.3, allocations: 2.794 MB / 3.821 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.335e-05/13.3, allocations: 13.19 kB / 3.821 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/13.31, allocations: 236.5 kB / 3.821 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004062/13.31, allocations: 0.5131 MB / 3.822 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/13.31, allocations: 2.433 MB / 3.824 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003382/13.31, allocations: 263 kB / 3.824 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003112/13.32, allocations: 103.4 kB / 3.824 GB, free: 11.35 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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.0008859/13.32, allocations: 301.2 kB / 3.825 GB, free: 11.17 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000656/13.32, allocations: 199.8 kB / 3.825 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/13.33, allocations: 7.543 MB / 3.832 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.755e-05/13.33, allocations: 88.19 kB / 3.832 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/13.33, allocations: 0 / 3.832 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01137/13.34, allocations: 6.561 MB / 3.839 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02173/13.36, allocations: 10.73 MB / 3.849 GB, free: 8.574 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/13.36, allocations: 0 / 3.849 GB, free: 8.574 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003419/13.37, allocations: 411.7 kB / 3.85 GB, free: 8.574 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/13.37, allocations: 336.8 kB / 3.85 GB, free: 8.535 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00056/13.37, allocations: 65.09 kB / 3.85 GB, free: 8.535 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002136/13.37, allocations: 2.524 MB / 3.853 GB, free: 6.457 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/13.37, allocations: 0.6562 kB / 3.853 GB, free: 6.457 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/13.39, allocations: 6.78 MB / 3.859 GB, free: 5.805 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002525/13.39, allocations: 0.7524 MB / 3.86 GB, free: 5.477 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008167/13.39, allocations: 48.14 kB / 3.86 GB, free: 5.477 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/13.39, allocations: 214.4 kB / 3.86 GB, free: 5.457 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004441/13.39, allocations: 152 kB / 3.86 GB, free: 5.457 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00023/13.39, allocations: 70.31 kB / 3.86 GB, free: 5.457 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002579/13.4, allocations: 1.196 MB / 3.862 GB, free: 5.137 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.42e-07/13.4, allocations: 0 / 3.862 GB, free: 5.137 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01349/13.41, allocations: 2.814 MB / 3.864 GB, free: 4.551 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (200): * Single equations (assignments): 171 * 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.03037/13.44, allocations: 10.14 MB / 3.874 GB, free: 396 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0144/13.45, allocations: 4.927 MB / 3.879 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/13.45, allocations: 0 / 3.879 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006077/13.46, allocations: 2.346 MB / 3.881 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009135/13.47, allocations: 0.9627 MB / 3.882 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8188/14.29, allocations: 127 MB / 4.006 GB, free: 47.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/14.29, allocations: 2.224 MB / 4.008 GB, free: 46.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003026/14.29, allocations: 1.338 MB / 4.01 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of SimCode: time 2.826e-06/14.29, allocations: 0 / 4.01 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.662/19.96, allocations: 131.4 MB / 4.138 GB, free: 68.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat