Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.628e-05/4.644e-05, allocations: 8 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4786/0.4786, allocations: 54.85 MB / 359.9 MB, free: 2.707 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.087/8.566, allocations: 2.673 GB / 3.025 GB, free: 85.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/8.566, allocations: 78.33 kB / 3.025 GB, free: 85.86 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.952/13.52, allocations: 0.8678 GB / 3.892 GB, free: 33.71 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.204e-06/13.52, allocations: 0 / 3.892 GB, free: 33.71 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003505/13.52, allocations: 59.09 kB / 3.893 GB, free: 33.71 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01925/13.54, allocations: 3.751 MB / 3.896 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/13.54, allocations: 13.69 kB / 3.896 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001337/13.54, allocations: 275.5 kB / 3.896 GB, free: 32.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008873/13.55, allocations: 0.78 MB / 3.897 GB, free: 31.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008488/13.56, allocations: 1.977 MB / 3.899 GB, free: 31.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/13.56, allocations: 162.4 kB / 3.899 GB, free: 31.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009862/13.56, allocations: 187.9 kB / 3.9 GB, free: 31.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/13.57, allocations: 3.222 MB / 3.903 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.551e-05/13.57, allocations: 10.52 kB / 3.903 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004045/13.57, allocations: 83 kB / 3.903 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000291/13.57, allocations: 146.6 kB / 3.903 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01027/13.58, allocations: 2.799 MB / 3.906 GB, free: 31.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.02738/13.61, allocations: 13.9 MB / 3.919 GB, free: 22.54 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00665/13.61, allocations: 1.948 MB / 3.921 GB, free: 22.51 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002662/13.62, allocations: 1.031 MB / 3.922 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05952/13.68, allocations: 18.88 MB / 3.941 GB, free: 26.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005864/13.68, allocations: 1.592 MB / 3.942 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001973/13.69, allocations: 169.8 kB / 3.942 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 8.776e-06/13.69, allocations: 3.938 kB / 3.942 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.02957/13.71, allocations: 6.866 MB / 3.949 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001883/13.72, allocations: 255.9 kB / 3.949 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002892/13.72, allocations: 1.261 MB / 3.95 GB, free: 25.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006361/13.72, allocations: 54.86 kB / 3.951 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00109/13.72, allocations: 0.8522 MB / 3.951 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009984/13.72, allocations: 0.5502 MB / 3.952 GB, free: 24.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/13.72, allocations: 40 kB / 3.952 GB, free: 24.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002539/13.72, allocations: 388.3 kB / 3.952 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002475/13.72, allocations: 0.9134 MB / 3.953 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/13.73, allocations: 1.35 MB / 3.954 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/13.73, allocations: 1.161 MB / 3.956 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.668e-05/13.73, allocations: 3.75 kB / 3.956 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008995/13.74, allocations: 2.776 MB / 3.958 GB, free: 23.19 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00198/13.74, allocations: 4.247 MB / 3.962 GB, free: 18.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.252e-05/13.74, allocations: 11.38 kB / 3.962 GB, free: 18.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004437/13.75, allocations: 0.5202 MB / 3.963 GB, free: 18.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003858/13.75, allocations: 458.7 kB / 3.963 GB, free: 18.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003105/13.75, allocations: 2.704 MB / 3.966 GB, free: 16.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004573/13.76, allocations: 255.5 kB / 3.966 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007548/13.76, allocations: 101 kB / 3.966 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/13.76, allocations: 5.781 kB / 3.966 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007434/13.77, allocations: 2.52 MB / 3.969 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/13.77, allocations: 8.5 kB / 3.969 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009218/13.77, allocations: 195.3 kB / 3.969 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003947/13.77, allocations: 473 kB / 3.97 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/13.77, allocations: 1.871 MB / 3.971 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003616/13.78, allocations: 260.4 kB / 3.972 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005748/13.78, allocations: 98.84 kB / 3.972 GB, free: 14.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009133/13.78, allocations: 299 kB / 3.972 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006604/13.78, allocations: 198.2 kB / 3.972 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01497/13.79, allocations: 7.341 MB / 3.979 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001054/13.79, allocations: 78.53 kB / 3.979 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/13.79, allocations: 3.688 kB / 3.979 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01206/13.81, allocations: 6.417 MB / 3.986 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02585/13.83, allocations: 11.07 MB / 3.997 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/13.83, allocations: 3.906 kB / 3.997 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002902/13.83, allocations: 362.5 kB / 3.997 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004186/13.84, allocations: 1.297 MB / 3.998 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005326/13.84, allocations: 68.95 kB / 3.998 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003461/13.84, allocations: 3.195 MB / 4.001 GB, free: 9.621 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/13.84, allocations: 9.438 kB / 4.001 GB, free: 9.621 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/13.86, allocations: 7.138 MB / 4.008 GB, free: 8.375 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002326/13.86, allocations: 0.7145 MB / 4.009 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007477/13.86, allocations: 51.42 kB / 4.009 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003161/13.86, allocations: 194.9 kB / 4.009 GB, free: 8.043 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005236/13.86, allocations: 153.8 kB / 4.009 GB, free: 8.035 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/13.86, allocations: 71.47 kB / 4.009 GB, free: 8.035 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002423/13.87, allocations: 1.07 MB / 4.01 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.42e-07/13.87, allocations: 0 / 4.01 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01241/13.88, allocations: 2.602 MB / 4.013 GB, free: 7.535 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02907/13.91, allocations: 11.27 MB / 4.024 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01134/13.92, allocations: 4.525 MB / 4.028 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/13.92, allocations: 2.719 kB / 4.028 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005662/13.92, allocations: 2.415 MB / 4.031 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008517/13.93, allocations: 0.9196 MB / 4.032 GB, free: 17.93 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8438/14.78, allocations: 128.9 MB / 4.158 GB, free: 71.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002054/14.78, allocations: 2.143 MB / 4.16 GB, free: 70.45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002487/14.78, allocations: 1.244 MB / 4.161 GB, free: 70.45 MB / 0.5573 GB Notification: Performance of SimCode: time 1.322e-06/14.78, allocations: 0 / 4.161 GB, free: 70.45 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.964/19.75, allocations: 123.6 MB / 4.282 GB, free: 19.6 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat