Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.181/2.181, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.867e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.73/7.833, allocations: 2.545 GB / 2.854 GB, free: 41.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/7.834, allocations: 81.27 kB / 2.854 GB, free: 41 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.66/12.49, allocations: 0.8339 GB / 3.688 GB, free: 23.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.265e-06/12.49, allocations: 0 / 3.688 GB, free: 23.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002868/12.49, allocations: 61.95 kB / 3.688 GB, free: 23.73 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.01737/12.51, allocations: 3.695 MB / 3.692 GB, free: 21.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/12.51, allocations: 6.844 kB / 3.692 GB, free: 21.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008272/12.52, allocations: 0.7526 MB / 3.693 GB, free: 21.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007842/12.53, allocations: 1.935 MB / 3.695 GB, free: 21.24 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002474/12.53, allocations: 90.8 kB / 3.695 GB, free: 21.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008815/12.53, allocations: 102.4 kB / 3.695 GB, free: 21.23 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007011/12.54, allocations: 2.323 MB / 3.697 GB, free: 21.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007943/12.54, allocations: 2.551 MB / 3.7 GB, free: 20.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.72e-05/12.54, allocations: 3.938 kB / 3.7 GB, free: 20.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003412/12.54, allocations: 13.11 kB / 3.7 GB, free: 20.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003286/12.55, allocations: 153.7 kB / 3.7 GB, free: 20.74 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.7869/13.33, allocations: 108.2 MB / 3.805 GB, free: 12.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00369/13.34, allocations: 1.407 MB / 3.807 GB, free: 12.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/13.34, allocations: 0.8647 MB / 3.808 GB, free: 12.69 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05628/13.39, allocations: 17.53 MB / 3.825 GB, free: 17.14 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002554/13.4, allocations: 1.085 MB / 3.826 GB, free: 16.99 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001627/13.4, allocations: 146 kB / 3.826 GB, free: 16.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=132): time 5.982e-06/13.4, allocations: 0 / 3.826 GB, free: 16.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=144): time 0.02954/13.43, allocations: 7.193 MB / 3.833 GB, free: 15.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002382/13.43, allocations: 362.8 kB / 3.833 GB, free: 15.12 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002247/13.43, allocations: 1.06 MB / 3.834 GB, free: 14.95 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004694/13.43, allocations: 27.2 kB / 3.834 GB, free: 14.92 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009951/13.43, allocations: 0.9195 MB / 3.835 GB, free: 14.53 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008142/13.43, allocations: 477.9 kB / 3.836 GB, free: 14.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/13.43, allocations: 0 / 3.836 GB, free: 14.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002267/13.43, allocations: 386.9 kB / 3.836 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002044/13.44, allocations: 0.8914 MB / 3.837 GB, free: 13.97 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002385/13.44, allocations: 1.278 MB / 3.838 GB, free: 13.53 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01883/13.46, allocations: 2.665 MB / 3.841 GB, free: 13.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.308e-05/13.46, allocations: 3.375 kB / 3.841 GB, free: 13.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.02448/13.48, allocations: 4.252 MB / 3.845 GB, free: 13.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001709/13.48, allocations: 4.257 MB / 3.849 GB, free: 8.816 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.957e-05/13.48, allocations: 9.906 kB / 3.849 GB, free: 8.816 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00393/13.49, allocations: 0.5265 MB / 3.85 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003749/13.49, allocations: 436.3 kB / 3.85 GB, free: 8.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004273/13.5, allocations: 2.938 MB / 3.853 GB, free: 22.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003859/13.5, allocations: 237.2 kB / 3.853 GB, free: 22.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003396/13.5, allocations: 98.53 kB / 3.853 GB, free: 22.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/13.5, allocations: 6.062 kB / 3.853 GB, free: 22.66 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02147/13.52, allocations: 3.807 MB / 3.857 GB, free: 22.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/13.52, allocations: 10.28 kB / 3.857 GB, free: 22.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006612/13.52, allocations: 181.9 kB / 3.857 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003587/13.53, allocations: 461.6 kB / 3.858 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/13.53, allocations: 1.897 MB / 3.859 GB, free: 20.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/13.53, allocations: 206.9 kB / 3.86 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000331/13.53, allocations: 91.72 kB / 3.86 GB, free: 20.93 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (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_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007594/13.53, allocations: 242.2 kB / 3.86 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008638/13.54, allocations: 2.349 MB / 3.862 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/13.54, allocations: 171.3 kB / 3.862 GB, free: 20.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0138/13.55, allocations: 6.305 MB / 3.869 GB, free: 19.97 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.815e-05/13.55, allocations: 71.34 kB / 3.869 GB, free: 19.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/13.55, allocations: 3.688 kB / 3.869 GB, free: 19.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01017/13.56, allocations: 5.326 MB / 3.874 GB, free: 19.22 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/13.58, allocations: 8.462 MB / 3.882 GB, free: 18.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.95e-05/13.58, allocations: 2.531 kB / 3.882 GB, free: 18.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002377/13.59, allocations: 286.3 kB / 3.882 GB, free: 18.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003796/13.59, allocations: 1.504 MB / 3.884 GB, free: 18.59 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000384/13.59, allocations: 35.53 kB / 3.884 GB, free: 18.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004396/13.59, allocations: 3.702 MB / 3.887 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/13.59, allocations: 5.219 kB / 3.887 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/13.61, allocations: 6.361 MB / 3.894 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002102/13.61, allocations: 0.6403 MB / 3.894 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007767/13.61, allocations: 22.64 kB / 3.894 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002818/13.61, allocations: 146.7 kB / 3.894 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004455/13.61, allocations: 119.2 kB / 3.895 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002141/13.61, allocations: 62.16 kB / 3.895 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002049/13.62, allocations: 0.9946 MB / 3.896 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.51e-07/13.62, allocations: 0 / 3.896 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01176/13.63, allocations: 2.547 MB / 3.898 GB, free: 15.34 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0284/13.66, allocations: 9.6 MB / 3.907 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009649/13.67, allocations: 4.125 MB / 3.911 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/13.67, allocations: 0 / 3.911 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0043/13.67, allocations: 1.937 MB / 3.913 GB, free: 8.871 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008429/13.68, allocations: 0.804 MB / 3.914 GB, free: 8.43 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02309/13.7, allocations: 6.21 MB / 3.92 GB, free: 4.02 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/13.71, allocations: 2.04 MB / 3.922 GB, free: 2.484 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002725/13.71, allocations: 1.124 MB / 3.923 GB, free: 2.34 MB / 0.4948 GB Notification: Performance of SimCode: time 2.504e-06/13.71, allocations: 0 / 3.923 GB, free: 2.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.506/19.21, allocations: 119.6 MB / 4.04 GB, free: 50.49 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat