Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.315/2.315, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.394e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4012, allocations: 54.85 MB / 359.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.993/8.395, allocations: 2.678 GB / 3.029 GB, free: 80.14 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/8.395, allocations: 74.84 kB / 3.029 GB, free: 80.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.527/13.92, allocations: 1.008 GB / 4.037 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.134e-06/13.92, allocations: 0 / 4.037 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003637/13.92, allocations: 64.77 kB / 4.037 GB, free: 23.77 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02102/13.94, allocations: 4.236 MB / 4.041 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/13.94, allocations: 10.16 kB / 4.041 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00159/13.95, allocations: 328.4 kB / 4.041 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01042/13.96, allocations: 0.933 MB / 4.042 GB, free: 20.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009329/13.97, allocations: 2.204 MB / 4.044 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003926/13.97, allocations: 196.1 kB / 4.044 GB, free: 18.76 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/13.97, allocations: 224 kB / 4.045 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/13.98, allocations: 3.847 MB / 4.048 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.89e-05/13.98, allocations: 7.938 kB / 4.048 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000496/13.98, allocations: 99.95 kB / 4.049 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003211/13.98, allocations: 177.5 kB / 4.049 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/13.99, allocations: 3.394 MB / 4.052 GB, free: 12 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.03506/14.03, allocations: 16.73 MB / 4.068 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/14.04, allocations: 3.017 MB / 4.071 GB, free: 8.148 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003882/14.04, allocations: 1.244 MB / 4.072 GB, free: 6.914 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5266/14.57, allocations: 18.6 MB / 4.091 GB, free: 35.81 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008012/14.58, allocations: 1.842 MB / 4.092 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 6.732e-06/14.58, allocations: 0 / 4.092 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.04514/14.62, allocations: 8.643 MB / 4.101 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/14.62, allocations: 264.4 kB / 4.101 GB, free: 34.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003833/14.63, allocations: 1.424 MB / 4.103 GB, free: 34.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008464/14.63, allocations: 67.31 kB / 4.103 GB, free: 34.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001355/14.63, allocations: 0.9846 MB / 4.104 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001433/14.63, allocations: 0.7072 MB / 4.104 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003653/14.63, allocations: 47.84 kB / 4.104 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002182/14.63, allocations: 406.9 kB / 4.105 GB, free: 33.24 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003224/14.63, allocations: 1.125 MB / 4.106 GB, free: 33.23 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004139/14.64, allocations: 1.656 MB / 4.107 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004218/14.64, allocations: 1.404 MB / 4.109 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.16e-05/14.64, allocations: 9.828 kB / 4.109 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01196/14.66, allocations: 3.282 MB / 4.112 GB, free: 32.37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001452/14.66, allocations: 5.471 MB / 4.117 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.495e-05/14.66, allocations: 14.67 kB / 4.117 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/14.66, allocations: 329.2 kB / 4.118 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005292/14.66, allocations: 0.5991 MB / 4.118 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/14.67, allocations: 3.093 MB / 4.121 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005662/14.67, allocations: 335.7 kB / 4.122 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009076/14.67, allocations: 126.9 kB / 4.122 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/14.67, allocations: 3.688 kB / 4.122 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009662/14.68, allocations: 3.122 MB / 4.125 GB, free: 23.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-05/14.68, allocations: 12.38 kB / 4.125 GB, free: 23.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/14.68, allocations: 327.3 kB / 4.125 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005084/14.69, allocations: 0.5941 MB / 4.126 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/14.69, allocations: 3.089 MB / 4.129 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004576/14.7, allocations: 333.1 kB / 4.129 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007139/14.7, allocations: 123.2 kB / 4.129 GB, free: 21.24 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001026/14.7, allocations: 323.5 kB / 4.129 GB, free: 21.06 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008542/14.7, allocations: 226.6 kB / 4.13 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0181/14.72, allocations: 8.112 MB / 4.138 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000128/14.72, allocations: 92.47 kB / 4.138 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/14.72, allocations: 0 / 4.138 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01359/14.73, allocations: 7.024 MB / 4.145 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02981/14.76, allocations: 13.01 MB / 4.157 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.644e-05/14.76, allocations: 7.406 kB / 4.157 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003983/14.77, allocations: 482.2 kB / 4.158 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002436/14.77, allocations: 454.2 kB / 4.158 GB, free: 17.49 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000653/14.77, allocations: 78.44 kB / 4.158 GB, free: 17.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/14.77, allocations: 3.218 MB / 4.161 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/14.77, allocations: 9.25 kB / 4.161 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01667/14.79, allocations: 8.099 MB / 4.169 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/14.79, allocations: 0.7967 MB / 4.17 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009995/14.79, allocations: 70.45 kB / 4.17 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003956/14.8, allocations: 232.3 kB / 4.17 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007583/14.8, allocations: 191.5 kB / 4.171 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003357/14.8, allocations: 92.33 kB / 4.171 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002887/14.8, allocations: 1.185 MB / 4.172 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.062e-06/14.8, allocations: 2.75 kB / 4.172 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01538/14.82, allocations: 2.911 MB / 4.175 GB, free: 12.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * 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.04192/14.86, allocations: 12.96 MB / 4.187 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01929/14.88, allocations: 5.484 MB / 4.193 GB, free: 9.004 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.007e-05/14.88, allocations: 3.656 kB / 4.193 GB, free: 9.004 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007608/14.88, allocations: 2.921 MB / 4.195 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01036/14.89, allocations: 1.128 MB / 4.197 GB, free: 8.844 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8938/15.79, allocations: 130.6 MB / 4.324 GB, free: 69.89 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/15.79, allocations: 2.336 MB / 4.326 GB, free: 69.14 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003711/15.79, allocations: 1.45 MB / 4.328 GB, free: 69.14 MB / 0.5573 GB Notification: Performance of SimCode: time 2.234e-06/15.79, allocations: 0 / 4.328 GB, free: 69.14 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.387/21.18, allocations: 152.6 MB / 4.477 GB, free: 8.098 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat