Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.787e-05/3.792e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1179, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.79/7.908, allocations: 2.497 GB / 2.811 GB, free: 66.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/7.909, allocations: 82.08 kB / 2.811 GB, free: 66.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.07/10.98, allocations: 0.5609 GB / 3.372 GB, free: 9.969 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.124e-06/10.98, allocations: 0 / 3.372 GB, free: 9.969 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001912/10.98, allocations: 38.5 kB / 3.372 GB, free: 9.934 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.0151/10.99, allocations: 2.466 MB / 3.375 GB, free: 7.449 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/10.99, allocations: 8.031 kB / 3.375 GB, free: 7.441 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006576/11, allocations: 173.1 kB / 3.375 GB, free: 7.262 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/11.01, allocations: 0.8144 MB / 3.376 GB, free: 6.457 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003848/11.01, allocations: 1.079 MB / 3.377 GB, free: 5.359 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/11.01, allocations: 98.23 kB / 3.377 GB, free: 5.262 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000382/11.01, allocations: 116 kB / 3.377 GB, free: 5.148 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008178/11.02, allocations: 2.138 MB / 3.379 GB, free: 2.887 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.175e-05/11.02, allocations: 7.938 kB / 3.379 GB, free: 2.879 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002708/11.02, allocations: 56 kB / 3.379 GB, free: 2.824 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.911e-05/11.02, allocations: 31.94 kB / 3.379 GB, free: 2.793 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008092/11.03, allocations: 1.94 MB / 3.381 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3719/11.4, allocations: 8.875 MB / 3.39 GB, free: 32.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007549/11.41, allocations: 1.726 MB / 3.391 GB, free: 32.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/11.41, allocations: 0.4954 MB / 3.392 GB, free: 32.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1824/11.59, allocations: 49.44 MB / 3.44 GB, free: 19.38 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/11.59, allocations: 42.88 kB / 3.44 GB, free: 19.34 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001627/11.59, allocations: 149.6 kB / 3.44 GB, free: 19.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 6.272e-06/11.59, allocations: 0 / 3.44 GB, free: 19.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=106): time 0.01117/11.6, allocations: 2.375 MB / 3.443 GB, free: 19.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/11.6, allocations: 201.1 kB / 3.443 GB, free: 18.94 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/11.61, allocations: 0.7739 MB / 3.444 GB, free: 18.78 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004389/11.61, allocations: 48.02 kB / 3.444 GB, free: 18.75 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005498/11.61, allocations: 0.613 MB / 3.444 GB, free: 18.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005953/11.61, allocations: 366.3 kB / 3.445 GB, free: 18.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/11.61, allocations: 31.69 kB / 3.445 GB, free: 18.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/11.61, allocations: 372 kB / 3.445 GB, free: 17.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/11.61, allocations: 443.4 kB / 3.445 GB, free: 17.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/11.61, allocations: 0.8601 MB / 3.446 GB, free: 17.44 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/11.61, allocations: 0.5439 MB / 3.447 GB, free: 17.41 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.725e-05/11.61, allocations: 7.5 kB / 3.447 GB, free: 17.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004524/11.62, allocations: 1.531 MB / 3.448 GB, free: 17.31 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002943/11.62, allocations: 4.975 MB / 3.453 GB, free: 28.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.904e-05/11.62, allocations: 13 kB / 3.453 GB, free: 28.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/11.63, allocations: 1.082 MB / 3.454 GB, free: 28.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00339/11.64, allocations: 442.9 kB / 3.455 GB, free: 28.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/11.64, allocations: 0.9239 MB / 3.456 GB, free: 27.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003287/11.64, allocations: 173.6 kB / 3.456 GB, free: 27.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005965/11.64, allocations: 89.17 kB / 3.456 GB, free: 27.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/11.64, allocations: 3.844 kB / 3.456 GB, free: 27.5 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004463/11.65, allocations: 1.367 MB / 3.457 GB, free: 27.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/11.65, allocations: 15.05 kB / 3.457 GB, free: 27.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000466/11.65, allocations: 96.61 kB / 3.457 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003643/11.65, allocations: 466.7 kB / 3.458 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003146/11.65, allocations: 1.756 MB / 3.459 GB, free: 26.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/11.66, allocations: 172 kB / 3.46 GB, free: 26.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003365/11.66, allocations: 88.8 kB / 3.46 GB, free: 26.04 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.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 (163): * Single equations (assignments): 162 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0006083/11.66, allocations: 201 kB / 3.46 GB, free: 25.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/11.66, allocations: 127.8 kB / 3.46 GB, free: 25.86 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/11.67, allocations: 6.408 MB / 3.466 GB, free: 25.31 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/11.67, allocations: 83.62 kB / 3.466 GB, free: 25.31 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/11.67, allocations: 0 / 3.466 GB, free: 25.31 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-05/11.67, allocations: 14.95 kB / 3.466 GB, free: 25.31 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005342/11.67, allocations: 2.884 MB / 3.469 GB, free: 24.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-05/11.67, allocations: 4 kB / 3.469 GB, free: 24.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00204/11.68, allocations: 279.6 kB / 3.469 GB, free: 24.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01081/11.69, allocations: 2.257 MB / 3.472 GB, free: 24.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003894/11.69, allocations: 37.28 kB / 3.472 GB, free: 24.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/11.69, allocations: 1.597 MB / 3.473 GB, free: 24.31 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/11.69, allocations: 0 / 3.473 GB, free: 24.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00636/11.7, allocations: 3.41 MB / 3.477 GB, free: 23.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/11.7, allocations: 0.5908 MB / 3.477 GB, free: 23.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004475/11.7, allocations: 28.03 kB / 3.477 GB, free: 23.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/11.7, allocations: 144.6 kB / 3.477 GB, free: 23.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/11.7, allocations: 106.8 kB / 3.477 GB, free: 23.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/11.7, allocations: 49.91 kB / 3.477 GB, free: 23.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001581/11.7, allocations: 0.749 MB / 3.478 GB, free: 23.38 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.324e-06/11.7, allocations: 0 / 3.478 GB, free: 23.38 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01027/11.71, allocations: 1.788 MB / 3.48 GB, free: 23.27 MB / 490.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: 51 ($cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse52.phase,$cse52.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse60.phase,$cse60.region,$cse61.phase,$cse61.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01792/11.73, allocations: 5.493 MB / 3.485 GB, free: 22.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006895/11.74, allocations: 2.68 MB / 3.488 GB, free: 21.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/11.74, allocations: 384 / 3.488 GB, free: 21.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002872/11.74, allocations: 1.503 MB / 3.489 GB, free: 21.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005622/11.75, allocations: 0.5876 MB / 3.49 GB, free: 21.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8911/12.64, allocations: 170.7 MB / 3.657 GB, free: 58.65 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/12.64, allocations: 1.702 MB / 3.658 GB, free: 57.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001852/12.64, allocations: 0.9438 MB / 3.659 GB, free: 57.88 MB / 490.7 MB Notification: Performance of SimCode: time 2.294e-06/12.64, allocations: 2.531 kB / 3.659 GB, free: 57.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.082/16.72, allocations: 64.23 MB / 3.722 GB, free: 19.75 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat