Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.07/2.07, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.398e-05/4.403e-05, allocations: 8 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.884/8, allocations: 2.497 GB / 2.811 GB, free: 65.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/8, allocations: 83.33 kB / 2.811 GB, free: 65.76 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.621/11.62, allocations: 0.6181 GB / 3.429 GB, free: 35.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.047e-06/11.62, allocations: 0 / 3.429 GB, free: 35.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001628/11.62, allocations: 46.11 kB / 3.429 GB, free: 35.07 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01168/11.63, allocations: 2.356 MB / 3.432 GB, free: 34.01 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/11.63, allocations: 9.031 kB / 3.432 GB, free: 34.01 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006124/11.63, allocations: 183.8 kB / 3.432 GB, free: 33.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01142/11.65, allocations: 0.8982 MB / 3.433 GB, free: 33.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003709/11.65, allocations: 1.06 MB / 3.434 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/11.65, allocations: 106.8 kB / 3.434 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003866/11.65, allocations: 119.2 kB / 3.434 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008181/11.66, allocations: 2.231 MB / 3.436 GB, free: 33.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.011e-05/11.66, allocations: 8.031 kB / 3.436 GB, free: 33.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/11.66, allocations: 59.59 kB / 3.436 GB, free: 33.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.592e-05/11.66, allocations: 34.73 kB / 3.436 GB, free: 33.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007932/11.67, allocations: 1.943 MB / 3.438 GB, free: 33.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01737/11.68, allocations: 10.07 MB / 3.448 GB, free: 26.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005876/11.69, allocations: 1.468 MB / 3.449 GB, free: 26.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009397/11.69, allocations: 378.3 kB / 3.45 GB, free: 26.13 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06579/11.76, allocations: 17.1 MB / 3.467 GB, free: 17.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/11.76, allocations: 46.98 kB / 3.467 GB, free: 17.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 5.781e-06/11.76, allocations: 0 / 3.467 GB, free: 17.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.01048/11.77, allocations: 2.221 MB / 3.469 GB, free: 17.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/11.77, allocations: 268.4 kB / 3.469 GB, free: 16.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/11.77, allocations: 0.8171 MB / 3.47 GB, free: 16.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002325/11.77, allocations: 39.92 kB / 3.47 GB, free: 16.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004882/11.77, allocations: 0.6874 MB / 3.471 GB, free: 16.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/11.77, allocations: 274.2 kB / 3.471 GB, free: 16.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/11.77, allocations: 27.41 kB / 3.471 GB, free: 16.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/11.77, allocations: 359.3 kB / 3.471 GB, free: 15.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008948/11.77, allocations: 336.3 kB / 3.471 GB, free: 15.78 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/11.77, allocations: 0.9188 MB / 3.472 GB, free: 15.02 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/11.77, allocations: 471.6 kB / 3.473 GB, free: 14.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/11.77, allocations: 6.469 kB / 3.473 GB, free: 14.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.003341/11.78, allocations: 1.217 MB / 3.474 GB, free: 14.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003426/11.78, allocations: 7.32 MB / 3.481 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.137e-05/11.78, allocations: 19.5 kB / 3.481 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.341e-05/11.78, allocations: 32.31 kB / 3.481 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/11.78, allocations: 401.1 kB / 3.482 GB, free: 23.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.127e-05/11.78, allocations: 35 kB / 3.482 GB, free: 23.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002932/11.79, allocations: 259.1 kB / 3.482 GB, free: 23.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003884/11.79, allocations: 94.55 kB / 3.482 GB, free: 23.13 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/11.79, allocations: 3.844 kB / 3.482 GB, free: 23.13 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003154/11.79, allocations: 1.129 MB / 3.483 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/11.79, allocations: 15.88 kB / 3.483 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.209e-05/11.79, allocations: 29.12 kB / 3.483 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002501/11.79, allocations: 388.5 kB / 3.483 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.161e-05/11.79, allocations: 42.09 kB / 3.484 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/11.8, allocations: 212.3 kB / 3.484 GB, free: 23.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003046/11.8, allocations: 80.66 kB / 3.484 GB, free: 23.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000538/11.8, allocations: 204.5 kB / 3.484 GB, free: 22.92 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/11.8, allocations: 125.3 kB / 3.484 GB, free: 22.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008825/11.81, allocations: 5.753 MB / 3.49 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/11.81, allocations: 83.19 kB / 3.49 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/11.81, allocations: 4.219 kB / 3.49 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.139e-05/11.81, allocations: 7.094 kB / 3.49 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004885/11.81, allocations: 2.771 MB / 3.493 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.496e-05/11.81, allocations: 0 / 3.493 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/11.81, allocations: 254.3 kB / 3.493 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.891e-05/11.81, allocations: 4.719 kB / 3.493 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/11.81, allocations: 28.42 kB / 3.493 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.19e-05/11.81, allocations: 5.984 kB / 3.493 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/11.81, allocations: 3.938 kB / 3.493 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004406/11.82, allocations: 2.629 MB / 3.495 GB, free: 21.41 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/11.82, allocations: 0.5281 MB / 3.496 GB, free: 21.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003591/11.82, allocations: 18.88 kB / 3.496 GB, free: 21.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/11.82, allocations: 124.4 kB / 3.496 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/11.82, allocations: 88.8 kB / 3.496 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.389e-05/11.82, allocations: 30.75 kB / 3.496 GB, free: 21.08 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001477/11.82, allocations: 0.7104 MB / 3.497 GB, free: 20.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/11.82, allocations: 3.531 kB / 3.497 GB, free: 20.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0096/11.83, allocations: 1.727 MB / 3.499 GB, free: 20.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01652/11.85, allocations: 5.049 MB / 3.503 GB, free: 19.39 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005142/11.85, allocations: 2.173 MB / 3.506 GB, free: 19.26 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/11.85, allocations: 0 / 3.506 GB, free: 19.26 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/11.86, allocations: 1.324 MB / 3.507 GB, free: 19.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005803/11.86, allocations: 0.5786 MB / 3.507 GB, free: 19.19 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7935/12.66, allocations: 123.8 MB / 3.628 GB, free: 40.85 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/12.66, allocations: 1.652 MB / 3.63 GB, free: 40.08 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/12.66, allocations: 0.8815 MB / 3.631 GB, free: 40.07 MB / 474.7 MB Notification: Performance of SimCode: time 1.904e-06/12.66, allocations: 0 / 3.631 GB, free: 40.07 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.956/16.61, allocations: 54.64 MB / 3.684 GB, free: 29.95 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat