Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.339/2.339, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.087e-05, allocations: 0 / 299.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3852, allocations: 54.86 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.812/8.197, allocations: 2.677 GB / 3.023 GB, free: 97.52 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/8.197, allocations: 83.33 kB / 3.023 GB, free: 97.48 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.687/13.88, allocations: 0.9989 GB / 4.022 GB, free: 29.16 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.214e-06/13.88, allocations: 0 / 4.022 GB, free: 29.16 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002796/13.88, allocations: 67.78 kB / 4.022 GB, free: 29.15 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.01911/13.9, allocations: 4.242 MB / 4.026 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/13.9, allocations: 14.12 kB / 4.026 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/13.91, allocations: 0.9332 MB / 4.027 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008823/13.92, allocations: 2.201 MB / 4.029 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/13.92, allocations: 99.2 kB / 4.029 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008522/13.92, allocations: 132.7 kB / 4.029 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007424/13.93, allocations: 2.797 MB / 4.032 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008832/13.94, allocations: 3.014 MB / 4.035 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.796e-05/13.94, allocations: 7.188 kB / 4.035 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004107/13.94, allocations: 10.34 kB / 4.035 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003225/13.94, allocations: 179.9 kB / 4.035 GB, free: 23.16 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.6705/14.61, allocations: 49.68 MB / 4.084 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006447/14.62, allocations: 2.328 MB / 4.086 GB, free: 43.28 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003444/14.62, allocations: 1.174 MB / 4.087 GB, free: 43.26 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05308/14.68, allocations: 17.2 MB / 4.104 GB, free: 32.57 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003527/14.68, allocations: 1.348 MB / 4.105 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 7.204e-06/14.68, allocations: 3.188 kB / 4.105 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.06416/14.74, allocations: 10.29 MB / 4.115 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/14.74, allocations: 369.9 kB / 4.116 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/14.75, allocations: 1.148 MB / 4.117 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00071/14.75, allocations: 32.42 kB / 4.117 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001259/14.75, allocations: 1.072 MB / 4.118 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001223/14.75, allocations: 0.6628 MB / 4.119 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/14.75, allocations: 4.609 kB / 4.119 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001794/14.75, allocations: 400.8 kB / 4.119 GB, free: 29.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002712/14.75, allocations: 1.1 MB / 4.12 GB, free: 29.14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003398/14.76, allocations: 1.63 MB / 4.122 GB, free: 28.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01501/14.77, allocations: 2.087 MB / 4.124 GB, free: 28.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-05/14.77, allocations: 3.719 kB / 4.124 GB, free: 28.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.02156/14.79, allocations: 3.974 MB / 4.128 GB, free: 28.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001394/14.79, allocations: 5.588 MB / 4.133 GB, free: 22.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-05/14.79, allocations: 16.02 kB / 4.133 GB, free: 22.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/14.8, allocations: 318 kB / 4.133 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005344/14.8, allocations: 0.5996 MB / 4.134 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/14.8, allocations: 3.139 MB / 4.137 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/14.81, allocations: 324.2 kB / 4.137 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007304/14.81, allocations: 130.1 kB / 4.137 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/14.81, allocations: 2.688 kB / 4.137 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01888/14.83, allocations: 3.487 MB / 4.141 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.62e-05/14.83, allocations: 14.52 kB / 4.141 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/14.83, allocations: 315.4 kB / 4.141 GB, free: 19.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004819/14.84, allocations: 0.59 MB / 4.142 GB, free: 19.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/14.84, allocations: 3.139 MB / 4.145 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004923/14.84, allocations: 303.1 kB / 4.145 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000568/14.84, allocations: 116.4 kB / 4.145 GB, free: 17.28 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real 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: 31 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0009998/14.84, allocations: 257.9 kB / 4.145 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01883/14.86, allocations: 3.38 MB / 4.149 GB, free: 16.88 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008612/14.86, allocations: 216 kB / 4.149 GB, free: 16.78 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02808/14.89, allocations: 8.003 MB / 4.157 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/14.89, allocations: 84.62 kB / 4.157 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/14.89, allocations: 6.5 kB / 4.157 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02499/14.92, allocations: 6.908 MB / 4.164 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03998/14.96, allocations: 12.48 MB / 4.176 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.089e-05/14.96, allocations: 7.219 kB / 4.176 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003658/14.96, allocations: 453.1 kB / 4.176 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/14.96, allocations: 425.6 kB / 4.177 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005054/14.96, allocations: 55.75 kB / 4.177 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002661/14.97, allocations: 3.368 MB / 4.18 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-05/14.97, allocations: 8.719 kB / 4.18 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02717/14.99, allocations: 8.365 MB / 4.188 GB, free: 9.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002601/15, allocations: 0.7831 MB / 4.189 GB, free: 9.336 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008093/15, allocations: 32.05 kB / 4.189 GB, free: 9.336 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003219/15, allocations: 189.8 kB / 4.189 GB, free: 9.324 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005411/15, allocations: 180.1 kB / 4.189 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002874/15, allocations: 93.86 kB / 4.189 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002281/15, allocations: 1.085 MB / 4.19 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.41e-07/15, allocations: 0 / 4.19 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01413/15.02, allocations: 2.757 MB / 4.193 GB, free: 9.062 MB / 0.5261 GB 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: 51 ($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,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 (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.04424/15.06, allocations: 13.67 MB / 4.206 GB, free: 5.297 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01425/15.08, allocations: 5.348 MB / 4.212 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/15.08, allocations: 3.25 kB / 4.212 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006483/15.08, allocations: 2.686 MB / 4.214 GB, free: 4.844 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009294/15.09, allocations: 1.008 MB / 4.215 GB, free: 4.809 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2987/15.39, allocations: 62.16 MB / 4.276 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003179/15.39, allocations: 2.339 MB / 4.278 GB, free: 9.895 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01061/15.4, allocations: 2.695 MB / 4.281 GB, free: 8.32 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003804/15.41, allocations: 1.365 MB / 4.282 GB, free: 7.066 MB / 0.5573 GB Notification: Performance of SimCode: time 2.615e-06/15.41, allocations: 0 / 4.282 GB, free: 7.066 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8369/16.25, allocations: 111.2 MB / 4.391 GB, free: 64.27 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002573/16.25, allocations: 177.4 kB / 4.391 GB, free: 64.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/24.64, allocations: 4 kB / 4.391 GB, free: 64.08 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat