Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.523/2.523, allocations: 270 MB / 283.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.289e-05/4.298e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1456, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.486/9.631, allocations: 2.847 GB / 3.248 GB, free: 96.04 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/9.632, allocations: 78.27 kB / 3.248 GB, free: 96.04 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.182/13.81, allocations: 0.812 GB / 4.06 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.215e-06/13.81, allocations: 0 / 4.06 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003545/13.81, allocations: 63.92 kB / 4.06 GB, free: 7.379 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.0204/13.83, allocations: 3.66 MB / 4.063 GB, free: 3.652 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/13.83, allocations: 12.03 kB / 4.063 GB, free: 3.641 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001182/13.84, allocations: 265.8 kB / 4.064 GB, free: 3.371 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00895/13.84, allocations: 0.7854 MB / 4.064 GB, free: 2.582 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009337/13.85, allocations: 1.983 MB / 4.066 GB, free: 0.543 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003896/13.85, allocations: 159.4 kB / 4.066 GB, free: 396 kB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/13.86, allocations: 183.9 kB / 4.067 GB, free: 212 kB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5258/14.38, allocations: 3.318 MB / 4.07 GB, free: 38.63 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/14.38, allocations: 5.75 kB / 4.07 GB, free: 38.63 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008353/14.38, allocations: 79.17 kB / 4.07 GB, free: 38.63 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005477/14.38, allocations: 153.6 kB / 4.07 GB, free: 38.63 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01825/14.4, allocations: 3.038 MB / 4.073 GB, free: 38.62 MB / 0.5573 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.04329/14.44, allocations: 13.82 MB / 4.087 GB, free: 30.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/14.46, allocations: 1.986 MB / 4.088 GB, free: 30.52 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003992/14.46, allocations: 1.062 MB / 4.09 GB, free: 30.51 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1331/14.59, allocations: 24.68 MB / 4.114 GB, free: 31.41 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01015/14.6, allocations: 1.628 MB / 4.115 GB, free: 31.29 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002193/14.61, allocations: 181.5 kB / 4.115 GB, free: 31.25 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 1.083e-05/14.61, allocations: 0 / 4.115 GB, free: 31.25 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.03003/14.64, allocations: 7.034 MB / 4.122 GB, free: 30.34 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001893/14.64, allocations: 254.4 kB / 4.123 GB, free: 30.06 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003282/14.64, allocations: 1.317 MB / 4.124 GB, free: 29.89 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000671/14.64, allocations: 59.02 kB / 4.124 GB, free: 29.86 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001178/14.64, allocations: 0.8737 MB / 4.125 GB, free: 29.6 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/14.64, allocations: 0.552 MB / 4.125 GB, free: 29.32 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003647/14.64, allocations: 36.28 kB / 4.125 GB, free: 29.32 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002869/14.64, allocations: 380.7 kB / 4.126 GB, free: 29.01 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/14.65, allocations: 0.9335 MB / 4.127 GB, free: 29.01 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/14.65, allocations: 1.327 MB / 4.128 GB, free: 28.62 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003278/14.65, allocations: 1.167 MB / 4.129 GB, free: 28.54 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/14.65, allocations: 3.969 kB / 4.129 GB, free: 28.54 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01084/14.66, allocations: 2.953 MB / 4.132 GB, free: 28.27 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001722/14.66, allocations: 3.838 MB / 4.136 GB, free: 24.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-05/14.66, allocations: 13.05 kB / 4.136 GB, free: 24.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006728/14.67, allocations: 0.5129 MB / 4.136 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006142/14.68, allocations: 448 kB / 4.137 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004771/14.68, allocations: 2.702 MB / 4.139 GB, free: 22.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00467/14.69, allocations: 261.6 kB / 4.139 GB, free: 22.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/14.69, allocations: 95.12 kB / 4.14 GB, free: 22.11 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/14.69, allocations: 5.5 kB / 4.14 GB, free: 22.11 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006754/14.69, allocations: 2.59 MB / 4.142 GB, free: 21.98 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/14.69, allocations: 12.97 kB / 4.142 GB, free: 21.98 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008935/14.7, allocations: 196.1 kB / 4.142 GB, free: 21.96 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003637/14.7, allocations: 461.4 kB / 4.143 GB, free: 21.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/14.7, allocations: 1.869 MB / 4.145 GB, free: 20.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/14.7, allocations: 258.6 kB / 4.145 GB, free: 20.39 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003211/14.7, allocations: 93.36 kB / 4.145 GB, free: 20.39 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (211): * Single equations (assignments): 205 * 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.0008141/14.71, allocations: 295.8 kB / 4.145 GB, free: 20.22 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005125/14.71, allocations: 196.9 kB / 4.145 GB, free: 20.12 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01352/14.72, allocations: 7.458 MB / 4.153 GB, free: 19.41 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.084e-05/14.72, allocations: 79.55 kB / 4.153 GB, free: 19.41 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/14.72, allocations: 7 kB / 4.153 GB, free: 19.41 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01114/14.73, allocations: 6.516 MB / 4.159 GB, free: 18.47 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02411/14.76, allocations: 11.21 MB / 4.17 GB, free: 17.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/14.76, allocations: 11.45 kB / 4.17 GB, free: 17.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002987/14.76, allocations: 367 kB / 4.17 GB, free: 17.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004157/14.76, allocations: 1.298 MB / 4.172 GB, free: 17.32 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005378/14.76, allocations: 66.42 kB / 4.172 GB, free: 17.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004092/14.77, allocations: 3.183 MB / 4.175 GB, free: 31.23 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/14.77, allocations: 10.72 kB / 4.175 GB, free: 31.23 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01392/14.78, allocations: 7.288 MB / 4.182 GB, free: 29.97 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/14.78, allocations: 0.7373 MB / 4.183 GB, free: 29.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007956/14.78, allocations: 56.64 kB / 4.183 GB, free: 29.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003337/14.79, allocations: 180.7 kB / 4.183 GB, free: 29.66 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005779/14.79, allocations: 159.9 kB / 4.183 GB, free: 29.65 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002703/14.79, allocations: 78.97 kB / 4.183 GB, free: 29.65 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002648/14.79, allocations: 1.193 MB / 4.184 GB, free: 29.49 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.62e-07/14.79, allocations: 0 / 4.184 GB, free: 29.49 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01302/14.8, allocations: 2.604 MB / 4.187 GB, free: 29.38 MB / 0.5886 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (179): * Single equations (assignments): 153 * 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.02926/14.83, allocations: 11.32 MB / 4.198 GB, free: 26.35 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01238/14.85, allocations: 4.616 MB / 4.202 GB, free: 26.03 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/14.85, allocations: 3.219 kB / 4.202 GB, free: 26.03 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005652/14.85, allocations: 2.434 MB / 4.205 GB, free: 25.89 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008261/14.86, allocations: 0.9218 MB / 4.206 GB, free: 25.85 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02779/14.89, allocations: 6.935 MB / 4.212 GB, free: 24.48 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003236/14.89, allocations: 2.179 MB / 4.215 GB, free: 23.72 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01052/14.9, allocations: 2.47 MB / 4.217 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003522/14.91, allocations: 1.205 MB / 4.218 GB, free: 23.46 MB / 0.5886 GB Notification: Performance of SimCode: time 2.075e-05/14.91, allocations: 1.312 kB / 4.218 GB, free: 23.46 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7646/15.67, allocations: 116.6 MB / 4.332 GB, free: 67.33 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/15.67, allocations: 229.2 kB / 4.332 GB, free: 67.02 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.058/24.73, allocations: 0 / 4.332 GB, free: 67.02 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat