Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.956/1.956, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/1.999e-05, allocations: 0 / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.107/8.216, allocations: 2.567 GB / 2.875 GB, free: 19.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/8.216, allocations: 75.64 kB / 2.875 GB, free: 19.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631/13.85, allocations: 0.9738 GB / 3.849 GB, free: 29.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.886e-06/13.85, allocations: 1.969 kB / 3.849 GB, free: 29.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005728/13.85, allocations: 67.91 kB / 3.849 GB, free: 29.72 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.02409/13.87, allocations: 4.105 MB / 3.853 GB, free: 27.85 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/13.87, allocations: 8.219 kB / 3.853 GB, free: 27.85 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/13.88, allocations: 0.9106 MB / 3.854 GB, free: 27.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009144/13.89, allocations: 2.187 MB / 3.856 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/13.89, allocations: 103.1 kB / 3.856 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/13.89, allocations: 132.8 kB / 3.857 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008839/13.9, allocations: 2.784 MB / 3.859 GB, free: 27.16 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/13.91, allocations: 3.007 MB / 3.862 GB, free: 26.54 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/13.91, allocations: 7.75 kB / 3.862 GB, free: 26.53 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004274/13.91, allocations: 11.06 kB / 3.862 GB, free: 26.53 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003413/13.91, allocations: 169.2 kB / 3.862 GB, free: 26.52 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.1596/14.07, allocations: 49.62 MB / 3.911 GB, free: 14.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005883/14.08, allocations: 2.33 MB / 3.913 GB, free: 12.67 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002816/14.08, allocations: 1.159 MB / 3.914 GB, free: 11.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4726/14.55, allocations: 17.2 MB / 3.931 GB, free: 41.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00454/14.56, allocations: 1.339 MB / 3.932 GB, free: 41.66 MB / 490.7 MB Notification: Performance of pre-optimization done (n=182): time 8.967e-06/14.56, allocations: 0.9375 kB / 3.932 GB, free: 41.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=202): time 0.07024/14.63, allocations: 10.32 MB / 3.942 GB, free: 40.08 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/14.63, allocations: 366.5 kB / 3.943 GB, free: 39.67 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003433/14.63, allocations: 1.147 MB / 3.944 GB, free: 39.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007761/14.63, allocations: 28.38 kB / 3.944 GB, free: 39.47 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/14.63, allocations: 1.028 MB / 3.945 GB, free: 39.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00147/14.64, allocations: 0.6538 MB / 3.946 GB, free: 38.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003302/14.64, allocations: 1.312 kB / 3.946 GB, free: 38.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002438/14.64, allocations: 405.3 kB / 3.946 GB, free: 38.39 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003488/14.64, allocations: 1.093 MB / 3.947 GB, free: 38.38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004057/14.64, allocations: 1.627 MB / 3.949 GB, free: 37.83 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01583/14.66, allocations: 2.075 MB / 3.951 GB, free: 37.81 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.513e-05/14.66, allocations: 2.781 kB / 3.951 GB, free: 37.81 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.02172/14.68, allocations: 3.886 MB / 3.954 GB, free: 37.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00131/14.68, allocations: 5.466 MB / 3.96 GB, free: 31.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.312e-05/14.68, allocations: 21.3 kB / 3.96 GB, free: 31.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/14.69, allocations: 310.7 kB / 3.96 GB, free: 31.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005203/14.69, allocations: 0.6026 MB / 3.961 GB, free: 31.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002678/14.69, allocations: 3.136 MB / 3.964 GB, free: 29.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005823/14.7, allocations: 323.2 kB / 3.964 GB, free: 29.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009842/14.7, allocations: 124.8 kB / 3.964 GB, free: 29.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/14.7, allocations: 3.281 kB / 3.964 GB, free: 29.31 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0202/14.72, allocations: 3.515 MB / 3.968 GB, free: 29.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.458e-05/14.72, allocations: 16.09 kB / 3.968 GB, free: 29.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/14.72, allocations: 319.4 kB / 3.968 GB, free: 29.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005023/14.73, allocations: 0.5922 MB / 3.969 GB, free: 29.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/14.73, allocations: 3.131 MB / 3.972 GB, free: 26.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004583/14.73, allocations: 303.6 kB / 3.972 GB, free: 26.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008866/14.74, allocations: 119.2 kB / 3.972 GB, free: 26.58 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.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 (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00123/14.74, allocations: 249.5 kB / 3.972 GB, free: 26.41 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01962/14.76, allocations: 3.403 MB / 3.976 GB, free: 26.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/14.76, allocations: 206.7 kB / 3.976 GB, free: 26.08 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03025/14.79, allocations: 8.019 MB / 3.984 GB, free: 25.47 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/14.79, allocations: 82.25 kB / 3.984 GB, free: 25.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/14.79, allocations: 6.953 kB / 3.984 GB, free: 25.47 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02562/14.81, allocations: 6.937 MB / 3.99 GB, free: 24.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04135/14.85, allocations: 12.46 MB / 4.003 GB, free: 23.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-05/14.85, allocations: 8.375 kB / 4.003 GB, free: 23.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003755/14.86, allocations: 447.1 kB / 4.003 GB, free: 23.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001921/14.86, allocations: 431.7 kB / 4.003 GB, free: 23.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006711/14.86, allocations: 52.45 kB / 4.004 GB, free: 23.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002871/14.86, allocations: 3.368 MB / 4.007 GB, free: 20.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-05/14.86, allocations: 10.31 kB / 4.007 GB, free: 20.52 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03018/14.89, allocations: 8.368 MB / 4.015 GB, free: 19.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002711/14.9, allocations: 0.7908 MB / 4.016 GB, free: 18.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/14.9, allocations: 22.02 kB / 4.016 GB, free: 18.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003993/14.9, allocations: 185.2 kB / 4.016 GB, free: 18.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008679/14.9, allocations: 180.2 kB / 4.016 GB, free: 18.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003587/14.9, allocations: 95.27 kB / 4.016 GB, free: 18.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002565/14.91, allocations: 1.082 MB / 4.017 GB, free: 18.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.01e-07/14.91, allocations: 0 / 4.017 GB, free: 18.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01502/14.92, allocations: 2.73 MB / 4.02 GB, free: 18.44 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 49 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,junctionIdeal.medium.phase,junctionVolume.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 (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.046/14.97, allocations: 13.65 MB / 4.033 GB, free: 14.69 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01444/14.98, allocations: 5.185 MB / 4.038 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/14.98, allocations: 2.625 kB / 4.038 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00655/14.99, allocations: 2.635 MB / 4.041 GB, free: 14.25 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009542/15, allocations: 0.9951 MB / 4.042 GB, free: 14.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2632/15.26, allocations: 62.71 MB / 4.103 GB, free: 8.023 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003604/15.26, allocations: 2.284 MB / 4.105 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004031/15.27, allocations: 1.393 MB / 4.107 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of SimCode: time 1.513e-06/15.27, allocations: 0 / 4.107 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.713/20.98, allocations: 148.4 MB / 4.252 GB, free: 14.41 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat