Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",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.454/2.454, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1848/2.639, allocations: 57.19 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/2.966, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.236/10.2, allocations: 2.652 GB / 2.997 GB, free: 68.72 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/10.2, allocations: 75.14 kB / 2.997 GB, free: 68.68 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 4.241/14.44, allocations: 0.7393 GB / 3.737 GB, free: 37.78 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/14.44, allocations: 6.594 kB / 3.737 GB, free: 37.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00651/14.45, allocations: 497.8 kB / 3.737 GB, free: 37.71 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005128/14.45, allocations: 1.138 MB / 3.738 GB, free: 37.38 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/14.45, allocations: 111.5 kB / 3.738 GB, free: 37.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004624/14.46, allocations: 60.66 kB / 3.739 GB, free: 37.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006267/14.46, allocations: 1.365 MB / 3.74 GB, free: 37.31 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00486/14.47, allocations: 1.478 MB / 3.741 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.563e-05/14.47, allocations: 8.531 kB / 3.741 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/14.47, allocations: 8.844 kB / 3.741 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/14.47, allocations: 82.53 kB / 3.741 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.973/15.44, allocations: 135.1 MB / 3.873 GB, free: 78.71 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/15.44, allocations: 0.489 MB / 3.874 GB, free: 78.69 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/15.44, allocations: 373.6 kB / 3.874 GB, free: 78.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2329/15.68, allocations: 48.32 MB / 3.921 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001622/15.68, allocations: 0.5001 MB / 3.922 GB, free: 48.15 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=66): time 4.999e-06/15.68, allocations: 3.938 kB / 3.922 GB, free: 48.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70): time 0.01819/15.7, allocations: 3.215 MB / 3.925 GB, free: 47.51 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/15.7, allocations: 345.6 kB / 3.925 GB, free: 47.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/15.7, allocations: 0.8657 MB / 3.926 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003126/15.7, allocations: 28.77 kB / 3.926 GB, free: 46.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005656/15.7, allocations: 0.5001 MB / 3.927 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/15.7, allocations: 239.4 kB / 3.927 GB, free: 46.54 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/15.7, allocations: 1.312 kB / 3.927 GB, free: 46.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001373/15.7, allocations: 365.9 kB / 3.927 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001788/15.7, allocations: 0.4929 MB / 3.928 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/15.71, allocations: 0.9645 MB / 3.929 GB, free: 45.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01649/15.72, allocations: 1.757 MB / 3.93 GB, free: 45.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.357e-05/15.72, allocations: 3.906 kB / 3.93 GB, free: 45.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.02356/15.75, allocations: 3.295 MB / 3.934 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001347/15.75, allocations: 5.394 MB / 3.939 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.787e-05/15.75, allocations: 15.28 kB / 3.939 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007551/15.76, allocations: 0.7577 MB / 3.94 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/15.76, allocations: 251.6 kB / 3.94 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/15.77, allocations: 1.854 MB / 3.942 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004684/15.77, allocations: 126.1 kB / 3.942 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004612/15.77, allocations: 78.75 kB / 3.942 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/15.77, allocations: 6.469 kB / 3.942 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02754/15.8, allocations: 2.49 MB / 3.944 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.255e-05/15.8, allocations: 14.25 kB / 3.944 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00357/15.8, allocations: 345.8 kB / 3.945 GB, free: 39.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003417/15.81, allocations: 289.4 kB / 3.945 GB, free: 39.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003438/15.81, allocations: 1.085 MB / 3.946 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004052/15.82, allocations: 116.5 kB / 3.946 GB, free: 38.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004809/15.82, allocations: 69.58 kB / 3.946 GB, free: 38.57 MB / 0.5261 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008759/15.82, allocations: 157.5 kB / 3.946 GB, free: 38.46 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003745/15.82, allocations: 411.8 kB / 3.947 GB, free: 38.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/15.83, allocations: 3.014 MB / 3.95 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.964e-05/15.83, allocations: 27.06 kB / 3.95 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/15.83, allocations: 3.594 kB / 3.95 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.281e-05/15.83, allocations: 7.266 kB / 3.95 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/15.85, allocations: 4.69 MB / 3.954 GB, free: 37.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/15.85, allocations: 1.781 kB / 3.954 GB, free: 37.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001707/15.85, allocations: 126.4 kB / 3.954 GB, free: 37.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01418/15.87, allocations: 1.34 MB / 3.956 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003121/15.87, allocations: 19.25 kB / 3.956 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005904/15.87, allocations: 2.162 MB / 3.958 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/15.87, allocations: 0 / 3.958 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0123/15.88, allocations: 3.417 MB / 3.961 GB, free: 35.93 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01238/15.9, allocations: 4.751 MB / 3.966 GB, free: 35.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/15.9, allocations: 358.1 kB / 3.966 GB, free: 34.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000491/15.9, allocations: 9.219 kB / 3.966 GB, free: 34.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002219/15.9, allocations: 76.45 kB / 3.966 GB, free: 34.97 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/15.9, allocations: 55.17 kB / 3.966 GB, free: 34.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/15.9, allocations: 35.52 kB / 3.966 GB, free: 34.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001615/15.9, allocations: 0.6239 MB / 3.967 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01414/15.92, allocations: 2.356 MB / 3.969 GB, free: 34.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01561/15.93, allocations: 2.572 MB / 3.972 GB, free: 34.44 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007461/15.94, allocations: 2.466 MB / 3.974 GB, free: 34.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/15.94, allocations: 4.312 kB / 3.974 GB, free: 34.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002739/15.94, allocations: 1.154 MB / 3.975 GB, free: 34.38 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005144/15.95, allocations: 444.9 kB / 3.976 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00838/15.96, allocations: 2.521 MB / 3.978 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/15.96, allocations: 1.437 MB / 3.98 GB, free: 33.05 MB / 0.5261 GB Notification: Performance of SimCode: time 1.713e-06/15.96, allocations: 0 / 3.98 GB, free: 33.05 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat