Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",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.732/2.732, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1947/2.927, allocations: 57.21 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/3.235, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.989/4.224, allocations: 345.5 MB / 0.6831 GB, free: 96.29 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/4.224, allocations: 88.03 kB / 0.6832 GB, free: 96.25 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 1.92/6.144, allocations: 304.3 MB / 0.9804 GB, free: 55.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.048e-05/6.144, allocations: 7.281 kB / 0.9804 GB, free: 55.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002611/6.147, allocations: 201.8 kB / 0.9806 GB, free: 55.61 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008831/6.156, allocations: 1.276 MB / 0.9818 GB, free: 55.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003821/6.156, allocations: 146.5 kB / 0.982 GB, free: 55.21 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001015/6.157, allocations: 69.53 kB / 0.982 GB, free: 55.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009069/6.166, allocations: 1.786 MB / 0.9838 GB, free: 55.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009557/6.176, allocations: 1.792 MB / 0.9855 GB, free: 54.97 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.141e-05/6.176, allocations: 3.969 kB / 0.9855 GB, free: 54.97 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005366/6.177, allocations: 4.594 kB / 0.9855 GB, free: 54.97 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003163/6.177, allocations: 122 kB / 0.9857 GB, free: 54.97 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03756/6.215, allocations: 6.813 MB / 0.9923 GB, free: 52.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004629/6.219, allocations: 1.029 MB / 0.9933 GB, free: 52.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003305/6.223, allocations: 0.7812 MB / 0.9941 GB, free: 52.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01714/6.24, allocations: 4.414 MB / 0.9984 GB, free: 50.47 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.354e-05/6.24, allocations: 54 kB / 0.9984 GB, free: 50.43 MB / 474.7 MB Notification: Performance of pre-optimization done (n=117): time 6.852e-06/6.24, allocations: 0 / 0.9984 GB, free: 50.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=132): time 0.0514/6.292, allocations: 5.202 MB / 1.004 GB, free: 49.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/6.292, allocations: 223.9 kB / 1.004 GB, free: 49.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/6.295, allocations: 0.908 MB / 1.005 GB, free: 49.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006938/6.296, allocations: 25.7 kB / 1.005 GB, free: 49.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/6.297, allocations: 495.1 kB / 1.005 GB, free: 49.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/6.298, allocations: 439.6 kB / 1.006 GB, free: 48.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003549/6.298, allocations: 3.281 kB / 1.006 GB, free: 48.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002348/6.299, allocations: 367.7 kB / 1.006 GB, free: 48.49 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/6.303, allocations: 0.7449 MB / 1.007 GB, free: 48.49 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004281/6.307, allocations: 1.056 MB / 1.008 GB, free: 48.16 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04061/6.348, allocations: 2.705 MB / 1.01 GB, free: 48.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.502e-05/6.348, allocations: 6.938 kB / 1.01 GB, free: 48.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.04704/6.395, allocations: 4.171 MB / 1.014 GB, free: 48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007685/6.396, allocations: 2.97 MB / 1.017 GB, free: 44.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.522e-05/6.396, allocations: 7.562 kB / 1.017 GB, free: 44.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01337/6.409, allocations: 1.181 MB / 1.018 GB, free: 44.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003394/6.412, allocations: 329.8 kB / 1.019 GB, free: 44.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009946/6.422, allocations: 2.203 MB / 1.021 GB, free: 44.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00348/6.426, allocations: 73.41 kB / 1.021 GB, free: 44.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000624/6.427, allocations: 76.03 kB / 1.021 GB, free: 44.35 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/6.427, allocations: 3.594 kB / 1.021 GB, free: 44.35 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02676/6.453, allocations: 3.425 MB / 1.024 GB, free: 44.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.619e-05/6.453, allocations: 7.281 kB / 1.024 GB, free: 44.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/6.466, allocations: 0.9282 MB / 1.025 GB, free: 44.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003491/6.469, allocations: 354.1 kB / 1.026 GB, free: 44.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003859/6.473, allocations: 1.391 MB / 1.027 GB, free: 43.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/6.476, allocations: 67.44 kB / 1.027 GB, free: 43.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005661/6.477, allocations: 76.45 kB / 1.027 GB, free: 43.75 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007418/6.478, allocations: 134.8 kB / 1.027 GB, free: 43.64 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006413/6.478, allocations: 153.7 kB / 1.027 GB, free: 43.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0155/6.494, allocations: 2.838 MB / 1.03 GB, free: 43.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.73e-05/6.494, allocations: 14.44 kB / 1.03 GB, free: 43.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/6.494, allocations: 1.875 kB / 1.03 GB, free: 43.45 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-05/6.494, allocations: 7.172 kB / 1.03 GB, free: 43.45 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/6.512, allocations: 4.172 MB / 1.034 GB, free: 43.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/6.512, allocations: 3.812 kB / 1.034 GB, free: 43.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/6.515, allocations: 232.4 kB / 1.035 GB, free: 43.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006637/6.521, allocations: 0.9375 MB / 1.035 GB, free: 43.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004821/6.522, allocations: 21.06 kB / 1.035 GB, free: 43.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008689/6.53, allocations: 2.189 MB / 1.038 GB, free: 42.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/6.531, allocations: 3.844 kB / 1.038 GB, free: 42.55 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01501/6.546, allocations: 3.578 MB / 1.041 GB, free: 42.29 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01808/6.564, allocations: 5.121 MB / 1.046 GB, free: 41.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001902/6.566, allocations: 435.4 kB / 1.046 GB, free: 41.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007539/6.566, allocations: 3.875 kB / 1.046 GB, free: 41.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003146/6.57, allocations: 88 kB / 1.047 GB, free: 41.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005818/6.57, allocations: 109.5 kB / 1.047 GB, free: 41.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/6.571, allocations: 56.86 kB / 1.047 GB, free: 41.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00179/6.572, allocations: 0.6684 MB / 1.047 GB, free: 41.35 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01115/6.584, allocations: 1.576 MB / 1.049 GB, free: 41.11 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.005461/6.589, allocations: 1.206 MB / 1.05 GB, free: 40.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01257/6.602, allocations: 3.01 MB / 1.053 GB, free: 40.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/6.602, allocations: 0 / 1.053 GB, free: 40.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004471/6.606, allocations: 0.9849 MB / 1.054 GB, free: 40.63 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00698/6.613, allocations: 0.5853 MB / 1.055 GB, free: 40.62 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/6.628, allocations: 2.841 MB / 1.057 GB, free: 40.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002813/6.631, allocations: 1.625 MB / 1.059 GB, free: 39.36 MB / 474.7 MB Notification: Performance of SimCode: time 1.923e-06/6.631, allocations: 0 / 1.059 GB, free: 39.36 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat