Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.595/2.595, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.706e-05/4.721e-05, allocations: 4 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4124, allocations: 58.84 MB / 382.3 MB, free: 10.21 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.372/8.785, allocations: 2.825 GB / 3.199 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/8.785, allocations: 75.97 kB / 3.199 GB, free: 96.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.479/13.26, allocations: 0.8065 GB / 4.005 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.114e-06/13.26, allocations: 0 / 4.005 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003825/13.26, allocations: 72.34 kB / 4.005 GB, free: 35.88 MB / 0.5261 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.02141/13.29, allocations: 3.968 MB / 4.009 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/13.29, allocations: 14.62 kB / 4.009 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001491/13.29, allocations: 301.2 kB / 4.009 GB, free: 33.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009128/13.3, allocations: 0.8326 MB / 4.01 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009203/13.31, allocations: 2.166 MB / 4.012 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/13.31, allocations: 178.8 kB / 4.012 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/13.31, allocations: 196.6 kB / 4.013 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/13.32, allocations: 3.691 MB / 4.016 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.615e-05/13.32, allocations: 3.938 kB / 4.016 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005907/13.32, allocations: 87.95 kB / 4.016 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003218/13.32, allocations: 165.7 kB / 4.016 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/13.33, allocations: 3.406 MB / 4.02 GB, free: 32.65 MB / 0.5261 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.03331/13.37, allocations: 14.94 MB / 4.034 GB, free: 23.94 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00725/13.37, allocations: 2.141 MB / 4.036 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002765/13.38, allocations: 1.088 MB / 4.038 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07968/13.46, allocations: 24.61 MB / 4.062 GB, free: 23.55 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006488/13.46, allocations: 1.708 MB / 4.063 GB, free: 22.98 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002349/13.47, allocations: 200.9 kB / 4.063 GB, free: 22.86 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=162): time 1.244e-05/13.47, allocations: 0 / 4.063 GB, free: 22.86 MB / 0.5418 GB Notification: Performance of matching and sorting (n=174): time 0.03191/13.5, allocations: 7.504 MB / 4.071 GB, free: 19.05 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000299/13.5, allocations: 414.8 kB / 4.071 GB, free: 18.56 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/13.5, allocations: 1.549 MB / 4.073 GB, free: 17.12 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0006697/13.5, allocations: 57.7 kB / 4.073 GB, free: 17.06 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.001263/13.5, allocations: 0.9834 MB / 4.074 GB, free: 16.16 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.001095/13.51, allocations: 0.5813 MB / 4.074 GB, free: 15.64 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/13.51, allocations: 44 kB / 4.074 GB, free: 15.59 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0003413/13.51, allocations: 382.7 kB / 4.075 GB, free: 15.24 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003066/13.51, allocations: 1.07 MB / 4.076 GB, free: 14.29 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003551/13.51, allocations: 1.503 MB / 4.077 GB, free: 12.75 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003607/13.52, allocations: 1.315 MB / 4.078 GB, free: 11.62 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-05/13.52, allocations: 7.609 kB / 4.078 GB, free: 11.61 MB / 0.5418 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01173/13.53, allocations: 3.355 MB / 4.082 GB, free: 8.633 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.002033/13.53, allocations: 4.052 MB / 4.086 GB, free: 4.266 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.609e-05/13.53, allocations: 23.5 kB / 4.086 GB, free: 4.246 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009043/13.54, allocations: 0.9557 MB / 4.087 GB, free: 3.539 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004253/13.54, allocations: 470.7 kB / 4.087 GB, free: 3.152 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/13.55, allocations: 3.154 MB / 4.09 GB, free: 112 kB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005133/13.55, allocations: 262.9 kB / 4.09 GB, free: 0 / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/13.56, allocations: 146 kB / 4.091 GB, free: 0 / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/13.56, allocations: 6.234 kB / 4.091 GB, free: 0 / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0115/13.57, allocations: 3.037 MB / 4.094 GB, free: 13.39 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.244e-05/13.57, allocations: 15.52 kB / 4.094 GB, free: 13.38 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/13.57, allocations: 355.3 kB / 4.094 GB, free: 13.09 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004432/13.57, allocations: 484 kB / 4.094 GB, free: 12.69 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006541/13.58, allocations: 4.045 MB / 4.098 GB, free: 8.691 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004311/13.59, allocations: 232.7 kB / 4.099 GB, free: 8.512 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007582/13.59, allocations: 103 kB / 4.099 GB, free: 8.422 MB / 0.5574 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.001073/13.59, allocations: 318.6 kB / 4.099 GB, free: 8.105 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008255/13.59, allocations: 217.4 kB / 4.099 GB, free: 7.891 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01907/13.61, allocations: 7.832 MB / 4.107 GB, free: 0.8672 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001327/13.61, allocations: 81.09 kB / 4.107 GB, free: 0.8203 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.056e-06/13.61, allocations: 4 kB / 4.107 GB, free: 0.8164 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4708/14.08, allocations: 7.109 MB / 4.114 GB, free: 65.23 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02363/14.1, allocations: 10.96 MB / 4.125 GB, free: 64.59 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.749e-05/14.1, allocations: 0 / 4.125 GB, free: 64.59 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003111/14.11, allocations: 349.7 kB / 4.125 GB, free: 64.59 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008485/14.11, allocations: 2.527 MB / 4.127 GB, free: 64.5 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006269/14.11, allocations: 68.14 kB / 4.127 GB, free: 64.5 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004536/14.12, allocations: 4.113 MB / 4.131 GB, free: 62.43 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/14.12, allocations: 5.781 kB / 4.131 GB, free: 62.43 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/14.13, allocations: 7.805 MB / 4.139 GB, free: 61.92 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002649/14.14, allocations: 0.7802 MB / 4.14 GB, free: 61.77 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/14.14, allocations: 56.55 kB / 4.14 GB, free: 61.77 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/14.14, allocations: 194.1 kB / 4.14 GB, free: 61.76 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006718/14.14, allocations: 145.5 kB / 4.14 GB, free: 61.76 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000302/14.14, allocations: 78.33 kB / 4.14 GB, free: 61.76 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003169/14.15, allocations: 1.362 MB / 4.142 GB, free: 61.6 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.032e-06/14.15, allocations: 2.562 kB / 4.142 GB, free: 61.6 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01363/14.16, allocations: 2.86 MB / 4.144 GB, free: 61.6 MB / 0.5574 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.03105/14.19, allocations: 10.37 MB / 4.154 GB, free: 60.31 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01343/14.21, allocations: 5.291 MB / 4.16 GB, free: 59.75 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/14.21, allocations: 2.969 kB / 4.16 GB, free: 59.75 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.005771/14.21, allocations: 2.345 MB / 4.162 GB, free: 59.61 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008912/14.22, allocations: 0.9645 MB / 4.163 GB, free: 59.58 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02404/14.24, allocations: 7.402 MB / 4.17 GB, free: 58.12 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003045/14.25, allocations: 2.3 MB / 4.172 GB, free: 57.34 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.01208/14.26, allocations: 2.438 MB / 4.175 GB, free: 57.3 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004697/14.26, allocations: 1.286 MB / 4.176 GB, free: 57.3 MB / 0.5574 GB Notification: Performance of SimCode: time 2.054e-06/14.26, allocations: 2.281 kB / 4.176 GB, free: 57.3 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3301/14.59, allocations: 126.1 MB / 4.299 GB, free: 7.793 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/14.59, allocations: 233 kB / 4.299 GB, free: 7.48 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.961/23.56, allocations: 7.938 kB / 4.299 GB, free: 7.473 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat