Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.492/2.492, allocations: 270 MB / 283.6 MB, free: 3.109 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.379e-05/4.379e-05, allocations: 4 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1492, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.87/9.019, allocations: 2.83 GB / 3.231 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/9.02, allocations: 75.78 kB / 3.231 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.494/13.51, allocations: 0.8152 GB / 4.046 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.124e-06/13.51, allocations: 0 / 4.046 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003527/13.51, allocations: 67.88 kB / 4.046 GB, free: 14.48 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.0212/13.54, allocations: 3.961 MB / 4.05 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/13.54, allocations: 19.95 kB / 4.05 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001482/13.54, allocations: 287.1 kB / 4.05 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009011/13.55, allocations: 0.8337 MB / 4.051 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009112/13.56, allocations: 2.165 MB / 4.053 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003264/13.56, allocations: 184 kB / 4.053 GB, free: 6.898 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/13.56, allocations: 199.9 kB / 4.054 GB, free: 6.703 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/13.57, allocations: 3.695 MB / 4.057 GB, free: 2.801 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.163e-05/13.57, allocations: 11.94 kB / 4.057 GB, free: 2.789 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004579/13.57, allocations: 87.97 kB / 4.057 GB, free: 2.703 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003012/13.57, allocations: 159.7 kB / 4.057 GB, free: 2.547 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/13.58, allocations: 3.404 MB / 4.061 GB, free: 15.14 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.5016/14.08, allocations: 14.94 MB / 4.075 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008439/14.09, allocations: 2.137 MB / 4.077 GB, free: 41.8 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00318/14.1, allocations: 1.091 MB / 4.078 GB, free: 41.79 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08496/14.18, allocations: 24.61 MB / 4.102 GB, free: 26.79 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006841/14.19, allocations: 1.707 MB / 4.104 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002329/14.19, allocations: 203.6 kB / 4.104 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 1.21e-05/14.19, allocations: 0 / 4.104 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.0325/14.22, allocations: 7.51 MB / 4.112 GB, free: 25.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001586/14.22, allocations: 414.6 kB / 4.112 GB, free: 25.33 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/14.23, allocations: 1.546 MB / 4.114 GB, free: 25.1 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000642/14.23, allocations: 58.11 kB / 4.114 GB, free: 25.07 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001278/14.23, allocations: 0.9769 MB / 4.115 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001142/14.23, allocations: 0.5917 MB / 4.115 GB, free: 24.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003/14.23, allocations: 38.03 kB / 4.115 GB, free: 24.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000192/14.23, allocations: 385.3 kB / 4.116 GB, free: 24.19 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/14.23, allocations: 1.073 MB / 4.117 GB, free: 24.18 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00364/14.24, allocations: 1.505 MB / 4.118 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003647/14.24, allocations: 1.317 MB / 4.119 GB, free: 23.64 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-05/14.24, allocations: 3.719 kB / 4.119 GB, free: 23.64 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01065/14.25, allocations: 3.346 MB / 4.123 GB, free: 23.36 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009579/14.25, allocations: 4.064 MB / 4.127 GB, free: 19.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.44e-05/14.25, allocations: 17.12 kB / 4.127 GB, free: 19.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008708/14.26, allocations: 0.9517 MB / 4.128 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004107/14.27, allocations: 471.5 kB / 4.128 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003928/14.27, allocations: 3.162 MB / 4.131 GB, free: 17.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004394/14.27, allocations: 238.4 kB / 4.131 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000826/14.28, allocations: 98.05 kB / 4.131 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/14.28, allocations: 3.375 kB / 4.131 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01113/14.29, allocations: 3.023 MB / 4.134 GB, free: 16.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.191e-05/14.29, allocations: 17.08 kB / 4.134 GB, free: 16.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/14.29, allocations: 357.4 kB / 4.135 GB, free: 16.83 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004281/14.29, allocations: 490.2 kB / 4.135 GB, free: 16.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005212/14.3, allocations: 4.047 MB / 4.139 GB, free: 14.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004085/14.3, allocations: 231.1 kB / 4.139 GB, free: 14 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006408/14.3, allocations: 104.7 kB / 4.139 GB, free: 14 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001731/14.3, allocations: 296.8 kB / 4.14 GB, free: 29.83 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007499/14.31, allocations: 227.1 kB / 4.14 GB, free: 29.71 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01563/14.32, allocations: 7.848 MB / 4.148 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/14.32, allocations: 82.48 kB / 4.148 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/14.32, allocations: 0 / 4.148 GB, free: 29.02 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01247/14.33, allocations: 6.877 MB / 4.154 GB, free: 28.08 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02237/14.36, allocations: 10.96 MB / 4.165 GB, free: 27.34 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.968e-05/14.36, allocations: 5.594 kB / 4.165 GB, free: 27.34 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/14.36, allocations: 348.5 kB / 4.165 GB, free: 27.34 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008341/14.37, allocations: 2.528 MB / 4.168 GB, free: 27.26 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00065/14.37, allocations: 70.41 kB / 4.168 GB, free: 27.26 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004895/14.37, allocations: 4.112 MB / 4.172 GB, free: 25.15 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/14.37, allocations: 0 / 4.172 GB, free: 25.15 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/14.39, allocations: 7.809 MB / 4.18 GB, free: 24.45 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002755/14.39, allocations: 0.7755 MB / 4.18 GB, free: 24.18 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009578/14.39, allocations: 59.11 kB / 4.18 GB, free: 24.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003895/14.4, allocations: 196.9 kB / 4.181 GB, free: 24.16 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007305/14.4, allocations: 153.7 kB / 4.181 GB, free: 24.16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002944/14.4, allocations: 75.03 kB / 4.181 GB, free: 24.16 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00316/14.4, allocations: 1.366 MB / 4.182 GB, free: 24 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.072e-06/14.4, allocations: 0 / 4.182 GB, free: 24 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01289/14.41, allocations: 2.858 MB / 4.185 GB, free: 23.88 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02987/14.44, allocations: 10.38 MB / 4.195 GB, free: 22.46 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0165/14.46, allocations: 5.277 MB / 4.2 GB, free: 21.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/14.46, allocations: 0.5469 kB / 4.2 GB, free: 21.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.008027/14.47, allocations: 2.351 MB / 4.203 GB, free: 21.76 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01276/14.48, allocations: 0.9606 MB / 4.204 GB, free: 21.73 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03239/14.51, allocations: 7.404 MB / 4.211 GB, free: 19.96 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003642/14.52, allocations: 2.302 MB / 4.213 GB, free: 19.09 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008907/14.53, allocations: 2.444 MB / 4.215 GB, free: 19.04 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003256/14.53, allocations: 1.285 MB / 4.217 GB, free: 17.99 MB / 0.573 GB Notification: Performance of SimCode: time 2.455e-06/14.53, allocations: 0 / 4.217 GB, free: 17.99 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7771/15.31, allocations: 126.4 MB / 4.34 GB, free: 66.61 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002717/15.31, allocations: 243 kB / 4.34 GB, free: 66.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.616/24.92, allocations: 0 / 4.34 GB, free: 66.3 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat