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 1.985/1.985, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.257e-05/6.275e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.897/8.022, allocations: 2.497 GB / 2.811 GB, free: 65.94 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/8.023, allocations: 83.45 kB / 2.811 GB, free: 65.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507/11.53, allocations: 0.6181 GB / 3.429 GB, free: 34.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.034e-06/11.53, allocations: 1.531 kB / 3.429 GB, free: 34.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002003/11.53, allocations: 43.92 kB / 3.429 GB, free: 34.95 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.01198/11.54, allocations: 2.357 MB / 3.432 GB, free: 33.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/11.54, allocations: 7.25 kB / 3.432 GB, free: 33.89 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006568/11.54, allocations: 185.3 kB / 3.432 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01152/11.55, allocations: 0.8994 MB / 3.433 GB, free: 33.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003743/11.56, allocations: 1.06 MB / 3.434 GB, free: 33.44 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/11.56, allocations: 101.9 kB / 3.434 GB, free: 33.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004946/11.56, allocations: 111.7 kB / 3.434 GB, free: 33.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008444/11.57, allocations: 2.25 MB / 3.436 GB, free: 32.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.307e-05/11.57, allocations: 5.312 kB / 3.436 GB, free: 32.99 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003337/11.57, allocations: 59.8 kB / 3.436 GB, free: 32.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-05/11.57, allocations: 38.52 kB / 3.436 GB, free: 32.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00802/11.58, allocations: 1.972 MB / 3.438 GB, free: 32.97 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/11.59, allocations: 10.08 MB / 3.448 GB, free: 26.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005881/11.6, allocations: 1.472 MB / 3.449 GB, free: 26.01 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/11.6, allocations: 381.6 kB / 3.45 GB, free: 26 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06391/11.66, allocations: 17.11 MB / 3.467 GB, free: 17.24 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.924e-05/11.66, allocations: 44.98 kB / 3.467 GB, free: 17.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 4.779e-06/11.66, allocations: 4 kB / 3.467 GB, free: 17.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.01012/11.67, allocations: 2.213 MB / 3.469 GB, free: 17.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/11.67, allocations: 272.6 kB / 3.469 GB, free: 16.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/11.68, allocations: 0.805 MB / 3.47 GB, free: 16.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/11.68, allocations: 45.91 kB / 3.47 GB, free: 16.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005121/11.68, allocations: 0.6862 MB / 3.471 GB, free: 16.13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/11.68, allocations: 274.5 kB / 3.471 GB, free: 15.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/11.68, allocations: 28.62 kB / 3.471 GB, free: 15.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/11.68, allocations: 361.7 kB / 3.471 GB, free: 15.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/11.68, allocations: 339.5 kB / 3.471 GB, free: 15.64 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/11.68, allocations: 0.9219 MB / 3.472 GB, free: 14.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00132/11.68, allocations: 473 kB / 3.473 GB, free: 14.85 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/11.68, allocations: 6.406 kB / 3.473 GB, free: 14.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.003994/11.69, allocations: 1.274 MB / 3.474 GB, free: 14.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003017/11.69, allocations: 7.318 MB / 3.481 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.388e-05/11.69, allocations: 18.28 kB / 3.481 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.162e-05/11.69, allocations: 29.78 kB / 3.481 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/11.69, allocations: 394.3 kB / 3.482 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.492e-05/11.69, allocations: 40.73 kB / 3.482 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/11.69, allocations: 261.5 kB / 3.482 GB, free: 22.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003828/11.7, allocations: 89.89 kB / 3.482 GB, free: 22.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/11.7, allocations: 9.562 kB / 3.482 GB, free: 22.98 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003585/11.7, allocations: 1.18 MB / 3.483 GB, free: 22.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.316e-05/11.7, allocations: 20.75 kB / 3.483 GB, free: 22.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.426e-05/11.7, allocations: 29.91 kB / 3.483 GB, free: 22.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/11.7, allocations: 389.3 kB / 3.484 GB, free: 22.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.943e-05/11.7, allocations: 39.14 kB / 3.484 GB, free: 22.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002196/11.7, allocations: 207.9 kB / 3.484 GB, free: 22.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003287/11.7, allocations: 86.2 kB / 3.484 GB, free: 22.87 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.0005285/11.7, allocations: 209 kB / 3.484 GB, free: 22.72 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004601/11.71, allocations: 130.5 kB / 3.484 GB, free: 22.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00935/11.71, allocations: 5.745 MB / 3.49 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-05/11.71, allocations: 77.78 kB / 3.49 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/11.71, allocations: 0 / 3.49 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-05/11.71, allocations: 6.844 kB / 3.49 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00483/11.72, allocations: 2.77 MB / 3.493 GB, free: 21.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.718e-05/11.72, allocations: 4 kB / 3.493 GB, free: 21.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001707/11.72, allocations: 252.5 kB / 3.493 GB, free: 21.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-05/11.72, allocations: 6.062 kB / 3.493 GB, free: 21.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/11.72, allocations: 28.89 kB / 3.493 GB, free: 21.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.307e-06/11.72, allocations: 3.719 kB / 3.493 GB, free: 21.63 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/11.72, allocations: 7.875 kB / 3.493 GB, free: 21.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004381/11.73, allocations: 2.624 MB / 3.496 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/11.73, allocations: 0.5247 MB / 3.496 GB, free: 20.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000381/11.73, allocations: 18.62 kB / 3.496 GB, free: 20.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/11.73, allocations: 128.1 kB / 3.496 GB, free: 20.88 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/11.73, allocations: 88.81 kB / 3.496 GB, free: 20.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.65e-05/11.73, allocations: 40.3 kB / 3.496 GB, free: 20.88 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001539/11.73, allocations: 0.7061 MB / 3.497 GB, free: 20.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.82e-07/11.73, allocations: 4 kB / 3.497 GB, free: 20.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009183/11.74, allocations: 1.724 MB / 3.499 GB, free: 20.52 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.01629/11.76, allocations: 5.021 MB / 3.504 GB, free: 19.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005409/11.76, allocations: 2.229 MB / 3.506 GB, free: 19.05 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/11.76, allocations: 3.375 kB / 3.506 GB, free: 19.05 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002247/11.76, allocations: 1.337 MB / 3.507 GB, free: 19.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00575/11.77, allocations: 0.5847 MB / 3.508 GB, free: 18.98 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7572/12.53, allocations: 123.8 MB / 3.629 GB, free: 41.01 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/12.53, allocations: 1.654 MB / 3.63 GB, free: 40.24 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/12.53, allocations: 0.8786 MB / 3.631 GB, free: 40.23 MB / 474.7 MB Notification: Performance of SimCode: time 1.723e-06/12.53, allocations: 0 / 3.631 GB, free: 40.23 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.833/16.36, allocations: 54.58 MB / 3.684 GB, free: 29.52 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