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.938/1.938, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.157e-05/4.176e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.831/7.94, allocations: 2.497 GB / 2.811 GB, free: 69.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003679/7.94, allocations: 81.83 kB / 2.811 GB, free: 69.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015/10.95, allocations: 0.5609 GB / 3.372 GB, free: 12.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.126e-06/10.95, allocations: 0 / 3.372 GB, free: 12.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002127/10.96, allocations: 39.52 kB / 3.372 GB, free: 12 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.01565/10.97, allocations: 2.464 MB / 3.375 GB, free: 9.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/10.97, allocations: 8.031 kB / 3.375 GB, free: 9.512 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007116/10.97, allocations: 177 kB / 3.375 GB, free: 9.328 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/10.98, allocations: 0.8122 MB / 3.376 GB, free: 8.523 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004045/10.99, allocations: 1.071 MB / 3.377 GB, free: 7.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/10.99, allocations: 101.7 kB / 3.377 GB, free: 7.332 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004642/10.99, allocations: 116 kB / 3.377 GB, free: 7.219 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008485/11, allocations: 2.158 MB / 3.379 GB, free: 4.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/11, allocations: 7.875 kB / 3.379 GB, free: 4.922 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000291/11, allocations: 52 kB / 3.379 GB, free: 4.871 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/11, allocations: 28 kB / 3.379 GB, free: 4.844 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008486/11, allocations: 1.967 MB / 3.381 GB, free: 2.879 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3908/11.4, allocations: 8.87 MB / 3.39 GB, free: 33.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007691/11.4, allocations: 1.74 MB / 3.391 GB, free: 33.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00164/11.4, allocations: 0.4928 MB / 3.392 GB, free: 33.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1778/11.58, allocations: 49.44 MB / 3.44 GB, free: 20.35 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.155e-05/11.58, allocations: 45.47 kB / 3.44 GB, free: 20.31 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001501/11.58, allocations: 143.2 kB / 3.44 GB, free: 20.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 7.023e-06/11.58, allocations: 3.656 kB / 3.44 GB, free: 20.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=106): time 0.0111/11.6, allocations: 2.379 MB / 3.443 GB, free: 20.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/11.6, allocations: 195.5 kB / 3.443 GB, free: 19.95 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/11.6, allocations: 0.7739 MB / 3.444 GB, free: 19.79 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004785/11.6, allocations: 46.05 kB / 3.444 GB, free: 19.75 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007033/11.6, allocations: 0.6131 MB / 3.444 GB, free: 19.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007046/11.6, allocations: 371.5 kB / 3.445 GB, free: 19.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/11.6, allocations: 35.69 kB / 3.445 GB, free: 19.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002515/11.6, allocations: 369 kB / 3.445 GB, free: 18.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/11.6, allocations: 441.1 kB / 3.445 GB, free: 18.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/11.6, allocations: 0.8696 MB / 3.446 GB, free: 18.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/11.6, allocations: 0.5449 MB / 3.447 GB, free: 18.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.693e-05/11.61, allocations: 6.406 kB / 3.447 GB, free: 18.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.00456/11.61, allocations: 1.557 MB / 3.448 GB, free: 18.32 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002625/11.61, allocations: 4.978 MB / 3.453 GB, free: 29.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.642e-05/11.61, allocations: 13.94 kB / 3.453 GB, free: 29.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01182/11.62, allocations: 1.087 MB / 3.454 GB, free: 29.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003268/11.63, allocations: 442.2 kB / 3.455 GB, free: 29.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/11.63, allocations: 0.9282 MB / 3.456 GB, free: 28.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002938/11.63, allocations: 169.6 kB / 3.456 GB, free: 28.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002792/11.63, allocations: 91.08 kB / 3.456 GB, free: 28.51 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/11.63, allocations: 3.906 kB / 3.456 GB, free: 28.51 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004428/11.64, allocations: 1.403 MB / 3.457 GB, free: 28.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/11.64, allocations: 16.48 kB / 3.457 GB, free: 28.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004443/11.64, allocations: 90.97 kB / 3.457 GB, free: 28.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003426/11.64, allocations: 477.2 kB / 3.458 GB, free: 28.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002889/11.64, allocations: 1.744 MB / 3.459 GB, free: 27.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002397/11.65, allocations: 174.7 kB / 3.46 GB, free: 27.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002426/11.65, allocations: 89.69 kB / 3.46 GB, free: 27.05 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.0005576/11.65, allocations: 206.2 kB / 3.46 GB, free: 26.94 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004281/11.65, allocations: 124.2 kB / 3.46 GB, free: 26.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/11.66, allocations: 6.405 MB / 3.466 GB, free: 26.33 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.882e-05/11.66, allocations: 88.47 kB / 3.466 GB, free: 26.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/11.66, allocations: 0 / 3.466 GB, free: 26.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.622e-05/11.66, allocations: 11.06 kB / 3.466 GB, free: 26.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004987/11.66, allocations: 2.895 MB / 3.469 GB, free: 25.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.577e-05/11.66, allocations: 0 / 3.469 GB, free: 25.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00196/11.67, allocations: 282 kB / 3.469 GB, free: 25.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01035/11.68, allocations: 2.254 MB / 3.472 GB, free: 25.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003535/11.68, allocations: 41.22 kB / 3.472 GB, free: 25.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002497/11.68, allocations: 1.591 MB / 3.473 GB, free: 25.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/11.68, allocations: 1.031 kB / 3.473 GB, free: 25.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005997/11.69, allocations: 3.411 MB / 3.477 GB, free: 24.85 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/11.69, allocations: 0.5934 MB / 3.477 GB, free: 24.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004186/11.69, allocations: 26.78 kB / 3.477 GB, free: 24.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/11.69, allocations: 139.3 kB / 3.477 GB, free: 24.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/11.69, allocations: 109 kB / 3.477 GB, free: 24.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/11.69, allocations: 53.72 kB / 3.478 GB, free: 24.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001477/11.69, allocations: 0.7428 MB / 3.478 GB, free: 24.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.91e-07/11.69, allocations: 4 kB / 3.478 GB, free: 24.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009239/11.7, allocations: 1.795 MB / 3.48 GB, free: 24.29 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.01727/11.72, allocations: 5.473 MB / 3.485 GB, free: 23.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007142/11.72, allocations: 2.742 MB / 3.488 GB, free: 22.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/11.72, allocations: 0 / 3.488 GB, free: 22.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002988/11.73, allocations: 1.511 MB / 3.489 GB, free: 22.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005561/11.73, allocations: 0.5856 MB / 3.49 GB, free: 22.88 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8934/12.63, allocations: 170.5 MB / 3.657 GB, free: 59.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/12.63, allocations: 1.702 MB / 3.658 GB, free: 58.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002489/12.63, allocations: 0.9421 MB / 3.659 GB, free: 58.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.433e-06/12.63, allocations: 0 / 3.659 GB, free: 58.66 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.202/16.83, allocations: 64.13 MB / 3.722 GB, free: 21.58 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