Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.11/2.11, allocations: 209.4 MB / 216.9 MB, free: 6.73 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.309e-05/2.305e-05, allocations: 0 / 267.6 MB, free: 5.387 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 48.7 MB / 316.3 MB, free: 4.594 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.873/7.99, allocations: 2.496 GB / 2.805 GB, free: 97.23 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/7.991, allocations: 83.45 kB / 2.805 GB, free: 97.22 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.693/10.68, allocations: 494.3 MB / 3.288 GB, free: 37.97 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.165e-06/10.68, allocations: 0 / 3.288 GB, free: 37.97 MB / 442.8 MB Notification: Performance of Transformations before backend: time 9.788e-05/10.68, allocations: 31.31 kB / 3.288 GB, free: 37.96 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.009214/10.69, allocations: 1.996 MB / 3.29 GB, free: 37.05 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/10.69, allocations: 11.69 kB / 3.29 GB, free: 37.05 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008341/10.7, allocations: 0.6757 MB / 3.291 GB, free: 36.98 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/10.7, allocations: 0.8497 MB / 3.291 GB, free: 36.69 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/10.7, allocations: 40.78 kB / 3.292 GB, free: 36.69 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/10.7, allocations: 50.19 kB / 3.292 GB, free: 36.69 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002395/10.71, allocations: 0.9053 MB / 3.292 GB, free: 36.68 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/10.71, allocations: 1.082 MB / 3.293 GB, free: 36.36 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.936e-05/10.71, allocations: 5.312 kB / 3.293 GB, free: 36.36 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/10.71, allocations: 11.42 kB / 3.294 GB, free: 36.35 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/10.71, allocations: 20.16 kB / 3.294 GB, free: 36.35 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.206/11.91, allocations: 201.3 MB / 3.49 GB, free: 24.64 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009818/11.92, allocations: 407.8 kB / 3.49 GB, free: 24.61 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/11.92, allocations: 189.6 kB / 3.491 GB, free: 24.61 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0642/11.98, allocations: 16.3 MB / 3.507 GB, free: 16 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/11.98, allocations: 40.81 kB / 3.507 GB, free: 15.96 MB / 474.8 MB Notification: Performance of pre-optimization done (n=43): time 4.398e-06/11.98, allocations: 0 / 3.507 GB, free: 15.96 MB / 474.8 MB Notification: Performance of matching and sorting (n=43): time 0.006793/11.99, allocations: 1.261 MB / 3.508 GB, free: 15.91 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.182e-05/11.99, allocations: 214.5 kB / 3.508 GB, free: 15.66 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/11.99, allocations: 0.6503 MB / 3.509 GB, free: 15.53 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/11.99, allocations: 30.11 kB / 3.509 GB, free: 15.5 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004474/11.99, allocations: 0.6104 MB / 3.509 GB, free: 15.16 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/11.99, allocations: 160.9 kB / 3.509 GB, free: 15.09 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-05/11.99, allocations: 0 / 3.509 GB, free: 15.09 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0001003/11.99, allocations: 347.3 kB / 3.51 GB, free: 14.78 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/11.99, allocations: 237.5 kB / 3.51 GB, free: 14.78 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/11.99, allocations: 0.6435 MB / 3.511 GB, free: 14.26 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003643/11.99, allocations: 0.5626 MB / 3.511 GB, free: 14.24 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.178e-05/12, allocations: 3.594 kB / 3.511 GB, free: 14.24 MB / 474.8 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.005245/12, allocations: 1.096 MB / 3.512 GB, free: 14.17 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.002438/12, allocations: 5.057 MB / 3.517 GB, free: 24.87 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-05/12, allocations: 13.03 kB / 3.517 GB, free: 24.87 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.701e-05/12, allocations: 21.62 kB / 3.517 GB, free: 24.87 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002084/12.01, allocations: 302.9 kB / 3.518 GB, free: 24.86 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.388e-05/12.01, allocations: 28.08 kB / 3.518 GB, free: 24.86 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/12.01, allocations: 255.2 kB / 3.518 GB, free: 24.82 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002562/12.01, allocations: 61.92 kB / 3.518 GB, free: 24.82 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/12.01, allocations: 14.86 kB / 3.518 GB, free: 24.82 MB / 490.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004143/12.01, allocations: 0.9302 MB / 3.519 GB, free: 24.79 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/12.01, allocations: 17.34 kB / 3.519 GB, free: 24.79 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/12.01, allocations: 19.53 kB / 3.519 GB, free: 24.79 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/12.01, allocations: 296.4 kB / 3.519 GB, free: 24.79 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.955e-05/12.01, allocations: 28.8 kB / 3.519 GB, free: 24.79 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/12.02, allocations: 186 kB / 3.519 GB, free: 24.75 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/12.02, allocations: 58.72 kB / 3.519 GB, free: 24.75 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (127): * Single equations (assignments): 127 * 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.000355/12.02, allocations: 144 kB / 3.519 GB, free: 24.64 MB / 490.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003592/12.02, allocations: 0.631 MB / 3.52 GB, free: 24.57 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/12.02, allocations: 94.47 kB / 3.52 GB, free: 24.52 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003218/12.02, allocations: 1.435 MB / 3.522 GB, free: 24.31 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/12.02, allocations: 11.12 kB / 3.522 GB, free: 24.3 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/12.02, allocations: 0 / 3.522 GB, free: 24.3 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/12.02, allocations: 0 / 3.522 GB, free: 24.3 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002144/12.03, allocations: 1.082 MB / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/12.03, allocations: 0 / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/12.03, allocations: 97.33 kB / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/12.03, allocations: 3.812 kB / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/12.03, allocations: 5.656 kB / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/12.03, allocations: 4.062 kB / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/12.03, allocations: 0 / 3.523 GB, free: 24.07 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/12.03, allocations: 0.6048 MB / 3.523 GB, free: 23.85 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/12.03, allocations: 495.5 kB / 3.524 GB, free: 23.64 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/12.03, allocations: 0 / 3.524 GB, free: 23.64 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/12.03, allocations: 71.77 kB / 3.524 GB, free: 23.63 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/12.03, allocations: 27.97 kB / 3.524 GB, free: 23.63 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.971e-05/12.03, allocations: 22.55 kB / 3.524 GB, free: 23.63 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002072/12.03, allocations: 1.082 MB / 3.525 GB, free: 23.52 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.374e-06/12.03, allocations: 0 / 3.525 GB, free: 23.52 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008114/12.04, allocations: 1.559 MB / 3.527 GB, free: 23.41 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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 Backend phase and start with SimCode phase: time 0.01316/12.06, allocations: 2.944 MB / 3.529 GB, free: 22.49 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.00248/12.06, allocations: 0.964 MB / 3.53 GB, free: 22.48 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/12.06, allocations: 0 / 3.53 GB, free: 22.48 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003352/12.06, allocations: 141.4 kB / 3.53 GB, free: 22.48 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/12.06, allocations: 369 kB / 3.531 GB, free: 22.45 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008118/12.07, allocations: 1.912 MB / 3.533 GB, free: 21.79 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007976/12.07, allocations: 1.186 MB / 3.534 GB, free: 21.07 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/12.07, allocations: 0.5231 MB / 3.534 GB, free: 21.06 MB / 490.8 MB Notification: Performance of SimCode: time 1.754e-06/12.07, allocations: 0 / 3.534 GB, free: 21.06 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.448/16.52, allocations: 43.34 MB / 3.577 GB, free: 83.64 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat