Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) [: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.205/2.205, allocations: 209.3 MB / 216.3 MB, free: 6.867 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2022/2.407, allocations: 51.03 MB / 267.3 MB, free: 5.234 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/2.511, allocations: 48.68 MB / 316 MB, free: 4.457 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.389/8.901, allocations: 2.547 GB / 2.855 GB, free: 53.79 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/8.901, allocations: 81.2 kB / 2.856 GB, free: 53.75 MB / 426.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 4.43/13.33, allocations: 0.7781 GB / 3.634 GB, free: 18.48 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/13.33, allocations: 7.562 kB / 3.634 GB, free: 18.48 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01489/13.35, allocations: 0.8527 MB / 3.634 GB, free: 18.34 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/13.36, allocations: 2.108 MB / 3.637 GB, free: 17.88 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003577/13.36, allocations: 93.78 kB / 3.637 GB, free: 17.88 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00117/13.36, allocations: 112.3 kB / 3.637 GB, free: 17.88 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02376/13.38, allocations: 2.608 MB / 3.639 GB, free: 17.87 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01693/13.4, allocations: 2.851 MB / 3.642 GB, free: 17.36 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.672e-05/13.4, allocations: 9.547 kB / 3.642 GB, free: 17.36 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004649/13.4, allocations: 7.719 kB / 3.642 GB, free: 17.36 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002495/13.4, allocations: 167.7 kB / 3.642 GB, free: 17.35 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3213/13.72, allocations: 79.9 MB / 3.72 GB, free: 22.75 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003253/13.73, allocations: 1.116 MB / 3.721 GB, free: 22.73 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002685/13.73, allocations: 1.002 MB / 3.722 GB, free: 22.72 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06474/13.79, allocations: 17.45 MB / 3.739 GB, free: 11.14 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003386/13.8, allocations: 1.185 MB / 3.741 GB, free: 11 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=145): time 7.074e-06/13.8, allocations: 0 / 3.741 GB, free: 11 MB / 0.4949 GB Notification: Performance of matching and sorting (n=161): time 0.04202/13.84, allocations: 8.293 MB / 3.749 GB, free: 8.68 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002434/13.84, allocations: 388.1 kB / 3.749 GB, free: 8.219 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/13.84, allocations: 1.144 MB / 3.75 GB, free: 7.488 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0007728/13.84, allocations: 25.7 kB / 3.75 GB, free: 7.457 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001589/13.85, allocations: 0.7803 MB / 3.751 GB, free: 6.871 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001781/13.85, allocations: 0.5392 MB / 3.751 GB, free: 6.441 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005749/13.85, allocations: 0 / 3.751 GB, free: 6.441 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0005299/13.85, allocations: 384.4 kB / 3.752 GB, free: 6.117 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005485/13.85, allocations: 1.147 MB / 3.753 GB, free: 5.5 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005701/13.86, allocations: 1.625 MB / 3.754 GB, free: 4.277 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02766/13.89, allocations: 3.509 MB / 3.758 GB, free: 2.352 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.021e-05/13.89, allocations: 4 kB / 3.758 GB, free: 2.348 MB / 0.4949 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.298/14.19, allocations: 5.916 MB / 3.764 GB, free: 99.86 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.00134/14.19, allocations: 5.219 MB / 3.769 GB, free: 94.56 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.67e-05/14.19, allocations: 13.97 kB / 3.769 GB, free: 94.56 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/14.19, allocations: 256.7 kB / 3.769 GB, free: 94.53 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004769/14.19, allocations: 0.5225 MB / 3.77 GB, free: 94.53 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/14.2, allocations: 2.565 MB / 3.772 GB, free: 92.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004849/14.2, allocations: 257.8 kB / 3.772 GB, free: 92.46 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006951/14.2, allocations: 108.6 kB / 3.772 GB, free: 92.46 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/14.2, allocations: 3 kB / 3.772 GB, free: 92.46 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03077/14.23, allocations: 4.876 MB / 3.777 GB, free: 92.39 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-05/14.23, allocations: 15.47 kB / 3.777 GB, free: 92.39 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/14.23, allocations: 257.4 kB / 3.777 GB, free: 92.36 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004717/14.24, allocations: 0.5158 MB / 3.778 GB, free: 92.36 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/14.24, allocations: 2.561 MB / 3.78 GB, free: 90.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006361/14.25, allocations: 230 kB / 3.781 GB, free: 90.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/14.25, allocations: 101.8 kB / 3.781 GB, free: 90.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (251): * Single equations (assignments): 244 * 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: 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.001761/14.25, allocations: 200.8 kB / 3.781 GB, free: 90.16 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005498/14.26, allocations: 0.6541 MB / 3.782 GB, free: 90.16 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02685/14.28, allocations: 6.647 MB / 3.788 GB, free: 89.75 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.421e-05/14.28, allocations: 56.62 kB / 3.788 GB, free: 89.75 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/14.28, allocations: 3.469 kB / 3.788 GB, free: 89.75 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01371/14.3, allocations: 5.451 MB / 3.793 GB, free: 89.11 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02405/14.32, allocations: 9.156 MB / 3.802 GB, free: 88.35 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/14.32, allocations: 0 / 3.802 GB, free: 88.35 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00356/14.32, allocations: 330.9 kB / 3.803 GB, free: 88.35 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001673/14.33, allocations: 338.9 kB / 3.803 GB, free: 88.32 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005536/14.33, allocations: 45.98 kB / 3.803 GB, free: 88.32 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/14.33, allocations: 2.72 MB / 3.806 GB, free: 86.25 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.439e-05/14.33, allocations: 3.531 kB / 3.806 GB, free: 86.25 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01916/14.35, allocations: 7.091 MB / 3.813 GB, free: 85.7 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02696/14.38, allocations: 9.611 MB / 3.822 GB, free: 84.73 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004037/14.38, allocations: 0.6695 MB / 3.823 GB, free: 84.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/14.38, allocations: 21.84 kB / 3.823 GB, free: 84.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005727/14.39, allocations: 158.1 kB / 3.823 GB, free: 84.5 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007616/14.39, allocations: 133.8 kB / 3.823 GB, free: 84.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004316/14.39, allocations: 66.84 kB / 3.823 GB, free: 84.5 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.004586/14.39, allocations: 1.051 MB / 3.824 GB, free: 84.39 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0234/14.42, allocations: 3.153 MB / 3.827 GB, free: 84.38 MB / 0.4949 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,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * 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.0185/14.43, allocations: 3.04 MB / 3.83 GB, free: 84.16 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01576/14.45, allocations: 5.536 MB / 3.836 GB, free: 83.98 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/14.45, allocations: 2.781 kB / 3.836 GB, free: 83.98 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008067/14.46, allocations: 2.842 MB / 3.838 GB, free: 83.94 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01141/14.47, allocations: 0.7215 MB / 3.839 GB, free: 83.93 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0879/14.56, allocations: 19.86 MB / 3.858 GB, free: 82.89 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004895/14.56, allocations: 2.36 MB / 3.861 GB, free: 82.12 MB / 0.4949 GB Notification: Performance of SimCode: time 2.024e-06/14.56, allocations: 1.859 kB / 3.861 GB, free: 82.12 MB / 0.4949 GB