Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.617/2.617, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.851e-05, allocations: 0 / 299.6 MB, free: 184 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3756, allocations: 54.85 MB / 354.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.455/8.83, allocations: 2.626 GB / 2.972 GB, free: 125.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/8.831, allocations: 85.33 kB / 2.972 GB, free: 125.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.724/11.55, allocations: 497.3 MB / 3.458 GB, free: 20.49 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.214e-06/11.55, allocations: 0 / 3.458 GB, free: 20.49 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.38e-05/11.55, allocations: 23.72 kB / 3.458 GB, free: 20.47 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.008/11.56, allocations: 1.714 MB / 3.46 GB, free: 18.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/11.56, allocations: 12.03 kB / 3.46 GB, free: 18.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003874/11.57, allocations: 326.7 kB / 3.46 GB, free: 18.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/11.57, allocations: 0.6066 MB / 3.461 GB, free: 17.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/11.57, allocations: 88.72 kB / 3.461 GB, free: 17.67 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/11.57, allocations: 39.95 kB / 3.461 GB, free: 17.63 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001797/11.57, allocations: 0.6468 MB / 3.461 GB, free: 16.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/11.57, allocations: 0.8868 MB / 3.462 GB, free: 16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/11.57, allocations: 0 / 3.462 GB, free: 16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001327/11.57, allocations: 4 kB / 3.462 GB, free: 16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.9e-05/11.57, allocations: 49.22 kB / 3.462 GB, free: 15.95 MB / 490.7 MB 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.689/12.26, allocations: 83.06 MB / 3.543 GB, free: 26.35 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000993/12.26, allocations: 359 kB / 3.544 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003651/12.26, allocations: 154.2 kB / 3.544 GB, free: 26.31 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1274/12.39, allocations: 33.98 MB / 3.577 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.476e-05/12.39, allocations: 38.25 kB / 3.577 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=33): time 3.376e-06/12.39, allocations: 0 / 3.577 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=37): time 0.006066/12.4, allocations: 1.356 MB / 3.578 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.952e-05/12.4, allocations: 146.7 kB / 3.579 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009244/12.4, allocations: 0.4892 MB / 3.579 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.989e-05/12.4, allocations: 25.7 kB / 3.579 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003508/12.4, allocations: 436.6 kB / 3.579 GB, free: 20.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/12.4, allocations: 133.6 kB / 3.58 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/12.4, allocations: 0 / 3.58 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002054/12.4, allocations: 373.7 kB / 3.58 GB, free: 19.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004973/12.4, allocations: 200.9 kB / 3.58 GB, free: 19.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007064/12.4, allocations: 0.5535 MB / 3.581 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/12.4, allocations: 325.4 kB / 3.581 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/12.4, allocations: 3.906 kB / 3.581 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002366/12.4, allocations: 0.7784 MB / 3.582 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/12.4, allocations: 11.81 kB / 3.582 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/12.4, allocations: 14.08 kB / 3.582 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/12.4, allocations: 60.41 kB / 3.582 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002638/12.41, allocations: 291.7 kB / 3.582 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002897/12.41, allocations: 1.935 MB / 3.584 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/12.41, allocations: 44.39 kB / 3.584 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-05/12.41, allocations: 50.02 kB / 3.584 GB, free: 33.35 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003158/12.41, allocations: 142.7 kB / 3.584 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001479/12.41, allocations: 421 kB / 3.585 GB, free: 33.17 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/12.41, allocations: 68.27 kB / 3.585 GB, free: 33.13 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/12.42, allocations: 1.584 MB / 3.586 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-05/12.42, allocations: 22.02 kB / 3.586 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/12.42, allocations: 0 / 3.586 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/12.42, allocations: 7.594 kB / 3.586 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004275/12.42, allocations: 2.441 MB / 3.589 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/12.42, allocations: 0 / 3.589 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/12.42, allocations: 172.2 kB / 3.589 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004091/12.42, allocations: 86.2 kB / 3.589 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/12.42, allocations: 3.938 kB / 3.589 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/12.43, allocations: 1.97 MB / 3.591 GB, free: 30.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/12.43, allocations: 3.953 kB / 3.591 GB, free: 30.74 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/12.43, allocations: 1.513 MB / 3.592 GB, free: 30.51 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004943/12.43, allocations: 221 kB / 3.592 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/12.43, allocations: 0 / 3.592 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/12.43, allocations: 46.81 kB / 3.593 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/12.43, allocations: 24.14 kB / 3.593 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-05/12.43, allocations: 25.94 kB / 3.593 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0006423/12.43, allocations: 353.6 kB / 3.593 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.81e-07/12.43, allocations: 0 / 3.593 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005712/12.44, allocations: 1.083 MB / 3.594 GB, free: 30.27 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01344/12.45, allocations: 3.588 MB / 3.597 GB, free: 29.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002878/12.45, allocations: 0.7923 MB / 3.598 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/12.45, allocations: 1.062 kB / 3.598 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001777/12.45, allocations: 0.5349 MB / 3.599 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/12.46, allocations: 260.1 kB / 3.599 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007668/12.47, allocations: 1.937 MB / 3.601 GB, free: 28.92 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008284/12.47, allocations: 1.075 MB / 3.602 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001723/12.47, allocations: 0.5003 MB / 3.602 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005809/12.47, allocations: 332.9 kB / 3.603 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of SimCode: time 1.202e-06/12.47, allocations: 0 / 3.603 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1328/12.6, allocations: 42.31 MB / 3.644 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0005249/12.6, allocations: 220.4 kB / 3.644 GB, free: 17.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.549/17.15, allocations: 0 / 3.644 GB, free: 17.8 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat