Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.728/2.728, allocations: 235.1 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1951/2.923, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/3.225, allocations: 54.85 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.108/10.33, allocations: 2.607 GB / 2.953 GB, free: 85.62 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005135/10.33, allocations: 83.02 kB / 2.953 GB, free: 85.58 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 3.985/14.32, allocations: 0.6305 GB / 3.584 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/14.32, allocations: 11.98 kB / 3.584 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01556/14.33, allocations: 1.021 MB / 3.585 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004772/14.34, allocations: 1.057 MB / 3.586 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002421/14.34, allocations: 52 kB / 3.586 GB, free: 8.672 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005546/14.34, allocations: 68 kB / 3.586 GB, free: 8.605 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005672/14.35, allocations: 1.211 MB / 3.587 GB, free: 7.391 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00675/14.35, allocations: 1.427 MB / 3.588 GB, free: 5.812 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.401e-05/14.35, allocations: 3.938 kB / 3.588 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003224/14.35, allocations: 8 kB / 3.588 GB, free: 5.801 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.821e-05/14.35, allocations: 35.12 kB / 3.588 GB, free: 5.77 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 2.166/16.52, allocations: 267 MB / 3.849 GB, free: 78.94 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002505/16.52, allocations: 0.5363 MB / 3.85 GB, free: 78.91 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/16.52, allocations: 263.9 kB / 3.85 GB, free: 78.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1325/16.66, allocations: 20.35 MB / 3.87 GB, free: 66.78 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.059e-05/16.66, allocations: 44.08 kB / 3.87 GB, free: 66.74 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=23): time 6.272e-06/16.66, allocations: 3.5 kB / 3.87 GB, free: 66.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=23): time 0.01445/16.67, allocations: 1.263 MB / 3.871 GB, free: 66.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/16.67, allocations: 264.7 kB / 3.871 GB, free: 66.35 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00425/16.67, allocations: 1.057 MB / 3.872 GB, free: 66.19 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000165/16.68, allocations: 25.7 kB / 3.872 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009638/16.68, allocations: 0.7366 MB / 3.873 GB, free: 65.78 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/16.68, allocations: 95.45 kB / 3.873 GB, free: 65.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/16.68, allocations: 4 kB / 3.873 GB, free: 65.73 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000215/16.68, allocations: 356.9 kB / 3.874 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/16.68, allocations: 364.8 kB / 3.874 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00257/16.68, allocations: 0.9183 MB / 3.875 GB, free: 64.73 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/16.69, allocations: 0.817 MB / 3.876 GB, free: 64.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.775e-05/16.69, allocations: 6.812 kB / 3.876 GB, free: 64.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.0273/16.72, allocations: 2.774 MB / 3.878 GB, free: 64.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002239/16.72, allocations: 6.876 MB / 3.885 GB, free: 57.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.507e-05/16.72, allocations: 17.38 kB / 3.885 GB, free: 57.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.193e-05/16.72, allocations: 32.59 kB / 3.885 GB, free: 57.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004874/16.73, allocations: 400 kB / 3.885 GB, free: 57.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.449e-05/16.73, allocations: 35.48 kB / 3.885 GB, free: 57.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006976/16.73, allocations: 367.2 kB / 3.886 GB, free: 57.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005396/16.74, allocations: 88.33 kB / 3.886 GB, free: 57.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/16.74, allocations: 3.969 kB / 3.886 GB, free: 57.28 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01278/16.75, allocations: 1.375 MB / 3.887 GB, free: 57.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.664e-05/16.75, allocations: 18.97 kB / 3.887 GB, free: 57.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.447e-05/16.75, allocations: 30.81 kB / 3.887 GB, free: 57.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00459/16.75, allocations: 397.5 kB / 3.888 GB, free: 57.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.18e-05/16.75, allocations: 39.05 kB / 3.888 GB, free: 57.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005081/16.76, allocations: 233.5 kB / 3.888 GB, free: 57.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005334/16.76, allocations: 85.06 kB / 3.888 GB, free: 57.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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.0006343/16.76, allocations: 165.4 kB / 3.888 GB, free: 57.09 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006398/16.77, allocations: 0.719 MB / 3.889 GB, free: 57.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0058/16.77, allocations: 0.9348 MB / 3.89 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/16.77, allocations: 5.891 kB / 3.89 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/16.77, allocations: 0 / 3.89 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/16.77, allocations: 1.312 kB / 3.89 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006984/16.78, allocations: 1.591 MB / 3.891 GB, free: 56.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/16.78, allocations: 0 / 3.891 GB, free: 56.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008694/16.78, allocations: 66.81 kB / 3.891 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/16.78, allocations: 0 / 3.891 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.641e-05/16.78, allocations: 6.312 kB / 3.891 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/16.78, allocations: 3.562 kB / 3.891 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/16.78, allocations: 0 / 3.891 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008728/16.79, allocations: 1.145 MB / 3.893 GB, free: 56.27 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008946/16.8, allocations: 1.565 MB / 3.894 GB, free: 55.64 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/16.8, allocations: 0.5069 MB / 3.895 GB, free: 55.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/16.8, allocations: 5.969 kB / 3.895 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003155/16.8, allocations: 89.34 kB / 3.895 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/16.8, allocations: 10.14 kB / 3.895 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.995e-05/16.8, allocations: 18.44 kB / 3.895 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.00463/16.81, allocations: 1.124 MB / 3.896 GB, free: 55.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02075/16.83, allocations: 2.077 MB / 3.898 GB, free: 55.23 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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.01908/16.85, allocations: 2.179 MB / 3.9 GB, free: 54.91 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006569/16.86, allocations: 1.365 MB / 3.901 GB, free: 54.89 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/16.86, allocations: 1.812 kB / 3.901 GB, free: 54.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004785/16.86, allocations: 86.14 kB / 3.901 GB, free: 54.89 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006889/16.86, allocations: 367.3 kB / 3.902 GB, free: 54.88 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1579/17.02, allocations: 22.49 MB / 3.924 GB, free: 53.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002742/17.02, allocations: 1.406 MB / 3.925 GB, free: 52.75 MB / 0.5417 GB Notification: Performance of SimCode: time 2.515e-06/17.02, allocations: 2.906 kB / 3.925 GB, free: 52.75 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat