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.469/2.469, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.806e-05/3.822e-05, allocations: 4 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4113, allocations: 54.85 MB / 359.9 MB, free: 2.781 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.102/8.514, allocations: 2.678 GB / 3.029 GB, free: 79.06 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/8.514, allocations: 81.45 kB / 3.029 GB, free: 79.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.778/14.29, allocations: 1.008 GB / 4.037 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.114e-06/14.29, allocations: 0 / 4.037 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003182/14.29, allocations: 71.11 kB / 4.037 GB, free: 23.32 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.02131/14.31, allocations: 4.252 MB / 4.041 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/14.31, allocations: 12.03 kB / 4.041 GB, free: 20.55 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001528/14.32, allocations: 313.9 kB / 4.041 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/14.33, allocations: 0.9382 MB / 4.042 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009848/14.34, allocations: 2.201 MB / 4.044 GB, free: 17.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004547/14.34, allocations: 204 kB / 4.044 GB, free: 17.53 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/14.34, allocations: 216 kB / 4.045 GB, free: 17.32 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/14.35, allocations: 3.868 MB / 4.048 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/14.35, allocations: 11.88 kB / 4.048 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005484/14.35, allocations: 99.97 kB / 4.049 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003484/14.35, allocations: 167.9 kB / 4.049 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/14.37, allocations: 3.434 MB / 4.052 GB, free: 10.69 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.03807/14.4, allocations: 16.74 MB / 4.068 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/14.42, allocations: 3.03 MB / 4.071 GB, free: 6.145 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004043/14.42, allocations: 1.237 MB / 4.073 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5697/14.99, allocations: 18.61 MB / 4.091 GB, free: 33.77 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008015/15, allocations: 1.85 MB / 4.093 GB, free: 33.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 6.362e-06/15, allocations: 0 / 4.093 GB, free: 33.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.0432/15.04, allocations: 8.634 MB / 4.101 GB, free: 32.81 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/15.04, allocations: 264.7 kB / 4.101 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003677/15.05, allocations: 1.428 MB / 4.103 GB, free: 32.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000827/15.05, allocations: 67.98 kB / 4.103 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001359/15.05, allocations: 1.048 MB / 4.104 GB, free: 31.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001467/15.05, allocations: 0.7076 MB / 4.104 GB, free: 31.58 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004898/15.05, allocations: 48.41 kB / 4.104 GB, free: 31.58 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004226/15.05, allocations: 402 kB / 4.105 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003844/15.05, allocations: 1.126 MB / 4.106 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004188/15.06, allocations: 1.67 MB / 4.108 GB, free: 30.71 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004037/15.06, allocations: 1.403 MB / 4.109 GB, free: 30.62 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-05/15.06, allocations: 7.922 kB / 4.109 GB, free: 30.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01153/15.07, allocations: 3.442 MB / 4.112 GB, free: 30.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001473/15.08, allocations: 5.654 MB / 4.118 GB, free: 24.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.775e-05/15.08, allocations: 12.38 kB / 4.118 GB, free: 24.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001834/15.08, allocations: 338.2 kB / 4.118 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005281/15.08, allocations: 0.5971 MB / 4.119 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002586/15.09, allocations: 3.094 MB / 4.122 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006342/15.09, allocations: 338.4 kB / 4.122 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/15.09, allocations: 121.5 kB / 4.122 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/15.09, allocations: 4.406 kB / 4.122 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009675/15.1, allocations: 3.166 MB / 4.125 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.982e-05/15.1, allocations: 14.41 kB / 4.125 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/15.1, allocations: 325.1 kB / 4.126 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005009/15.11, allocations: 0.5918 MB / 4.126 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/15.11, allocations: 3.094 MB / 4.129 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005334/15.12, allocations: 333.1 kB / 4.13 GB, free: 18.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005837/15.12, allocations: 122.8 kB / 4.13 GB, free: 18.96 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.001077/15.12, allocations: 333.2 kB / 4.13 GB, free: 18.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007842/15.12, allocations: 224.7 kB / 4.13 GB, free: 18.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01687/15.14, allocations: 8.107 MB / 4.138 GB, free: 17.86 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001003/15.14, allocations: 92.03 kB / 4.138 GB, free: 17.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/15.14, allocations: 0 / 4.138 GB, free: 17.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01311/15.15, allocations: 7.019 MB / 4.145 GB, free: 16.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02919/15.18, allocations: 13.03 MB / 4.158 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/15.18, allocations: 3.594 kB / 4.158 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003797/15.18, allocations: 489.4 kB / 4.158 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00235/15.19, allocations: 451.9 kB / 4.159 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004127/15.19, allocations: 75.14 kB / 4.159 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002422/15.19, allocations: 3.223 MB / 4.162 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/15.19, allocations: 9.75 kB / 4.162 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/15.2, allocations: 8.096 MB / 4.17 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002714/15.21, allocations: 0.7986 MB / 4.171 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006534/15.21, allocations: 76.91 kB / 4.171 GB, free: 10.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003199/15.21, allocations: 236.9 kB / 4.171 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005103/15.21, allocations: 194.9 kB / 4.171 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002708/15.21, allocations: 94.08 kB / 4.171 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002436/15.21, allocations: 1.177 MB / 4.172 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.51e-07/15.21, allocations: 0 / 4.172 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01448/15.23, allocations: 2.914 MB / 4.175 GB, free: 10.54 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.03387/15.26, allocations: 12.94 MB / 4.188 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0154/15.28, allocations: 5.626 MB / 4.193 GB, free: 6.727 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/15.28, allocations: 3.438 kB / 4.193 GB, free: 6.727 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00724/15.29, allocations: 2.942 MB / 4.196 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01027/15.3, allocations: 1.133 MB / 4.197 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9465/16.24, allocations: 131.2 MB / 4.325 GB, free: 69.34 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002524/16.25, allocations: 2.392 MB / 4.328 GB, free: 68.57 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01006/16.26, allocations: 2.698 MB / 4.33 GB, free: 68.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003464/16.26, allocations: 1.413 MB / 4.332 GB, free: 68.52 MB / 0.5573 GB Notification: Performance of SimCode: time 1.152e-06/16.26, allocations: 3.125 kB / 4.332 GB, free: 68.52 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3804/16.64, allocations: 133 MB / 4.462 GB, free: 21.92 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002981/16.64, allocations: 227.1 kB / 4.462 GB, free: 21.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.805/26.44, allocations: 0 / 4.462 GB, free: 21.65 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