Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.345/2.345, allocations: 235.1 MB / 242 MB, free: 9.668 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1816/2.527, allocations: 57.19 MB / 299.2 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/2.819, allocations: 54.88 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.249/10.07, allocations: 2.655 GB / 3.001 GB, free: 81.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/10.07, allocations: 72.28 kB / 3.001 GB, free: 81.59 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 4.394/14.46, allocations: 0.8018 GB / 3.803 GB, free: 25.16 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/14.46, allocations: 9.375 kB / 3.803 GB, free: 25.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01244/14.48, allocations: 0.8657 MB / 3.804 GB, free: 24.94 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01162/14.49, allocations: 2.175 MB / 3.806 GB, free: 23.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/14.49, allocations: 94.91 kB / 3.806 GB, free: 23.94 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/14.49, allocations: 119.5 kB / 3.806 GB, free: 23.94 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01176/14.5, allocations: 2.936 MB / 3.809 GB, free: 22 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/14.51, allocations: 2.935 MB / 3.812 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.058e-05/14.51, allocations: 3.938 kB / 3.812 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004687/14.51, allocations: 8 kB / 3.812 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002715/14.51, allocations: 180.7 kB / 3.812 GB, free: 19.18 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8584/15.37, allocations: 110.1 MB / 3.919 GB, free: 37.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00388/15.37, allocations: 1.168 MB / 3.921 GB, free: 37.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003068/15.38, allocations: 1.027 MB / 3.922 GB, free: 37.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07581/15.45, allocations: 17.53 MB / 3.939 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003611/15.46, allocations: 1.251 MB / 3.94 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=152): time 7.845e-06/15.46, allocations: 0 / 3.94 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=164): time 0.04038/15.5, allocations: 8.241 MB / 3.948 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002468/15.5, allocations: 0.5101 MB / 3.948 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/15.5, allocations: 1.208 MB / 3.95 GB, free: 39.62 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006217/15.5, allocations: 32.39 kB / 3.95 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009801/15.5, allocations: 0.7811 MB / 3.95 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/15.5, allocations: 0.535 MB / 3.951 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/15.5, allocations: 0 / 3.951 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002706/15.5, allocations: 393.8 kB / 3.951 GB, free: 38.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003653/15.51, allocations: 1.158 MB / 3.952 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004322/15.51, allocations: 1.614 MB / 3.954 GB, free: 38.15 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03578/15.55, allocations: 3.106 MB / 3.957 GB, free: 38.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.894e-05/15.55, allocations: 2.125 kB / 3.957 GB, free: 38.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03849/15.59, allocations: 5.676 MB / 3.963 GB, free: 37.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002062/15.59, allocations: 4.453 MB / 3.967 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/15.59, allocations: 15.89 kB / 3.967 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008584/15.6, allocations: 0.8669 MB / 3.968 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004971/15.6, allocations: 487.2 kB / 3.968 GB, free: 33.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007447/15.61, allocations: 3.534 MB / 3.972 GB, free: 31.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/15.61, allocations: 237.1 kB / 3.972 GB, free: 31.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008984/15.62, allocations: 106.1 kB / 3.972 GB, free: 31.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/15.62, allocations: 5.5 kB / 3.972 GB, free: 31.07 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03311/15.65, allocations: 4.558 MB / 3.976 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.111e-05/15.65, allocations: 12.28 kB / 3.976 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002401/15.65, allocations: 354.4 kB / 3.977 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005101/15.66, allocations: 0.4907 MB / 3.977 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00797/15.66, allocations: 3.985 MB / 3.981 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005037/15.67, allocations: 215.3 kB / 3.981 GB, free: 28.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009657/15.67, allocations: 102.2 kB / 3.981 GB, free: 28.11 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (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,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 (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001156/15.67, allocations: 239.4 kB / 3.982 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003627/15.68, allocations: 0.6238 MB / 3.982 GB, free: 27.83 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02042/15.7, allocations: 6.773 MB / 3.989 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-05/15.7, allocations: 57.22 kB / 3.989 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/15.7, allocations: 8.031 kB / 3.989 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01514/15.71, allocations: 5.707 MB / 3.995 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02754/15.74, allocations: 9.289 MB / 4.004 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.153e-05/15.74, allocations: 2.031 kB / 4.004 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003231/15.74, allocations: 276.4 kB / 4.004 GB, free: 25.74 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008155/15.75, allocations: 2.06 MB / 4.006 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006757/15.75, allocations: 49.84 kB / 4.006 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007881/15.76, allocations: 4.281 MB / 4.01 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/15.76, allocations: 3 kB / 4.01 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02224/15.78, allocations: 7.207 MB / 4.017 GB, free: 22.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03058/15.81, allocations: 9.689 MB / 4.027 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003389/15.82, allocations: 0.6912 MB / 4.027 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/15.82, allocations: 20.84 kB / 4.027 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004414/15.82, allocations: 149.9 kB / 4.027 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008012/15.82, allocations: 126.5 kB / 4.028 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003826/15.82, allocations: 70.48 kB / 4.028 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004005/15.83, allocations: 1.098 MB / 4.029 GB, free: 21.49 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02238/15.85, allocations: 3.233 MB / 4.032 GB, free: 21.41 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.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 (143): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01962/15.87, allocations: 3.081 MB / 4.035 GB, free: 19.85 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01688/15.89, allocations: 5.598 MB / 4.04 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/15.89, allocations: 4 kB / 4.04 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009115/15.9, allocations: 2.706 MB / 4.043 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01349/15.91, allocations: 0.7382 MB / 4.044 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1038/16.01, allocations: 20.07 MB / 4.063 GB, free: 1.973 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005348/16.02, allocations: 2.359 MB / 4.066 GB, free: 92 kB / 0.5261 GB Notification: Performance of SimCode: time 1.703e-06/16.02, allocations: 0 / 4.066 GB, free: 92 kB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat