Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.454/2.454, allocations: 235 MB / 241.9 MB, free: 9.766 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1784/2.632, allocations: 57.2 MB / 299.1 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/2.938, allocations: 54.85 MB / 354 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.702/9.64, allocations: 2.657 GB / 3.003 GB, free: 116.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/9.64, allocations: 77.42 kB / 3.003 GB, free: 116.6 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 4.459/14.1, allocations: 0.8606 GB / 3.864 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/14.1, allocations: 8 kB / 3.864 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0136/14.11, allocations: 0.8788 MB / 3.865 GB, free: 9.762 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01363/14.13, allocations: 2.106 MB / 3.867 GB, free: 7.645 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005338/14.13, allocations: 95.98 kB / 3.867 GB, free: 7.551 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001792/14.13, allocations: 116 kB / 3.867 GB, free: 7.438 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0133/14.14, allocations: 2.612 MB / 3.869 GB, free: 4.816 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/14.16, allocations: 2.863 MB / 3.872 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/14.16, allocations: 3.906 kB / 3.872 GB, free: 1.746 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005303/14.16, allocations: 8 kB / 3.872 GB, free: 1.738 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002435/14.16, allocations: 175.5 kB / 3.872 GB, free: 1.566 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6732/14.83, allocations: 79.96 MB / 3.95 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003339/14.84, allocations: 1.129 MB / 3.952 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002646/14.84, allocations: 1.01 MB / 3.953 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07333/14.91, allocations: 17.45 MB / 3.97 GB, free: 38.03 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005059/14.92, allocations: 1.191 MB / 3.971 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 9.879e-06/14.92, allocations: 3.719 kB / 3.971 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.04702/14.96, allocations: 8.323 MB / 3.979 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002935/14.96, allocations: 384.6 kB / 3.979 GB, free: 36.01 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004041/14.97, allocations: 1.138 MB / 3.98 GB, free: 35.84 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006923/14.97, allocations: 28.95 kB / 3.98 GB, free: 35.81 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001405/14.97, allocations: 0.7845 MB / 3.981 GB, free: 35.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001596/14.97, allocations: 0.5425 MB / 3.982 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006094/14.97, allocations: 0 / 3.982 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000458/14.97, allocations: 392.7 kB / 3.982 GB, free: 34.87 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004512/14.98, allocations: 1.143 MB / 3.983 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004948/14.98, allocations: 1.627 MB / 3.985 GB, free: 34.31 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0266/15.01, allocations: 3.519 MB / 3.988 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.294e-05/15.01, allocations: 3.5 kB / 3.988 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.04292/15.05, allocations: 6.528 MB / 3.995 GB, free: 33.99 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003078/15.06, allocations: 5.222 MB / 4 GB, free: 28.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/15.06, allocations: 26.59 kB / 4 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01785/15.07, allocations: 2.141 MB / 4.002 GB, free: 28.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002456/15.08, allocations: 320.9 kB / 4.002 GB, free: 28.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01617/15.09, allocations: 4.285 MB / 4.006 GB, free: 27.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007057/15.1, allocations: 259.2 kB / 4.007 GB, free: 27.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/15.1, allocations: 109 kB / 4.007 GB, free: 27.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/15.1, allocations: 3.312 kB / 4.007 GB, free: 27.92 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04103/15.14, allocations: 5.311 MB / 4.012 GB, free: 27.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001125/15.14, allocations: 18.52 kB / 4.012 GB, free: 27.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01564/15.16, allocations: 1.607 MB / 4.013 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002882/15.16, allocations: 362.5 kB / 4.014 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007648/15.17, allocations: 3.006 MB / 4.017 GB, free: 27.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004203/15.17, allocations: 232 kB / 4.017 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006538/15.17, allocations: 101.7 kB / 4.017 GB, free: 27.15 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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 (162): * Single equations (assignments): 158 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.00086/15.17, allocations: 193.2 kB / 4.017 GB, free: 27.01 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004798/15.18, allocations: 0.6575 MB / 4.018 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02043/15.2, allocations: 6.666 MB / 4.024 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.816e-05/15.2, allocations: 52.89 kB / 4.024 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/15.2, allocations: 3.906 kB / 4.024 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0125/15.21, allocations: 5.47 MB / 4.03 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/15.24, allocations: 9.187 MB / 4.039 GB, free: 24.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/15.24, allocations: 0 / 4.039 GB, free: 24.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003551/15.24, allocations: 331.2 kB / 4.039 GB, free: 24.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/15.24, allocations: 337.4 kB / 4.039 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005451/15.24, allocations: 47.48 kB / 4.039 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/15.25, allocations: 2.722 MB / 4.042 GB, free: 22.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/15.25, allocations: 2.062 kB / 4.042 GB, free: 22.76 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02657/15.27, allocations: 7.116 MB / 4.049 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0255/15.3, allocations: 9.65 MB / 4.058 GB, free: 21.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/15.3, allocations: 0.6711 MB / 4.059 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001358/15.3, allocations: 23.41 kB / 4.059 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004949/15.31, allocations: 159.4 kB / 4.059 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/15.31, allocations: 128.1 kB / 4.059 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000532/15.31, allocations: 67.2 kB / 4.059 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004138/15.31, allocations: 1.055 MB / 4.06 GB, free: 20.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01876/15.33, allocations: 3.176 MB / 4.064 GB, free: 20.83 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,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: 36 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * 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 (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.01866/15.35, allocations: 3.054 MB / 4.067 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.2999/15.65, allocations: 5.571 MB / 4.072 GB, free: 83.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.474e-05/15.65, allocations: 0 / 4.072 GB, free: 83.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006304/15.66, allocations: 2.867 MB / 4.075 GB, free: 83.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008232/15.67, allocations: 0.7261 MB / 4.076 GB, free: 83.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08724/15.75, allocations: 20.31 MB / 4.095 GB, free: 82.66 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004688/15.76, allocations: 2.333 MB / 4.098 GB, free: 81.89 MB / 0.5261 GB Notification: Performance of SimCode: time 1.783e-06/15.76, allocations: 0 / 4.098 GB, free: 81.89 MB / 0.5261 GB