Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.399/2.399, allocations: 235.1 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2044/2.603, allocations: 57.19 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/2.886, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.376/10.26, allocations: 2.673 GB / 3.018 GB, free: 95.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/10.26, allocations: 80.53 kB / 3.018 GB, free: 95.12 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 5.243/15.51, allocations: 0.8676 GB / 3.886 GB, free: 33.07 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/15.51, allocations: 7.875 kB / 3.886 GB, free: 33.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01541/15.52, allocations: 0.8209 MB / 3.887 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01366/15.53, allocations: 1.985 MB / 3.889 GB, free: 32.51 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/15.53, allocations: 88.22 kB / 3.889 GB, free: 32.51 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000842/15.54, allocations: 113.5 kB / 3.889 GB, free: 32.51 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008653/15.54, allocations: 2.356 MB / 3.891 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009251/15.55, allocations: 2.597 MB / 3.894 GB, free: 32.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.985e-05/15.55, allocations: 12.67 kB / 3.894 GB, free: 32.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003942/15.55, allocations: 11.05 kB / 3.894 GB, free: 32.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002497/15.55, allocations: 156.2 kB / 3.894 GB, free: 32.02 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6177/16.17, allocations: 109.4 MB / 4.001 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004404/16.18, allocations: 1.031 MB / 4.002 GB, free: 22.77 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003781/16.18, allocations: 0.9868 MB / 4.003 GB, free: 22.76 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0974/16.28, allocations: 17.47 MB / 4.02 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00344/16.28, allocations: 1.16 MB / 4.021 GB, free: 10.92 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 5.922e-06/16.28, allocations: 0 / 4.021 GB, free: 10.92 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.07532/16.36, allocations: 9.133 MB / 4.03 GB, free: 9.258 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002831/16.36, allocations: 360.8 kB / 4.03 GB, free: 8.852 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003136/16.36, allocations: 1.038 MB / 4.031 GB, free: 8.68 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006275/16.36, allocations: 29.83 kB / 4.031 GB, free: 8.645 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009961/16.36, allocations: 0.7093 MB / 4.032 GB, free: 8.227 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/16.36, allocations: 0.505 MB / 4.032 GB, free: 7.895 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/16.36, allocations: 3.344 kB / 4.032 GB, free: 7.895 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0004039/16.36, allocations: 383.9 kB / 4.033 GB, free: 7.586 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004165/16.37, allocations: 1.011 MB / 4.034 GB, free: 7.586 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003945/16.37, allocations: 1.431 MB / 4.035 GB, free: 7.137 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/16.39, allocations: 1.965 MB / 4.037 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.694e-05/16.39, allocations: 2.688 kB / 4.037 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.04222/16.43, allocations: 4.295 MB / 4.041 GB, free: 6.867 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003037/16.44, allocations: 4.244 MB / 4.045 GB, free: 18.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-05/16.44, allocations: 10.16 kB / 4.045 GB, free: 18.48 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005523/16.44, allocations: 0.522 MB / 4.046 GB, free: 18.43 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004761/16.45, allocations: 461 kB / 4.046 GB, free: 18.43 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/16.45, allocations: 2.911 MB / 4.049 GB, free: 16.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/16.46, allocations: 271.3 kB / 4.049 GB, free: 16.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008224/16.46, allocations: 103.5 kB / 4.05 GB, free: 16.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/16.46, allocations: 0 / 4.05 GB, free: 16.3 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02316/16.48, allocations: 3.172 MB / 4.053 GB, free: 16.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.001e-05/16.48, allocations: 7.812 kB / 4.053 GB, free: 16.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009843/16.48, allocations: 194.6 kB / 4.053 GB, free: 16.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00479/16.49, allocations: 475.6 kB / 4.053 GB, free: 16.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/16.49, allocations: 1.922 MB / 4.055 GB, free: 14.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005223/16.5, allocations: 239.7 kB / 4.055 GB, free: 14.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009052/16.5, allocations: 99.77 kB / 4.055 GB, free: 14.57 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001077/16.5, allocations: 233.8 kB / 4.056 GB, free: 14.39 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003498/16.5, allocations: 0.6119 MB / 4.056 GB, free: 14.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03232/16.53, allocations: 6.724 MB / 4.063 GB, free: 12.96 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.497e-05/16.53, allocations: 47.59 kB / 4.063 GB, free: 12.94 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/16.53, allocations: 2.562 kB / 4.063 GB, free: 12.94 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02684/16.56, allocations: 5.818 MB / 4.069 GB, free: 9.402 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04233/16.6, allocations: 10.14 MB / 4.079 GB, free: 3.676 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.754e-05/16.6, allocations: 8 kB / 4.079 GB, free: 3.668 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003258/16.61, allocations: 287.5 kB / 4.079 GB, free: 3.449 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005032/16.61, allocations: 1.14 MB / 4.08 GB, free: 2.617 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006665/16.61, allocations: 47.14 kB / 4.08 GB, free: 2.586 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2805/16.89, allocations: 3.395 MB / 4.083 GB, free: 123.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.79e-05/16.89, allocations: 11.56 kB / 4.083 GB, free: 123.9 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04168/16.93, allocations: 7.621 MB / 4.091 GB, free: 123 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0383/16.97, allocations: 9.971 MB / 4.1 GB, free: 121.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002842/16.98, allocations: 0.6472 MB / 4.101 GB, free: 121.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/16.98, allocations: 27.58 kB / 4.101 GB, free: 121.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003969/16.98, allocations: 148.3 kB / 4.101 GB, free: 121.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006587/16.98, allocations: 130.9 kB / 4.101 GB, free: 121.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00032/16.98, allocations: 73.66 kB / 4.101 GB, free: 121.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002733/16.99, allocations: 0.9738 MB / 4.102 GB, free: 121.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01964/17, allocations: 3 MB / 4.105 GB, free: 121.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.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) * 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 (153): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01846/17.02, allocations: 3.024 MB / 4.108 GB, free: 121.3 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01699/17.04, allocations: 4.878 MB / 4.113 GB, free: 121.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-05/17.04, allocations: 0 / 4.113 GB, free: 121.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01059/17.05, allocations: 2.966 MB / 4.116 GB, free: 121 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009368/17.06, allocations: 0.7448 MB / 4.117 GB, free: 121 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09503/17.16, allocations: 19.81 MB / 4.136 GB, free: 119.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004943/17.16, allocations: 2.237 MB / 4.138 GB, free: 119.1 MB / 0.573 GB Notification: Performance of SimCode: time 1.964e-06/17.16, allocations: 0 / 4.138 GB, free: 119.1 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat