Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.411/2.411, allocations: 235.1 MB / 242 MB, free: 9.766 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1913/2.603, allocations: 57.2 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/2.881, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.358/10.24, allocations: 2.659 GB / 3.005 GB, free: 109.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/10.24, allocations: 79.5 kB / 3.005 GB, free: 109.7 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 5.178/15.42, allocations: 0.8986 GB / 3.904 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.54e-05/15.42, allocations: 11.59 kB / 3.904 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/15.43, allocations: 0.9142 MB / 3.905 GB, free: 32.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/15.44, allocations: 2.088 MB / 3.907 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004631/15.44, allocations: 104.3 kB / 3.907 GB, free: 32.53 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001463/15.44, allocations: 116.3 kB / 3.907 GB, free: 32.53 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0112/15.45, allocations: 2.739 MB / 3.91 GB, free: 32.52 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/15.47, allocations: 2.933 MB / 3.912 GB, free: 32 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001388/15.47, allocations: 11.22 kB / 3.912 GB, free: 32 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00109/15.47, allocations: 6.719 kB / 3.912 GB, free: 32 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003201/15.47, allocations: 172.6 kB / 3.913 GB, free: 32 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6339/16.1, allocations: 111.1 MB / 4.021 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004595/16.11, allocations: 1.117 MB / 4.022 GB, free: 21.47 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00375/16.11, allocations: 0.9855 MB / 4.023 GB, free: 21.46 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1008/16.21, allocations: 17.53 MB / 4.04 GB, free: 9.785 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00401/16.22, allocations: 1.195 MB / 4.041 GB, free: 9.621 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 7.153e-06/16.22, allocations: 0 / 4.041 GB, free: 9.621 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.05356/16.27, allocations: 8.083 MB / 4.049 GB, free: 7.871 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004202/16.27, allocations: 359.6 kB / 4.05 GB, free: 7.461 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005392/16.28, allocations: 1.16 MB / 4.051 GB, free: 7.277 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007465/16.28, allocations: 32.61 kB / 4.051 GB, free: 7.242 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001583/16.28, allocations: 0.7962 MB / 4.052 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001713/16.28, allocations: 0.5504 MB / 4.052 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004732/16.28, allocations: 0.9688 kB / 4.052 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000437/16.28, allocations: 384.5 kB / 4.053 GB, free: 6.105 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005047/16.29, allocations: 1.102 MB / 4.054 GB, free: 6.102 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005834/16.29, allocations: 1.548 MB / 4.055 GB, free: 5.594 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03553/16.33, allocations: 3.034 MB / 4.058 GB, free: 4.43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.243e-05/16.33, allocations: 6.531 kB / 4.058 GB, free: 4.426 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0463/16.38, allocations: 5.404 MB / 4.063 GB, free: 1.367 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002371/16.38, allocations: 4.877 MB / 4.068 GB, free: 12.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.673e-05/16.38, allocations: 13.22 kB / 4.068 GB, free: 12.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/16.38, allocations: 223.2 kB / 4.068 GB, free: 12.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005821/16.39, allocations: 0.5261 MB / 4.069 GB, free: 11.76 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005008/16.39, allocations: 2.485 MB / 4.071 GB, free: 9.418 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008396/16.4, allocations: 269.9 kB / 4.072 GB, free: 9.215 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/16.4, allocations: 114.5 kB / 4.072 GB, free: 9.137 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/16.4, allocations: 7.75 kB / 4.072 GB, free: 9.133 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03444/16.44, allocations: 4.327 MB / 4.076 GB, free: 6.715 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.832e-05/16.44, allocations: 12 kB / 4.076 GB, free: 6.703 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/16.44, allocations: 228.1 kB / 4.076 GB, free: 6.559 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005534/16.44, allocations: 0.5191 MB / 4.077 GB, free: 6.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003329/16.45, allocations: 2.483 MB / 4.079 GB, free: 3.824 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00503/16.45, allocations: 250.9 kB / 4.079 GB, free: 3.637 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008421/16.45, allocations: 106.4 kB / 4.079 GB, free: 3.562 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001069/16.45, allocations: 240.2 kB / 4.08 GB, free: 3.359 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006132/16.46, allocations: 0.657 MB / 4.08 GB, free: 2.953 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3093/16.77, allocations: 6.07 MB / 4.086 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.593e-05/16.77, allocations: 48.02 kB / 4.086 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/16.77, allocations: 6.016 kB / 4.086 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01892/16.79, allocations: 5.029 MB / 4.091 GB, free: 122.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02624/16.81, allocations: 8.929 MB / 4.1 GB, free: 121 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/16.81, allocations: 4.906 kB / 4.1 GB, free: 121 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003651/16.82, allocations: 332.1 kB / 4.1 GB, free: 121 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/16.82, allocations: 324.1 kB / 4.101 GB, free: 121 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005594/16.82, allocations: 46.34 kB / 4.101 GB, free: 121 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002479/16.82, allocations: 2.657 MB / 4.103 GB, free: 119 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/16.82, allocations: 3.75 kB / 4.103 GB, free: 119 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02091/16.84, allocations: 6.73 MB / 4.11 GB, free: 118.5 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03404/16.88, allocations: 9.2 MB / 4.119 GB, free: 117.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004398/16.88, allocations: 0.6797 MB / 4.119 GB, free: 117.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001964/16.88, allocations: 17.91 kB / 4.119 GB, free: 117.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004947/16.89, allocations: 182.1 kB / 4.12 GB, free: 117.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000796/16.89, allocations: 126.9 kB / 4.12 GB, free: 117.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003584/16.89, allocations: 74.56 kB / 4.12 GB, free: 117.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.003109/16.89, allocations: 1.062 MB / 4.121 GB, free: 117.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02137/16.91, allocations: 3.288 MB / 4.124 GB, free: 117.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01993/16.93, allocations: 3.216 MB / 4.127 GB, free: 117.3 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01692/16.95, allocations: 5.224 MB / 4.132 GB, free: 117.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/16.95, allocations: 1.5 kB / 4.132 GB, free: 117.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007281/16.96, allocations: 2.639 MB / 4.135 GB, free: 117 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/16.97, allocations: 0.8174 MB / 4.136 GB, free: 117 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09692/17.07, allocations: 19.97 MB / 4.155 GB, free: 116 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007473/17.07, allocations: 2.337 MB / 4.157 GB, free: 115.2 MB / 0.573 GB Notification: Performance of SimCode: time 2.635e-06/17.07, allocations: 0 / 4.157 GB, free: 115.2 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat