Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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.431/2.431, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1915/2.623, allocations: 57.21 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/2.92, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.247/10.17, allocations: 2.607 GB / 2.953 GB, free: 87.38 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/10.17, allocations: 84.02 kB / 2.953 GB, free: 87.33 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.623/13.79, allocations: 0.6302 GB / 3.583 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/13.79, allocations: 8 kB / 3.583 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01507/13.8, allocations: 1.018 MB / 3.584 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00423/13.81, allocations: 1.069 MB / 3.585 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/13.81, allocations: 56 kB / 3.585 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002887/13.81, allocations: 71.91 kB / 3.585 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004463/13.81, allocations: 1.207 MB / 3.586 GB, free: 9.527 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004392/13.82, allocations: 1.42 MB / 3.588 GB, free: 7.953 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.76e-05/13.82, allocations: 3.938 kB / 3.588 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002535/13.82, allocations: 11.38 kB / 3.588 GB, free: 7.941 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.275e-05/13.82, allocations: 28 kB / 3.588 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 2.048/15.87, allocations: 267.2 MB / 3.849 GB, free: 79.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/15.87, allocations: 356.3 kB / 3.849 GB, free: 79.83 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006309/15.87, allocations: 234.4 kB / 3.849 GB, free: 79.82 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08224/15.95, allocations: 15.76 MB / 3.865 GB, free: 71.46 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/15.95, allocations: 36.31 kB / 3.865 GB, free: 71.42 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=48): time 3.957e-06/15.95, allocations: 2.844 kB / 3.865 GB, free: 71.42 MB / 0.5417 GB Notification: Performance of matching and sorting (n=48): time 0.01366/15.96, allocations: 1.526 MB / 3.866 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/15.96, allocations: 263 kB / 3.866 GB, free: 71.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/15.97, allocations: 0.887 MB / 3.867 GB, free: 70.92 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002123/15.97, allocations: 33.19 kB / 3.867 GB, free: 70.89 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008078/15.97, allocations: 0.6543 MB / 3.868 GB, free: 70.54 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004128/15.97, allocations: 178.3 kB / 3.868 GB, free: 70.46 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/15.97, allocations: 0 / 3.868 GB, free: 70.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001874/15.97, allocations: 357.7 kB / 3.868 GB, free: 70.16 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/15.97, allocations: 365.1 kB / 3.869 GB, free: 70.15 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/15.97, allocations: 0.9418 MB / 3.87 GB, free: 69.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006439/15.98, allocations: 0.8234 MB / 3.87 GB, free: 69.37 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-05/15.98, allocations: 11.06 kB / 3.87 GB, free: 69.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.01901/16, allocations: 2.621 MB / 3.873 GB, free: 69.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002537/16, allocations: 7.308 MB / 3.88 GB, free: 61.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/16, allocations: 23.78 kB / 3.88 GB, free: 61.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.512e-05/16, allocations: 28.73 kB / 3.88 GB, free: 61.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004252/16.01, allocations: 412.3 kB / 3.881 GB, free: 61.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.958e-05/16.01, allocations: 42.94 kB / 3.881 GB, free: 61.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005858/16.01, allocations: 360.1 kB / 3.881 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006686/16.01, allocations: 89.2 kB / 3.881 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/16.01, allocations: 3.312 kB / 3.881 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0139/16.03, allocations: 1.376 MB / 3.882 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.497e-05/16.03, allocations: 23.53 kB / 3.882 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.066e-05/16.03, allocations: 33.72 kB / 3.883 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002905/16.03, allocations: 404.2 kB / 3.883 GB, free: 61.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.195e-05/16.03, allocations: 37.14 kB / 3.883 GB, free: 61.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003681/16.03, allocations: 238.6 kB / 3.883 GB, free: 61.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005578/16.03, allocations: 87.17 kB / 3.883 GB, free: 61.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP4.medium.phase,SinkP4.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP1.medium.phase,SinkP1.medium.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 (167): * Single equations (assignments): 167 * 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.0004889/16.04, allocations: 161.9 kB / 3.883 GB, free: 61.32 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003512/16.04, allocations: 0.7176 MB / 3.884 GB, free: 61.26 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005891/16.04, allocations: 1.861 MB / 3.886 GB, free: 60.89 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/16.04, allocations: 6.688 kB / 3.886 GB, free: 60.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/16.04, allocations: 0 / 3.886 GB, free: 60.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/16.04, allocations: 11.47 kB / 3.886 GB, free: 60.88 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/16.06, allocations: 4.508 MB / 3.89 GB, free: 60.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/16.06, allocations: 7.875 kB / 3.89 GB, free: 60.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000642/16.06, allocations: 85.58 kB / 3.89 GB, free: 60.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.008e-05/16.06, allocations: 11.22 kB / 3.89 GB, free: 60.01 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/16.06, allocations: 15.28 kB / 3.89 GB, free: 60.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.54e-05/16.06, allocations: 15.91 kB / 3.89 GB, free: 60.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/16.06, allocations: 12.91 kB / 3.89 GB, free: 60.01 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006399/16.06, allocations: 2.061 MB / 3.892 GB, free: 58.8 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006173/16.07, allocations: 2.445 MB / 3.895 GB, free: 57.23 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001965/16.07, allocations: 0.696 MB / 3.896 GB, free: 57.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008461/16.07, allocations: 7.281 kB / 3.896 GB, free: 57.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002128/16.07, allocations: 91.53 kB / 3.896 GB, free: 57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.75e-05/16.07, allocations: 50.22 kB / 3.896 GB, free: 56.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.254e-05/16.07, allocations: 26.28 kB / 3.896 GB, free: 56.99 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.003636/16.08, allocations: 1.49 MB / 3.897 GB, free: 56.85 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01521/16.09, allocations: 2.125 MB / 3.899 GB, free: 56.72 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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.01292/16.11, allocations: 2.201 MB / 3.901 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004259/16.11, allocations: 1.502 MB / 3.903 GB, free: 56.38 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/16.11, allocations: 6.375 kB / 3.903 GB, free: 56.37 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006166/16.11, allocations: 254.3 kB / 3.903 GB, free: 56.37 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005009/16.12, allocations: 452.4 kB / 3.904 GB, free: 56.34 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09299/16.21, allocations: 23 MB / 3.926 GB, free: 54.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001812/16.21, allocations: 1.516 MB / 3.927 GB, free: 53.93 MB / 0.5417 GB Notification: Performance of SimCode: time 1.934e-06/16.21, allocations: 0 / 3.927 GB, free: 53.93 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat