Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.335/2.335, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.616e-05/4.632e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.4048, allocations: 54.85 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.688/8.093, allocations: 2.677 GB / 3.028 GB, free: 79.31 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/8.093, allocations: 84.03 kB / 3.028 GB, free: 79.27 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.933/13.03, allocations: 0.9022 GB / 3.931 GB, free: 32.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.204e-06/13.03, allocations: 0 / 3.931 GB, free: 32.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003505/13.03, allocations: 62.64 kB / 3.931 GB, free: 32.89 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01938/13.05, allocations: 3.956 MB / 3.935 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/13.05, allocations: 10.28 kB / 3.935 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00146/13.05, allocations: 308.2 kB / 3.935 GB, free: 31.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009622/13.06, allocations: 0.8737 MB / 3.936 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01228/13.07, allocations: 2.103 MB / 3.938 GB, free: 30.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005148/13.07, allocations: 185.6 kB / 3.938 GB, free: 30.48 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/13.07, allocations: 206 kB / 3.938 GB, free: 30.47 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/13.09, allocations: 3.602 MB / 3.942 GB, free: 29.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001669/13.09, allocations: 6.906 kB / 3.942 GB, free: 29.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001244/13.09, allocations: 90.09 kB / 3.942 GB, free: 29.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004726/13.09, allocations: 171 kB / 3.942 GB, free: 29.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/13.11, allocations: 3.164 MB / 3.945 GB, free: 29.92 MB / 0.5105 GB 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.043/13.15, allocations: 15.45 MB / 3.96 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/13.16, allocations: 2.671 MB / 3.963 GB, free: 19.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003987/13.17, allocations: 1.139 MB / 3.964 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08504/13.25, allocations: 18.76 MB / 3.982 GB, free: 24.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009474/13.26, allocations: 1.701 MB / 3.984 GB, free: 23.99 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 9.537e-06/13.26, allocations: 0 / 3.984 GB, free: 23.99 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.04014/13.3, allocations: 7.727 MB / 3.991 GB, free: 22.92 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002023/13.3, allocations: 254 kB / 3.992 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003344/13.31, allocations: 1.34 MB / 3.993 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007422/13.31, allocations: 67.61 kB / 3.993 GB, free: 22.42 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001216/13.31, allocations: 0.9221 MB / 3.994 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001234/13.31, allocations: 0.6303 MB / 3.994 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/13.31, allocations: 41.44 kB / 3.995 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002837/13.31, allocations: 394.5 kB / 3.995 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003077/13.31, allocations: 1.018 MB / 3.996 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/13.32, allocations: 1.503 MB / 3.997 GB, free: 20.74 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003768/13.32, allocations: 1.278 MB / 3.999 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.509e-05/13.32, allocations: 7.609 kB / 3.999 GB, free: 20.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009735/13.33, allocations: 2.918 MB / 4.001 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002036/13.33, allocations: 4.866 MB / 4.006 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.71e-05/13.33, allocations: 16.5 kB / 4.006 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/13.34, allocations: 229 kB / 4.006 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004661/13.34, allocations: 0.5259 MB / 4.007 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002275/13.34, allocations: 2.433 MB / 4.009 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/13.35, allocations: 306.9 kB / 4.01 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008429/13.35, allocations: 108.5 kB / 4.01 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/13.35, allocations: 7.469 kB / 4.01 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008342/13.36, allocations: 2.768 MB / 4.012 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.191e-05/13.36, allocations: 15.72 kB / 4.012 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/13.36, allocations: 232.8 kB / 4.013 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004553/13.36, allocations: 0.5198 MB / 4.013 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/13.37, allocations: 2.431 MB / 4.016 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/13.37, allocations: 303.3 kB / 4.016 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007736/13.37, allocations: 110.2 kB / 4.016 GB, free: 10.92 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.001093/13.37, allocations: 313.7 kB / 4.016 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007273/13.37, allocations: 205.8 kB / 4.016 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01643/13.39, allocations: 7.457 MB / 4.024 GB, free: 9.812 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001134/13.39, allocations: 85.09 kB / 4.024 GB, free: 9.812 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/13.39, allocations: 0 / 4.024 GB, free: 9.812 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01229/13.4, allocations: 6.47 MB / 4.03 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02819/13.43, allocations: 12.06 MB / 4.042 GB, free: 3.699 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.279e-05/13.43, allocations: 10.22 kB / 4.042 GB, free: 3.699 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003619/13.43, allocations: 438.3 kB / 4.042 GB, free: 3.676 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001931/13.43, allocations: 341.2 kB / 4.043 GB, free: 3.566 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006062/13.44, allocations: 74.25 kB / 4.043 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/13.44, allocations: 2.519 MB / 4.045 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/13.44, allocations: 14.08 kB / 4.045 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01563/13.45, allocations: 7.432 MB / 4.052 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002552/13.46, allocations: 0.7519 MB / 4.053 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008482/13.46, allocations: 58.91 kB / 4.053 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/13.46, allocations: 224.9 kB / 4.053 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007378/13.46, allocations: 172.2 kB / 4.054 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002905/13.46, allocations: 88.97 kB / 4.054 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002661/13.46, allocations: 1.122 MB / 4.055 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.82e-07/13.46, allocations: 0 / 4.055 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0149/13.48, allocations: 2.754 MB / 4.057 GB, free: 10.86 MB / 0.5417 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.03582/13.52, allocations: 12.13 MB / 4.069 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01593/13.53, allocations: 5.009 MB / 4.074 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/13.53, allocations: 4 kB / 4.074 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007218/13.54, allocations: 2.644 MB / 4.077 GB, free: 8.684 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009201/13.55, allocations: 0.9882 MB / 4.078 GB, free: 7.957 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8211/14.37, allocations: 129.8 MB / 4.204 GB, free: 63.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002261/14.37, allocations: 2.246 MB / 4.207 GB, free: 62.26 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002952/14.37, allocations: 1.344 MB / 4.208 GB, free: 62.25 MB / 0.5573 GB Notification: Performance of SimCode: time 1.663e-06/14.37, allocations: 4 kB / 4.208 GB, free: 62.25 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.628/20, allocations: 131.7 MB / 4.337 GB, free: 69.5 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat