Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",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.793/2.793, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2012/2.995, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/3.309, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.387/10.7, allocations: 2.595 GB / 2.941 GB, free: 100.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/10.7, allocations: 90.83 kB / 2.941 GB, free: 100.3 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 2.065/12.76, allocations: 353.5 MB / 3.286 GB, free: 54.05 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/12.76, allocations: 7.156 kB / 3.286 GB, free: 54.05 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006769/12.77, allocations: 478.9 kB / 3.287 GB, free: 54.01 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/12.77, allocations: 0.5736 MB / 3.287 GB, free: 53.75 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/12.77, allocations: 97.22 kB / 3.287 GB, free: 53.69 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001976/12.77, allocations: 33.25 kB / 3.287 GB, free: 53.69 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002579/12.77, allocations: 0.7479 MB / 3.288 GB, free: 53.69 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002684/12.78, allocations: 0.8377 MB / 3.289 GB, free: 53.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/12.78, allocations: 5.922 kB / 3.289 GB, free: 53.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/12.78, allocations: 3.938 kB / 3.289 GB, free: 53.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.791e-05/12.78, allocations: 38.2 kB / 3.289 GB, free: 53.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1809/12.96, allocations: 37.22 MB / 3.325 GB, free: 34.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/12.96, allocations: 389.3 kB / 3.326 GB, free: 34.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008012/12.96, allocations: 267.8 kB / 3.326 GB, free: 34.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1374/13.1, allocations: 31.54 MB / 3.357 GB, free: 30.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.802e-05/13.1, allocations: 36.56 kB / 3.357 GB, free: 30.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 3.778e-06/13.1, allocations: 1.188 kB / 3.357 GB, free: 30.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=54): time 0.03986/13.14, allocations: 3.41 MB / 3.36 GB, free: 29.26 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.207e-05/13.14, allocations: 111.2 kB / 3.36 GB, free: 29.12 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008993/13.14, allocations: 413.9 kB / 3.361 GB, free: 28.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001592/13.14, allocations: 25.7 kB / 3.361 GB, free: 28.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/13.14, allocations: 314.7 kB / 3.361 GB, free: 28.55 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/13.14, allocations: 183.1 kB / 3.361 GB, free: 28.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/13.14, allocations: 4 kB / 3.361 GB, free: 28.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002225/13.14, allocations: 363.9 kB / 3.362 GB, free: 28.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/13.14, allocations: 443.7 kB / 3.362 GB, free: 27.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/13.14, allocations: 0.6499 MB / 3.363 GB, free: 27.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00452/13.15, allocations: 0.7519 MB / 3.363 GB, free: 26.93 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/13.15, allocations: 0 / 3.363 GB, free: 26.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.009764/13.16, allocations: 2.018 MB / 3.365 GB, free: 25.37 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001122/13.16, allocations: 2.701 MB / 3.368 GB, free: 22.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.312e-05/13.16, allocations: 11.84 kB / 3.368 GB, free: 22.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003666/13.16, allocations: 1.089 MB / 3.369 GB, free: 21.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/13.16, allocations: 151.8 kB / 3.369 GB, free: 21.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00902/13.17, allocations: 3.097 MB / 3.372 GB, free: 18.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002372/13.17, allocations: 94.11 kB / 3.372 GB, free: 18.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/13.17, allocations: 51.64 kB / 3.372 GB, free: 18.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/13.17, allocations: 4 kB / 3.372 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00567/13.18, allocations: 1.078 MB / 3.373 GB, free: 17.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/13.18, allocations: 8 kB / 3.373 GB, free: 17.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009528/13.18, allocations: 256.5 kB / 3.374 GB, free: 17.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/13.18, allocations: 198.1 kB / 3.374 GB, free: 17.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00547/13.19, allocations: 4.057 MB / 3.378 GB, free: 13.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/13.19, allocations: 67.8 kB / 3.378 GB, free: 13.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/13.19, allocations: 43.33 kB / 3.378 GB, free: 13.04 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.Volume.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real $DER.Volume.medium.p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 70 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 7,2 1,3 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005134/13.19, allocations: 127 kB / 3.378 GB, free: 12.92 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/13.19, allocations: 306.7 kB / 3.378 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/13.2, allocations: 3.847 MB / 3.382 GB, free: 9.332 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-05/13.2, allocations: 31.11 kB / 3.382 GB, free: 9.312 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/13.2, allocations: 4 kB / 3.382 GB, free: 9.309 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/13.2, allocations: 3.797 kB / 3.382 GB, free: 9.309 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/13.22, allocations: 5.467 MB / 3.387 GB, free: 4.586 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/13.22, allocations: 0 / 3.387 GB, free: 4.586 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006289/13.22, allocations: 67.47 kB / 3.388 GB, free: 4.531 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005212/13.22, allocations: 1.939 MB / 3.389 GB, free: 2.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/13.22, allocations: 11.89 kB / 3.389 GB, free: 2.973 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/13.23, allocations: 4.123 MB / 3.393 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/13.23, allocations: 4.125 kB / 3.393 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01062/13.24, allocations: 3.231 MB / 3.397 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01232/13.26, allocations: 3.685 MB / 3.4 GB, free: 8.949 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/13.26, allocations: 311.6 kB / 3.401 GB, free: 8.668 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/13.26, allocations: 0 / 3.401 GB, free: 8.668 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/13.26, allocations: 71.23 kB / 3.401 GB, free: 8.613 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/13.26, allocations: 66.8 kB / 3.401 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/13.26, allocations: 27.23 kB / 3.401 GB, free: 8.555 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0008605/13.26, allocations: 366.3 kB / 3.401 GB, free: 8.23 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01219/13.27, allocations: 1.64 MB / 3.403 GB, free: 6.621 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 20 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 1,3 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.0142/13.29, allocations: 1.822 MB / 3.404 GB, free: 5.113 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01061/13.3, allocations: 2.469 MB / 3.407 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/13.3, allocations: 1 kB / 3.407 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006456/13.31, allocations: 1.455 MB / 3.408 GB, free: 1.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/13.31, allocations: 241 kB / 3.408 GB, free: 1.406 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2957/13.6, allocations: 15.44 MB / 3.424 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/13.61, allocations: 1.177 MB / 3.425 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.543e-06/13.61, allocations: 3.562 kB / 3.425 GB, free: 118.6 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat does not exist to compare? outputFormat=mat