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.052/2.052, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.415e-05/4.426e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1269, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.854/7.981, allocations: 2.497 GB / 2.811 GB, free: 65.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/7.981, allocations: 83.89 kB / 2.811 GB, free: 65.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.633/10.61, allocations: 499.1 MB / 3.298 GB, free: 37.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/10.61, allocations: 0 / 3.298 GB, free: 37.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001071/10.61, allocations: 32.45 kB / 3.298 GB, free: 37.29 MB / 442.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.009243/10.62, allocations: 2.002 MB / 3.3 GB, free: 36.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/10.62, allocations: 7.719 kB / 3.3 GB, free: 36.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004616/10.62, allocations: 135.3 kB / 3.301 GB, free: 36.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00826/10.63, allocations: 0.6853 MB / 3.301 GB, free: 35.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002675/10.63, allocations: 0.8443 MB / 3.302 GB, free: 35.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/10.63, allocations: 80.25 kB / 3.302 GB, free: 35.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/10.64, allocations: 86.69 kB / 3.302 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005831/10.64, allocations: 1.707 MB / 3.304 GB, free: 34.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.549e-05/10.64, allocations: 3.938 kB / 3.304 GB, free: 34.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001968/10.64, allocations: 47.17 kB / 3.304 GB, free: 34.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/10.64, allocations: 22.25 kB / 3.304 GB, free: 34.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005619/10.65, allocations: 1.49 MB / 3.305 GB, free: 34.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/10.66, allocations: 7.37 MB / 3.313 GB, free: 28.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004431/10.66, allocations: 1.123 MB / 3.314 GB, free: 27.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007771/10.66, allocations: 309 kB / 3.314 GB, free: 27.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07017/10.73, allocations: 17.69 MB / 3.331 GB, free: 18.38 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/10.73, allocations: 42.78 kB / 3.331 GB, free: 18.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=67): time 3.566e-06/10.73, allocations: 0 / 3.331 GB, free: 18.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=67): time 0.00727/10.74, allocations: 1.709 MB / 3.333 GB, free: 17.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/10.74, allocations: 221.8 kB / 3.333 GB, free: 17.62 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/10.74, allocations: 0.5941 MB / 3.334 GB, free: 17.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.109e-05/10.74, allocations: 35.95 kB / 3.334 GB, free: 17.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/10.74, allocations: 0.5462 MB / 3.334 GB, free: 16.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002325/10.74, allocations: 231.4 kB / 3.335 GB, free: 16.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/10.74, allocations: 18.81 kB / 3.335 GB, free: 16.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/10.74, allocations: 351.9 kB / 3.335 GB, free: 16.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/10.74, allocations: 251.9 kB / 3.335 GB, free: 16.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008929/10.75, allocations: 0.6689 MB / 3.336 GB, free: 15.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007952/10.75, allocations: 363.2 kB / 3.336 GB, free: 15.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/10.75, allocations: 3.625 kB / 3.336 GB, free: 15.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002339/10.75, allocations: 0.9553 MB / 3.337 GB, free: 15.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00106/10.75, allocations: 5.055 MB / 3.342 GB, free: 9.652 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/10.75, allocations: 16.16 kB / 3.342 GB, free: 9.652 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.175e-05/10.75, allocations: 19.62 kB / 3.342 GB, free: 9.652 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/10.75, allocations: 299.7 kB / 3.342 GB, free: 9.617 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.835e-05/10.75, allocations: 30.52 kB / 3.342 GB, free: 9.609 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/10.75, allocations: 185.5 kB / 3.343 GB, free: 9.527 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000191/10.75, allocations: 59.39 kB / 3.343 GB, free: 9.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/10.75, allocations: 3.969 kB / 3.343 GB, free: 9.52 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002218/10.76, allocations: 0.8808 MB / 3.343 GB, free: 9.184 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/10.76, allocations: 15.59 kB / 3.344 GB, free: 9.184 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/10.76, allocations: 24.09 kB / 3.344 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/10.76, allocations: 296.3 kB / 3.344 GB, free: 9.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.141e-05/10.76, allocations: 33.95 kB / 3.344 GB, free: 9.133 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/10.76, allocations: 159 kB / 3.344 GB, free: 9.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/10.76, allocations: 65.06 kB / 3.344 GB, free: 9.055 MB / 442.7 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.0003401/10.76, allocations: 184.7 kB / 3.344 GB, free: 8.891 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002817/10.76, allocations: 91.09 kB / 3.344 GB, free: 8.844 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006567/10.77, allocations: 4.434 MB / 3.349 GB, free: 6.742 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.959e-05/10.77, allocations: 57.67 kB / 3.349 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/10.77, allocations: 3.312 kB / 3.349 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/10.77, allocations: 9.344 kB / 3.349 GB, free: 6.723 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/10.77, allocations: 2.157 MB / 3.351 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/10.77, allocations: 0 / 3.351 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/10.77, allocations: 227.3 kB / 3.351 GB, free: 5.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/10.77, allocations: 3.938 kB / 3.351 GB, free: 5.617 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.083e-05/10.77, allocations: 22.81 kB / 3.351 GB, free: 5.605 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/10.77, allocations: 3.875 kB / 3.351 GB, free: 5.605 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/10.77, allocations: 0 / 3.351 GB, free: 5.605 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/10.78, allocations: 2.048 MB / 3.353 GB, free: 3.758 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008694/10.78, allocations: 452.2 kB / 3.354 GB, free: 3.352 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/10.78, allocations: 20 kB / 3.354 GB, free: 3.332 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/10.78, allocations: 103.1 kB / 3.354 GB, free: 3.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/10.78, allocations: 65.91 kB / 3.354 GB, free: 3.211 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/10.78, allocations: 31.66 kB / 3.354 GB, free: 3.184 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001008/10.78, allocations: 0.5581 MB / 3.354 GB, free: 2.664 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.52e-07/10.78, allocations: 0 / 3.354 GB, free: 2.664 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00742/10.79, allocations: 1.542 MB / 3.356 GB, free: 1.148 MB / 442.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: 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.01461/10.8, allocations: 4.281 MB / 3.36 GB, free: 13.41 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004336/10.81, allocations: 1.704 MB / 3.362 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/10.81, allocations: 2 kB / 3.362 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/10.81, allocations: 1.023 MB / 3.363 GB, free: 10.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004289/10.81, allocations: 457.8 kB / 3.363 GB, free: 10.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7135/11.53, allocations: 122.9 MB / 3.483 GB, free: 38.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/11.53, allocations: 1.425 MB / 3.485 GB, free: 37.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/11.53, allocations: 0.6669 MB / 3.485 GB, free: 37.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.463e-06/11.53, allocations: 0 / 3.485 GB, free: 37.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.994/15.52, allocations: 46.28 MB / 3.53 GB, free: 5.934 MB / 458.7 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