Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.488/2.488, allocations: 235 MB / 242 MB, free: 9.766 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2194/2.707, allocations: 57.2 MB / 299.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/3.009, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.333/10.34, allocations: 2.655 GB / 3.001 GB, free: 81.55 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/10.34, allocations: 78.83 kB / 3.001 GB, free: 81.51 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 3.457/13.8, allocations: 0.5727 GB / 3.573 GB, free: 37.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/13.8, allocations: 17.44 kB / 3.573 GB, free: 37.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007891/13.81, allocations: 0.5602 MB / 3.574 GB, free: 37.53 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007246/13.81, allocations: 1.454 MB / 3.575 GB, free: 36.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/13.81, allocations: 59.73 kB / 3.575 GB, free: 36.83 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/13.82, allocations: 77.66 kB / 3.575 GB, free: 36.83 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006238/13.82, allocations: 1.6 MB / 3.577 GB, free: 36.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005337/13.83, allocations: 1.803 MB / 3.579 GB, free: 35.44 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.734e-05/13.83, allocations: 2.5 kB / 3.579 GB, free: 35.44 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002997/13.83, allocations: 3.125 kB / 3.579 GB, free: 35.44 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001814/13.83, allocations: 117.5 kB / 3.579 GB, free: 35.42 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.683/14.51, allocations: 74.57 MB / 3.652 GB, free: 84.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/14.51, allocations: 0.6722 MB / 3.652 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/14.51, allocations: 0.5741 MB / 3.653 GB, free: 84.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06882/14.58, allocations: 17.44 MB / 3.67 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001962/14.59, allocations: 0.7257 MB / 3.671 GB, free: 73.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 5.971e-06/14.59, allocations: 0 / 3.671 GB, free: 73.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96): time 0.03476/14.62, allocations: 4.807 MB / 3.675 GB, free: 72.79 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/14.62, allocations: 379.1 kB / 3.676 GB, free: 72.35 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003418/14.62, allocations: 0.8078 MB / 3.676 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004636/14.62, allocations: 25.7 kB / 3.676 GB, free: 72.17 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009661/14.63, allocations: 0.5358 MB / 3.677 GB, free: 71.92 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009358/14.63, allocations: 326.9 kB / 3.677 GB, free: 71.75 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003042/14.63, allocations: 0 / 3.677 GB, free: 71.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002141/14.63, allocations: 357.1 kB / 3.678 GB, free: 71.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00313/14.63, allocations: 0.6695 MB / 3.678 GB, free: 71.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007573/14.64, allocations: 0.9895 MB / 3.679 GB, free: 71.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04855/14.69, allocations: 1.904 MB / 3.681 GB, free: 71.09 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.431e-05/14.69, allocations: 3.781 kB / 3.681 GB, free: 71.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.04233/14.73, allocations: 3.409 MB / 3.684 GB, free: 70.96 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001026/14.73, allocations: 3.227 MB / 3.688 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.267e-05/14.73, allocations: 14.7 kB / 3.688 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/14.73, allocations: 128.2 kB / 3.688 GB, free: 67.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005204/14.74, allocations: 329.5 kB / 3.688 GB, free: 67.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/14.74, allocations: 1.281 MB / 3.689 GB, free: 66.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005085/14.74, allocations: 166.4 kB / 3.689 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007996/14.74, allocations: 69.58 kB / 3.69 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/14.74, allocations: 5.281 kB / 3.69 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02947/14.77, allocations: 2.722 MB / 3.692 GB, free: 66.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.579e-05/14.77, allocations: 18.92 kB / 3.692 GB, free: 66.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008841/14.78, allocations: 128.3 kB / 3.692 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004847/14.78, allocations: 325.2 kB / 3.693 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/14.78, allocations: 1.287 MB / 3.694 GB, free: 65.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/14.79, allocations: 148 kB / 3.694 GB, free: 65.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005398/14.79, allocations: 69.17 kB / 3.694 GB, free: 65.45 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008462/14.79, allocations: 173.4 kB / 3.694 GB, free: 65.31 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003648/14.79, allocations: 431.4 kB / 3.695 GB, free: 65.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01615/14.81, allocations: 3.721 MB / 3.698 GB, free: 64.94 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.933e-05/14.81, allocations: 33.38 kB / 3.698 GB, free: 64.94 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/14.81, allocations: 0 / 3.698 GB, free: 64.94 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01002/14.82, allocations: 2.916 MB / 3.701 GB, free: 64.64 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/14.83, allocations: 5.448 MB / 3.707 GB, free: 63.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/14.83, allocations: 0 / 3.707 GB, free: 63.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002049/14.84, allocations: 186.8 kB / 3.707 GB, free: 63.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/14.84, allocations: 164.6 kB / 3.707 GB, free: 63.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003217/14.84, allocations: 29.48 kB / 3.707 GB, free: 63.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/14.84, allocations: 1.365 MB / 3.708 GB, free: 62.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/14.84, allocations: 0 / 3.708 GB, free: 62.86 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01203/14.85, allocations: 4.068 MB / 3.712 GB, free: 62.44 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01442/14.86, allocations: 5.652 MB / 3.718 GB, free: 61.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/14.87, allocations: 494.5 kB / 3.718 GB, free: 61.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006297/14.87, allocations: 17.86 kB / 3.718 GB, free: 61.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002286/14.87, allocations: 94.7 kB / 3.718 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/14.87, allocations: 73.02 kB / 3.718 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000181/14.87, allocations: 45.27 kB / 3.718 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00219/14.87, allocations: 0.8116 MB / 3.719 GB, free: 61.33 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01462/14.89, allocations: 2.551 MB / 3.722 GB, free: 61.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01631/14.9, allocations: 2.568 MB / 3.724 GB, free: 61.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01055/14.91, allocations: 3.224 MB / 3.727 GB, free: 60.92 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/14.91, allocations: 5.781 kB / 3.727 GB, free: 60.92 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003961/14.92, allocations: 1.577 MB / 3.729 GB, free: 60.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005735/14.92, allocations: 482.1 kB / 3.729 GB, free: 60.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1367/15.06, allocations: 17.89 MB / 3.747 GB, free: 60.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004805/15.07, allocations: 1.74 MB / 3.749 GB, free: 59.33 MB / 0.4948 GB Notification: Performance of SimCode: time 2.325e-06/15.07, allocations: 3.656 kB / 3.749 GB, free: 59.33 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat