Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.5/2.5, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.758e-05/3.764e-05, allocations: 7.938 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.52/9.656, allocations: 2.852 GB / 3.253 GB, free: 98.59 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003433/9.657, allocations: 78.33 kB / 3.253 GB, free: 98.59 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.663/15.32, allocations: 1.025 GB / 4.278 GB, free: 8.781 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.615e-06/15.32, allocations: 0 / 4.278 GB, free: 8.781 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004958/15.32, allocations: 73.78 kB / 4.278 GB, free: 8.711 MB / 0.573 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.02816/15.35, allocations: 4.251 MB / 4.282 GB, free: 4.422 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.673e-05/15.35, allocations: 12.03 kB / 4.282 GB, free: 4.41 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001972/15.35, allocations: 324.5 kB / 4.282 GB, free: 4.082 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/15.37, allocations: 0.941 MB / 4.283 GB, free: 3.137 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/15.38, allocations: 2.189 MB / 4.285 GB, free: 0.8984 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004746/15.38, allocations: 204.1 kB / 4.285 GB, free: 0.6953 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/15.38, allocations: 220 kB / 4.286 GB, free: 492 kB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5071/15.88, allocations: 3.858 MB / 4.289 GB, free: 37.04 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/15.88, allocations: 8.094 kB / 4.289 GB, free: 37.04 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006218/15.89, allocations: 100.1 kB / 4.289 GB, free: 37.04 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004114/15.89, allocations: 173.7 kB / 4.29 GB, free: 37.04 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/15.9, allocations: 3.413 MB / 4.293 GB, free: 37.02 MB / 0.573 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.03941/15.94, allocations: 16.95 MB / 4.309 GB, free: 27.09 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/15.95, allocations: 3.052 MB / 4.312 GB, free: 26.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003937/15.95, allocations: 1.267 MB / 4.314 GB, free: 26.48 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08193/16.04, allocations: 24.42 MB / 4.338 GB, free: 27.66 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00657/16.04, allocations: 1.882 MB / 4.339 GB, free: 27.54 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 8.135e-06/16.04, allocations: 0 / 4.339 GB, free: 27.54 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.03883/16.08, allocations: 8.926 MB / 4.348 GB, free: 26.51 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001834/16.08, allocations: 258.9 kB / 4.348 GB, free: 26.23 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/16.09, allocations: 1.501 MB / 4.35 GB, free: 26 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0007301/16.09, allocations: 69.33 kB / 4.35 GB, free: 25.96 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001134/16.09, allocations: 1.041 MB / 4.351 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001045/16.09, allocations: 0.7035 MB / 4.352 GB, free: 25.3 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/16.09, allocations: 47.56 kB / 4.352 GB, free: 25.3 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002549/16.09, allocations: 401.8 kB / 4.352 GB, free: 25 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/16.09, allocations: 1.144 MB / 4.353 GB, free: 24.99 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/16.09, allocations: 1.643 MB / 4.355 GB, free: 24.48 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/16.1, allocations: 1.401 MB / 4.356 GB, free: 24.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/16.1, allocations: 5.969 kB / 4.356 GB, free: 24.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.00931/16.11, allocations: 3.492 MB / 4.36 GB, free: 24.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002224/16.11, allocations: 5.14 MB / 4.365 GB, free: 18.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.71e-05/16.11, allocations: 12.91 kB / 4.365 GB, free: 18.74 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/16.11, allocations: 340 kB / 4.365 GB, free: 18.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005202/16.12, allocations: 0.5962 MB / 4.365 GB, free: 18.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002832/16.12, allocations: 3.093 MB / 4.368 GB, free: 16.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006402/16.13, allocations: 335.9 kB / 4.369 GB, free: 16.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008891/16.13, allocations: 119.1 kB / 4.369 GB, free: 16.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/16.13, allocations: 5.438 kB / 4.369 GB, free: 16.1 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01365/16.14, allocations: 3.212 MB / 4.372 GB, free: 15.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.916e-05/16.14, allocations: 12.78 kB / 4.372 GB, free: 15.94 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/16.14, allocations: 330.2 kB / 4.372 GB, free: 15.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005266/16.15, allocations: 0.5929 MB / 4.373 GB, free: 15.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003569/16.15, allocations: 3.092 MB / 4.376 GB, free: 29.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005503/16.16, allocations: 335 kB / 4.376 GB, free: 29.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007534/16.16, allocations: 121 kB / 4.376 GB, free: 29.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (283): * Single equations (assignments): 276 * 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.001104/16.16, allocations: 324.9 kB / 4.377 GB, free: 29.11 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008229/16.16, allocations: 234.1 kB / 4.377 GB, free: 29 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/16.18, allocations: 8.204 MB / 4.385 GB, free: 28.19 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/16.18, allocations: 93.25 kB / 4.385 GB, free: 28.19 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/16.18, allocations: 0 / 4.385 GB, free: 28.19 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01313/16.19, allocations: 7.121 MB / 4.392 GB, free: 27.22 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02895/16.22, allocations: 13.2 MB / 4.405 GB, free: 25.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/16.22, allocations: 5.656 kB / 4.405 GB, free: 25.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004013/16.22, allocations: 494.5 kB / 4.405 GB, free: 25.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002462/16.23, allocations: 460.7 kB / 4.406 GB, free: 25.53 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006643/16.23, allocations: 82.09 kB / 4.406 GB, free: 25.53 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/16.23, allocations: 3.221 MB / 4.409 GB, free: 22.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/16.23, allocations: 9.156 kB / 4.409 GB, free: 22.93 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/16.25, allocations: 8.245 MB / 4.417 GB, free: 21.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00292/16.25, allocations: 0.8284 MB / 4.418 GB, free: 21.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/16.25, allocations: 69.62 kB / 4.418 GB, free: 21.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004313/16.25, allocations: 237.8 kB / 4.418 GB, free: 21.13 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000768/16.26, allocations: 202.9 kB / 4.418 GB, free: 21.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003504/16.26, allocations: 96.03 kB / 4.418 GB, free: 21.12 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.003034/16.26, allocations: 1.327 MB / 4.42 GB, free: 20.96 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.162e-06/16.26, allocations: 0 / 4.42 GB, free: 20.96 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01476/16.27, allocations: 2.946 MB / 4.423 GB, free: 20.86 MB / 0.6042 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 (239): * Single equations (assignments): 208 * 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.03542/16.31, allocations: 13.09 MB / 4.435 GB, free: 17.36 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01854/16.33, allocations: 5.565 MB / 4.441 GB, free: 17.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.729e-05/16.33, allocations: 2.469 kB / 4.441 GB, free: 17.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.009102/16.34, allocations: 2.939 MB / 4.444 GB, free: 16.88 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0139/16.35, allocations: 1.215 MB / 4.445 GB, free: 16.85 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0294/16.38, allocations: 8.075 MB / 4.453 GB, free: 15.05 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/16.38, allocations: 2.391 MB / 4.455 GB, free: 14.15 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01015/16.39, allocations: 2.775 MB / 4.458 GB, free: 14.02 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003424/16.4, allocations: 1.421 MB / 4.459 GB, free: 12.88 MB / 0.6042 GB Notification: Performance of SimCode: time 2.104e-06/16.4, allocations: 4 kB / 4.459 GB, free: 12.87 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8272/17.22, allocations: 138.2 MB / 4.594 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/17.22, allocations: 236.9 kB / 4.594 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/27.23, allocations: 0 / 4.594 GB, free: 63.55 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat