Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 235 MB / 247.6 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.961e-05, allocations: 4 kB / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4124/0.4125, allocations: 54.86 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.136/8.549, allocations: 2.66 GB / 3.012 GB, free: 98.15 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/8.549, allocations: 79.08 kB / 3.012 GB, free: 98.11 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.142/13.69, allocations: 0.8987 GB / 3.91 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.986e-06/13.69, allocations: 0 / 3.91 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003649/13.69, allocations: 63.11 kB / 3.91 GB, free: 30.95 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.01933/13.71, allocations: 4.034 MB / 3.914 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/13.71, allocations: 7.844 kB / 3.914 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001476/13.71, allocations: 307.2 kB / 3.915 GB, free: 29.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009467/13.72, allocations: 0.8636 MB / 3.915 GB, free: 28.99 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009235/13.73, allocations: 2.088 MB / 3.917 GB, free: 28.54 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004104/13.73, allocations: 179.8 kB / 3.918 GB, free: 28.54 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001226/13.73, allocations: 198.5 kB / 3.918 GB, free: 28.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/13.75, allocations: 3.635 MB / 3.921 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/13.75, allocations: 5.781 kB / 3.921 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007893/13.75, allocations: 90.41 kB / 3.921 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003388/13.75, allocations: 169.8 kB / 3.922 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/13.76, allocations: 3.251 MB / 3.925 GB, free: 28.01 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.03419/13.79, allocations: 15.41 MB / 3.94 GB, free: 18.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007608/13.8, allocations: 2.154 MB / 3.942 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002786/13.8, allocations: 1.026 MB / 3.943 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0596/13.86, allocations: 18.96 MB / 3.961 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006506/13.87, allocations: 1.679 MB / 3.963 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 7.735e-06/13.87, allocations: 2.062 kB / 3.963 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.03348/13.9, allocations: 7.483 MB / 3.97 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002036/13.9, allocations: 260.1 kB / 3.971 GB, free: 21.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/13.91, allocations: 1.436 MB / 3.972 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006067/13.91, allocations: 60.77 kB / 3.972 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001084/13.91, allocations: 0.9323 MB / 3.973 GB, free: 20.68 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001132/13.91, allocations: 0.6044 MB / 3.974 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/13.91, allocations: 43.69 kB / 3.974 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002828/13.91, allocations: 386.6 kB / 3.974 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002888/13.91, allocations: 1.016 MB / 3.975 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003438/13.92, allocations: 1.461 MB / 3.976 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/13.92, allocations: 1.271 MB / 3.978 GB, free: 19.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.468e-05/13.92, allocations: 3.094 kB / 3.978 GB, free: 19.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009141/13.93, allocations: 2.897 MB / 3.981 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002142/13.93, allocations: 4.854 MB / 3.985 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.653e-05/13.93, allocations: 13.78 kB / 3.985 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/13.93, allocations: 238.7 kB / 3.986 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004476/13.94, allocations: 0.5152 MB / 3.986 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/13.94, allocations: 2.432 MB / 3.988 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004459/13.95, allocations: 279.1 kB / 3.989 GB, free: 12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007671/13.95, allocations: 102.3 kB / 3.989 GB, free: 12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/13.95, allocations: 2.875 kB / 3.989 GB, free: 12 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008644/13.96, allocations: 2.751 MB / 3.991 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.28e-05/13.96, allocations: 10.44 kB / 3.991 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/13.96, allocations: 237.4 kB / 3.992 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00436/13.96, allocations: 0.507 MB / 3.992 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/13.96, allocations: 2.428 MB / 3.995 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003615/13.97, allocations: 268.9 kB / 3.995 GB, free: 9.746 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005223/13.97, allocations: 104.8 kB / 3.995 GB, free: 9.746 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 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0009214/13.97, allocations: 305.5 kB / 3.995 GB, free: 9.562 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000683/13.97, allocations: 206.5 kB / 3.995 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0164/13.99, allocations: 7.521 MB / 4.003 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001689/13.99, allocations: 89.22 kB / 4.003 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.172e-05/13.99, allocations: 2.188 kB / 4.003 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01865/14, allocations: 6.552 MB / 4.009 GB, free: 7.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03392/14.04, allocations: 10.74 MB / 4.02 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-05/14.04, allocations: 0 / 4.02 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004864/14.04, allocations: 407.6 kB / 4.02 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003154/14.05, allocations: 333.4 kB / 4.02 GB, free: 6.926 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007155/14.05, allocations: 65.88 kB / 4.02 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003434/14.05, allocations: 2.517 MB / 4.023 GB, free: 20.85 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/14.05, allocations: 7.625 kB / 4.023 GB, free: 20.85 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02124/14.07, allocations: 6.787 MB / 4.03 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/14.07, allocations: 0.7533 MB / 4.03 GB, free: 17.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008429/14.08, allocations: 48.88 kB / 4.03 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003387/14.08, allocations: 211.8 kB / 4.031 GB, free: 17.33 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000567/14.08, allocations: 149.7 kB / 4.031 GB, free: 17.31 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002609/14.08, allocations: 75.62 kB / 4.031 GB, free: 17.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002667/14.08, allocations: 1.197 MB / 4.032 GB, free: 16.81 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.41e-07/14.08, allocations: 0 / 4.032 GB, free: 16.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01302/14.1, allocations: 2.85 MB / 4.035 GB, free: 16.21 MB / 0.5417 GB 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.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 (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.02922/14.12, allocations: 10.2 MB / 4.045 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0137/14.14, allocations: 4.938 MB / 4.05 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/14.14, allocations: 0 / 4.05 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005982/14.14, allocations: 2.373 MB / 4.052 GB, free: 6.023 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008848/14.15, allocations: 0.9663 MB / 4.053 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8829/15.04, allocations: 130.1 MB / 4.18 GB, free: 63.92 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002377/15.04, allocations: 2.238 MB / 4.182 GB, free: 63.13 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002908/15.04, allocations: 1.337 MB / 4.183 GB, free: 63.13 MB / 0.5573 GB Notification: Performance of SimCode: time 1.312e-06/15.04, allocations: 0 / 4.183 GB, free: 63.13 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.625/20.67, allocations: 132 MB / 4.312 GB, free: 66.82 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat