Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.556/2.556, allocations: 235 MB / 247.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.666e-05/4.682e-05, allocations: 4 kB / 305 MB, free: 5.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4372/0.4373, allocations: 54.85 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.314/8.751, allocations: 2.655 GB / 3.007 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/8.752, allocations: 81.2 kB / 3.007 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.379/12.13, allocations: 0.5733 GB / 3.58 GB, free: 44.34 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.234e-06/12.13, allocations: 0 / 3.58 GB, free: 44.34 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002241/12.13, allocations: 43.17 kB / 3.58 GB, free: 44.33 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01515/12.15, allocations: 2.845 MB / 3.583 GB, free: 42.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/12.15, allocations: 7.25 kB / 3.583 GB, free: 42.86 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007436/12.15, allocations: 192.4 kB / 3.583 GB, free: 42.81 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008287/12.16, allocations: 0.5553 MB / 3.584 GB, free: 42.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007265/12.16, allocations: 1.431 MB / 3.585 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/12.16, allocations: 111 kB / 3.585 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005064/12.16, allocations: 121.7 kB / 3.585 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008585/12.17, allocations: 2.266 MB / 3.588 GB, free: 41.96 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.069e-05/12.17, allocations: 4.375 kB / 3.588 GB, free: 41.96 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002521/12.17, allocations: 54.55 kB / 3.588 GB, free: 41.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/12.17, allocations: 103.1 kB / 3.588 GB, free: 41.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007081/12.18, allocations: 1.968 MB / 3.59 GB, free: 41.94 MB / 0.4948 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.01949/12.2, allocations: 9.658 MB / 3.599 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004276/12.2, allocations: 1.318 MB / 3.6 GB, free: 35.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001437/12.21, allocations: 0.6093 MB / 3.601 GB, free: 35.97 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0608/12.27, allocations: 18.85 MB / 3.619 GB, free: 24.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005013/12.27, allocations: 1.036 MB / 3.62 GB, free: 23.92 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 6.412e-06/12.27, allocations: 0 / 3.62 GB, free: 23.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.02216/12.29, allocations: 4.377 MB / 3.625 GB, free: 23.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/12.29, allocations: 274.2 kB / 3.625 GB, free: 22.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002718/12.3, allocations: 0.9733 MB / 3.626 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003823/12.3, allocations: 45.98 kB / 3.626 GB, free: 22.68 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008678/12.3, allocations: 0.662 MB / 3.627 GB, free: 22.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005818/12.3, allocations: 362.2 kB / 3.627 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/12.3, allocations: 24.03 kB / 3.627 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001422/12.3, allocations: 353.5 kB / 3.627 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/12.3, allocations: 0.6143 MB / 3.628 GB, free: 21.87 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00227/12.3, allocations: 0.9364 MB / 3.629 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/12.3, allocations: 0.7693 MB / 3.63 GB, free: 21.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/12.3, allocations: 3.875 kB / 3.63 GB, free: 21.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.005235/12.31, allocations: 1.851 MB / 3.631 GB, free: 21.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007323/12.31, allocations: 3.273 MB / 3.635 GB, free: 17.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.733e-05/12.31, allocations: 14.53 kB / 3.635 GB, free: 17.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007704/12.31, allocations: 138.5 kB / 3.635 GB, free: 17.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002667/12.31, allocations: 316.5 kB / 3.635 GB, free: 17.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009666/12.32, allocations: 1.261 MB / 3.636 GB, free: 16.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/12.32, allocations: 155.1 kB / 3.636 GB, free: 16.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004179/12.32, allocations: 66.17 kB / 3.637 GB, free: 16.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/12.32, allocations: 2.969 kB / 3.637 GB, free: 16.64 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004398/12.32, allocations: 1.68 MB / 3.638 GB, free: 16.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/12.32, allocations: 11.88 kB / 3.638 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006102/12.32, allocations: 133.7 kB / 3.638 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00235/12.33, allocations: 330 kB / 3.639 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008725/12.33, allocations: 1.249 MB / 3.64 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002287/12.33, allocations: 162.8 kB / 3.64 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/12.33, allocations: 60.31 kB / 3.64 GB, free: 14.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005036/12.33, allocations: 226.7 kB / 3.64 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003048/12.33, allocations: 135.5 kB / 3.64 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007949/12.34, allocations: 4.683 MB / 3.645 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-05/12.34, allocations: 52.44 kB / 3.645 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/12.34, allocations: 4 kB / 3.645 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005972/12.34, allocations: 3.904 MB / 3.649 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/12.36, allocations: 6.648 MB / 3.655 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/12.36, allocations: 0 / 3.655 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/12.36, allocations: 238.4 kB / 3.656 GB, free: 7.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009643/12.36, allocations: 185.8 kB / 3.656 GB, free: 7.508 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001852/12.36, allocations: 41.31 kB / 3.656 GB, free: 7.488 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000847/12.36, allocations: 1.291 MB / 3.657 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/12.36, allocations: 0 / 3.657 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00756/12.37, allocations: 4.155 MB / 3.661 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/12.37, allocations: 0.5298 MB / 3.662 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003862/12.37, allocations: 32 kB / 3.662 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/12.37, allocations: 124.2 kB / 3.662 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000256/12.37, allocations: 83.75 kB / 3.662 GB, free: 19.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/12.37, allocations: 50.98 kB / 3.662 GB, free: 19.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001668/12.37, allocations: 0.8534 MB / 3.663 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/12.37, allocations: 0 / 3.663 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009174/12.38, allocations: 2.179 MB / 3.665 GB, free: 16.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02235/12.4, allocations: 6.978 MB / 3.672 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008798/12.41, allocations: 3.095 MB / 3.675 GB, free: 7.879 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/12.41, allocations: 1.438 kB / 3.675 GB, free: 7.879 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003431/12.42, allocations: 1.419 MB / 3.676 GB, free: 6.551 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005274/12.42, allocations: 0.5979 MB / 3.677 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8605/13.28, allocations: 127.3 MB / 3.801 GB, free: 47.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002426/13.29, allocations: 1.723 MB / 3.803 GB, free: 47.09 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007624/13.29, allocations: 1.677 MB / 3.804 GB, free: 47.03 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002324/13.3, allocations: 0.8359 MB / 3.805 GB, free: 47.03 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/13.3, allocations: 0 / 3.805 GB, free: 47.03 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7033/14, allocations: 87.37 MB / 3.89 GB, free: 62.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002892/14, allocations: 224 kB / 3.891 GB, free: 62.26 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.993/20.99, allocations: 0 / 3.891 GB, free: 62.26 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat