Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.571/2.571, allocations: 235 MB / 247.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.501e-05/4.516e-05, allocations: 0 / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4654/0.4655, allocations: 54.85 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.962/8.427, allocations: 2.607 GB / 2.959 GB, free: 111.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/8.428, allocations: 83.28 kB / 2.959 GB, free: 111.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.483/10.91, allocations: 0.498 GB / 3.457 GB, free: 24.55 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.585e-06/10.91, allocations: 0 / 3.457 GB, free: 24.55 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001067/10.91, allocations: 37.89 kB / 3.457 GB, free: 24.54 MB / 490.7 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.009801/10.92, allocations: 2.053 MB / 3.459 GB, free: 22.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/10.92, allocations: 10.56 kB / 3.459 GB, free: 22.96 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004357/10.92, allocations: 143.6 kB / 3.459 GB, free: 22.81 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008603/10.93, allocations: 0.7223 MB / 3.46 GB, free: 22.1 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/10.93, allocations: 0.8493 MB / 3.461 GB, free: 21.23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/10.93, allocations: 78 kB / 3.461 GB, free: 21.15 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00026/10.93, allocations: 88 kB / 3.461 GB, free: 21.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005912/10.94, allocations: 1.692 MB / 3.462 GB, free: 19.28 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.235e-05/10.94, allocations: 3.938 kB / 3.462 GB, free: 19.28 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/10.94, allocations: 51.98 kB / 3.463 GB, free: 19.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.48e-05/10.94, allocations: 23.7 kB / 3.463 GB, free: 19.21 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00578/10.94, allocations: 1.461 MB / 3.464 GB, free: 17.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/10.96, allocations: 7.373 MB / 3.471 GB, free: 9.902 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004375/10.96, allocations: 1.106 MB / 3.472 GB, free: 8.805 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007616/10.96, allocations: 314.4 kB / 3.473 GB, free: 8.496 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07598/11.04, allocations: 17.72 MB / 3.49 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/11.04, allocations: 43.11 kB / 3.49 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=67): time 3.867e-06/11.04, allocations: 0 / 3.49 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of matching and sorting (n=67): time 0.008383/11.05, allocations: 1.707 MB / 3.492 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001565/11.05, allocations: 226.1 kB / 3.492 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/11.05, allocations: 0.5939 MB / 3.492 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002478/11.05, allocations: 37.7 kB / 3.492 GB, free: 2.598 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005471/11.05, allocations: 0.5437 MB / 3.493 GB, free: 2.051 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003682/11.05, allocations: 236.8 kB / 3.493 GB, free: 1.824 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.421e-05/11.05, allocations: 23.94 kB / 3.493 GB, free: 1.801 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001872/11.05, allocations: 346.8 kB / 3.493 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007888/11.05, allocations: 258.6 kB / 3.494 GB, free: 1.203 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/11.05, allocations: 0.6644 MB / 3.494 GB, free: 348 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4491/11.5, allocations: 348.2 kB / 3.495 GB, free: 53.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.832e-05/11.5, allocations: 4.469 kB / 3.495 GB, free: 53.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003233/11.5, allocations: 0.9209 MB / 3.496 GB, free: 53.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001236/11.5, allocations: 5.056 MB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.441e-05/11.5, allocations: 12.88 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.954e-05/11.51, allocations: 22.88 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/11.51, allocations: 299 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.062e-05/11.51, allocations: 30.72 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/11.51, allocations: 174.1 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002189/11.51, allocations: 62.67 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/11.51, allocations: 7.25 kB / 3.501 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002599/11.51, allocations: 0.8459 MB / 3.502 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/11.51, allocations: 12.75 kB / 3.502 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.853e-05/11.51, allocations: 23.56 kB / 3.502 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/11.51, allocations: 295.7 kB / 3.502 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.913e-05/11.51, allocations: 28.06 kB / 3.502 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/11.52, allocations: 162.5 kB / 3.502 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001991/11.52, allocations: 59.8 kB / 3.503 GB, free: 48.45 MB / 0.4948 GB 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.0004363/11.52, allocations: 181.4 kB / 3.503 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003781/11.52, allocations: 93.55 kB / 3.503 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008593/11.53, allocations: 4.428 MB / 3.507 GB, free: 47.92 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/11.53, allocations: 65.58 kB / 3.507 GB, free: 47.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/11.53, allocations: 0.5625 kB / 3.507 GB, free: 47.92 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.212e-05/11.53, allocations: 5.453 kB / 3.507 GB, free: 47.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004327/11.53, allocations: 2.158 MB / 3.509 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-05/11.53, allocations: 1.062 kB / 3.509 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/11.53, allocations: 228 kB / 3.51 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.248e-05/11.53, allocations: 4.719 kB / 3.51 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/11.53, allocations: 23.28 kB / 3.51 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.977e-06/11.53, allocations: 2.406 kB / 3.51 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/11.53, allocations: 2.016 kB / 3.51 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003919/11.54, allocations: 2.056 MB / 3.512 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/11.54, allocations: 448.9 kB / 3.512 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003576/11.54, allocations: 18.25 kB / 3.512 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/11.54, allocations: 106.7 kB / 3.512 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002731/11.54, allocations: 67.62 kB / 3.512 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/11.54, allocations: 27.38 kB / 3.512 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001246/11.54, allocations: 0.5601 MB / 3.513 GB, free: 46.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.42e-07/11.54, allocations: 0 / 3.513 GB, free: 46.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00886/11.55, allocations: 1.545 MB / 3.514 GB, free: 46.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($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,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.01591/11.57, allocations: 4.289 MB / 3.518 GB, free: 45.87 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004367/11.57, allocations: 1.665 MB / 3.52 GB, free: 45.83 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/11.57, allocations: 1.219 kB / 3.52 GB, free: 45.83 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00182/11.57, allocations: 1.021 MB / 3.521 GB, free: 45.83 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004508/11.58, allocations: 458.6 kB / 3.521 GB, free: 45.82 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3597/11.94, allocations: 125.1 MB / 3.644 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009176/11.94, allocations: 1.429 MB / 3.645 GB, free: 20.01 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/11.94, allocations: 0.6716 MB / 3.646 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/11.94, allocations: 1.969 kB / 3.646 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.513/16.45, allocations: 46.48 MB / 3.691 GB, free: 66.4 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat