Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.663e-05/3.665e-05, allocations: 3.984 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4101/0.4102, allocations: 54.85 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.222/8.632, allocations: 2.608 GB / 2.959 GB, free: 113.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/8.633, allocations: 81.61 kB / 2.959 GB, free: 113.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.341/11.97, allocations: 0.632 GB / 3.591 GB, free: 37.97 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.945e-06/11.97, allocations: 0 / 3.591 GB, free: 37.97 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001778/11.97, allocations: 41.97 kB / 3.591 GB, free: 37.96 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01242/11.99, allocations: 2.432 MB / 3.593 GB, free: 36.82 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.215e-05/11.99, allocations: 10.28 kB / 3.593 GB, free: 36.82 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006609/11.99, allocations: 179.1 kB / 3.594 GB, free: 36.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01811/12.01, allocations: 0.9587 MB / 3.595 GB, free: 36.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004446/12.01, allocations: 1.061 MB / 3.596 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/12.01, allocations: 100.7 kB / 3.596 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004013/12.01, allocations: 115.4 kB / 3.596 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/12.02, allocations: 2.241 MB / 3.598 GB, free: 35.87 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.874e-05/12.02, allocations: 3.938 kB / 3.598 GB, free: 35.87 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003547/12.02, allocations: 59.81 kB / 3.598 GB, free: 35.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.235e-05/12.02, allocations: 34.44 kB / 3.598 GB, free: 35.87 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/12.03, allocations: 1.94 MB / 3.6 GB, free: 35.83 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/12.05, allocations: 10.08 MB / 3.61 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005859/12.06, allocations: 1.467 MB / 3.611 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009815/12.06, allocations: 383.1 kB / 3.612 GB, free: 28.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06544/12.12, allocations: 17.14 MB / 3.628 GB, free: 19.85 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/12.12, allocations: 39.12 kB / 3.628 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=80): time 3.366e-06/12.12, allocations: 0 / 3.628 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of matching and sorting (n=80): time 0.009358/12.13, allocations: 2.214 MB / 3.631 GB, free: 19.69 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.452e-05/12.13, allocations: 265.5 kB / 3.631 GB, free: 19.38 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/12.14, allocations: 0.8176 MB / 3.632 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001023/12.14, allocations: 44.89 kB / 3.632 GB, free: 19.16 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004631/12.14, allocations: 0.6899 MB / 3.632 GB, free: 18.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002791/12.14, allocations: 274.1 kB / 3.633 GB, free: 18.58 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/12.14, allocations: 25.12 kB / 3.633 GB, free: 18.58 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001098/12.14, allocations: 363.2 kB / 3.633 GB, free: 18.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000882/12.14, allocations: 336.3 kB / 3.633 GB, free: 18.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/12.14, allocations: 0.9224 MB / 3.634 GB, free: 17.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/12.14, allocations: 469.4 kB / 3.635 GB, free: 17.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-05/12.14, allocations: 9.281 kB / 3.635 GB, free: 17.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.003068/12.14, allocations: 1.215 MB / 3.636 GB, free: 16.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002903/12.15, allocations: 7.323 MB / 3.643 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.379e-05/12.15, allocations: 20.69 kB / 3.643 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.268e-05/12.15, allocations: 27.91 kB / 3.643 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/12.15, allocations: 395.3 kB / 3.643 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-05/12.15, allocations: 38.33 kB / 3.643 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00245/12.15, allocations: 262.1 kB / 3.644 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/12.15, allocations: 84.22 kB / 3.644 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/12.15, allocations: 2.656 kB / 3.644 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002845/12.15, allocations: 1.13 MB / 3.645 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/12.15, allocations: 19.38 kB / 3.645 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.859e-05/12.15, allocations: 30.62 kB / 3.645 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/12.16, allocations: 390.6 kB / 3.645 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.065e-05/12.16, allocations: 37.77 kB / 3.645 GB, free: 24.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/12.16, allocations: 217.6 kB / 3.646 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/12.16, allocations: 85.95 kB / 3.646 GB, free: 24.37 MB / 0.5105 GB 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.0004657/12.16, allocations: 198.8 kB / 3.646 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003682/12.16, allocations: 121 kB / 3.646 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008126/12.17, allocations: 5.757 MB / 3.652 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.519e-05/12.17, allocations: 83.05 kB / 3.652 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/12.17, allocations: 0 / 3.652 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/12.17, allocations: 8.578 kB / 3.652 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/12.17, allocations: 2.771 MB / 3.654 GB, free: 20.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/12.17, allocations: 0 / 3.654 GB, free: 20.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/12.17, allocations: 262 kB / 3.655 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.527e-05/12.17, allocations: 3.625 kB / 3.655 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.331e-05/12.17, allocations: 27.83 kB / 3.655 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.678e-06/12.17, allocations: 3.125 kB / 3.655 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/12.17, allocations: 3.031 kB / 3.655 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004104/12.18, allocations: 2.617 MB / 3.657 GB, free: 18.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/12.18, allocations: 0.5378 MB / 3.658 GB, free: 18.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002683/12.18, allocations: 23.75 kB / 3.658 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/12.18, allocations: 120.4 kB / 3.658 GB, free: 18.34 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/12.18, allocations: 90.08 kB / 3.658 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.147e-05/12.18, allocations: 35 kB / 3.658 GB, free: 18.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001393/12.18, allocations: 0.7062 MB / 3.659 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/12.18, allocations: 0 / 3.659 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008674/12.19, allocations: 1.734 MB / 3.66 GB, free: 17.68 MB / 0.5105 GB 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.01517/12.21, allocations: 5.047 MB / 3.665 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004745/12.21, allocations: 2.177 MB / 3.667 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/12.21, allocations: 0 / 3.667 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001965/12.21, allocations: 1.323 MB / 3.669 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005414/12.22, allocations: 0.5774 MB / 3.669 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7894/13.01, allocations: 126.1 MB / 3.792 GB, free: 41.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/13.01, allocations: 1.647 MB / 3.794 GB, free: 40.28 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00152/13.01, allocations: 0.8877 MB / 3.795 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of SimCode: time 1.753e-06/13.01, allocations: 0 / 3.795 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.893/16.9, allocations: 54.8 MB / 3.848 GB, free: 16.12 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat