Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",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.044/2.044, allocations: 209.3 MB / 216.3 MB, free: 6.785 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2451/2.289, allocations: 51.03 MB / 267.3 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/2.406, allocations: 48.68 MB / 316 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.52/8.926, allocations: 2.547 GB / 2.856 GB, free: 56.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003627/8.926, allocations: 78.28 kB / 2.856 GB, free: 56.26 MB / 426.7 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.836/13.76, allocations: 0.7793 GB / 3.635 GB, free: 18.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/13.76, allocations: 7.25 kB / 3.635 GB, free: 18.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01667/13.78, allocations: 0.8554 MB / 3.636 GB, free: 18.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01387/13.79, allocations: 2.108 MB / 3.638 GB, free: 17.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004178/13.79, allocations: 93.7 kB / 3.638 GB, free: 17.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001343/13.79, allocations: 112 kB / 3.638 GB, free: 17.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01251/13.81, allocations: 2.61 MB / 3.641 GB, free: 17.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/13.82, allocations: 2.85 MB / 3.643 GB, free: 17.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001398/13.82, allocations: 12.41 kB / 3.643 GB, free: 17.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007767/13.82, allocations: 6.562 kB / 3.643 GB, free: 17.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003796/13.82, allocations: 170.1 kB / 3.644 GB, free: 17.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.391/14.21, allocations: 79.89 MB / 3.722 GB, free: 22.49 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003224/14.22, allocations: 1.12 MB / 3.723 GB, free: 22.47 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002863/14.22, allocations: 1.004 MB / 3.724 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06751/14.29, allocations: 17.45 MB / 3.741 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003591/14.29, allocations: 1.183 MB / 3.742 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=145): time 6.523e-06/14.29, allocations: 5.188 kB / 3.742 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.04649/14.34, allocations: 8.298 MB / 3.75 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002857/14.34, allocations: 380.6 kB / 3.75 GB, free: 8.074 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/14.34, allocations: 1.14 MB / 3.751 GB, free: 7.344 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005977/14.34, allocations: 35 kB / 3.751 GB, free: 7.309 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001003/14.34, allocations: 0.7807 MB / 3.752 GB, free: 6.723 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001069/14.34, allocations: 0.5332 MB / 3.753 GB, free: 6.297 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002978/14.34, allocations: 4 kB / 3.753 GB, free: 6.293 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002648/14.34, allocations: 388 kB / 3.753 GB, free: 5.965 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003715/14.35, allocations: 1.14 MB / 3.754 GB, free: 5.355 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006073/14.35, allocations: 1.633 MB / 3.756 GB, free: 4.129 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03323/14.39, allocations: 3.503 MB / 3.759 GB, free: 2.211 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.837e-05/14.39, allocations: 4 kB / 3.759 GB, free: 2.207 MB / 0.4948 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.2845/14.67, allocations: 6.609 MB / 3.766 GB, free: 98.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001189/14.67, allocations: 5.22 MB / 3.771 GB, free: 93.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.032e-05/14.67, allocations: 15.34 kB / 3.771 GB, free: 93.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01507/14.69, allocations: 2.146 MB / 3.773 GB, free: 93.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/14.69, allocations: 318.8 kB / 3.773 GB, free: 93.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/14.7, allocations: 4.285 MB / 3.777 GB, free: 93.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004528/14.71, allocations: 257.9 kB / 3.778 GB, free: 93.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007216/14.71, allocations: 105.4 kB / 3.778 GB, free: 93.03 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/14.71, allocations: 3.969 kB / 3.778 GB, free: 93.03 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03695/14.75, allocations: 5.306 MB / 3.783 GB, free: 92.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.102e-05/14.75, allocations: 17.55 kB / 3.783 GB, free: 92.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01132/14.76, allocations: 1.611 MB / 3.785 GB, free: 92.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/14.76, allocations: 361.2 kB / 3.785 GB, free: 92.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007299/14.77, allocations: 3.006 MB / 3.788 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/14.77, allocations: 230.1 kB / 3.788 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005993/14.77, allocations: 100.2 kB / 3.788 GB, free: 92.42 MB / 0.4948 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 (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.0008338/14.77, allocations: 193.5 kB / 3.788 GB, free: 92.28 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003186/14.78, allocations: 0.6468 MB / 3.789 GB, free: 92.28 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01942/14.8, allocations: 6.651 MB / 3.795 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.495e-05/14.8, allocations: 56.2 kB / 3.795 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/14.8, allocations: 0 / 3.795 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01826/14.81, allocations: 5.449 MB / 3.801 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02576/14.84, allocations: 9.151 MB / 3.81 GB, free: 90.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/14.84, allocations: 6.75 kB / 3.81 GB, free: 90.47 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003119/14.84, allocations: 329.9 kB / 3.81 GB, free: 90.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/14.84, allocations: 336.8 kB / 3.81 GB, free: 90.44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000341/14.84, allocations: 48.62 kB / 3.81 GB, free: 90.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/14.85, allocations: 2.724 MB / 3.813 GB, free: 88.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/14.85, allocations: 0 / 3.813 GB, free: 88.36 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01974/14.87, allocations: 7.089 MB / 3.82 GB, free: 87.79 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02722/14.89, allocations: 9.609 MB / 3.829 GB, free: 86.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002521/14.9, allocations: 0.6753 MB / 3.83 GB, free: 86.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00101/14.9, allocations: 15.91 kB / 3.83 GB, free: 86.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003562/14.9, allocations: 161.6 kB / 3.83 GB, free: 86.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006498/14.9, allocations: 128.9 kB / 3.83 GB, free: 86.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002822/14.9, allocations: 69.8 kB / 3.83 GB, free: 86.59 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002834/14.91, allocations: 1.046 MB / 3.831 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01803/14.92, allocations: 3.16 MB / 3.835 GB, free: 86.48 MB / 0.4948 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.01669/14.94, allocations: 3.049 MB / 3.837 GB, free: 86.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02109/14.96, allocations: 5.531 MB / 3.843 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.461e-05/14.96, allocations: 0 / 3.843 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007725/14.97, allocations: 2.839 MB / 3.846 GB, free: 85.98 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008297/14.98, allocations: 0.7199 MB / 3.846 GB, free: 85.97 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1062/15.08, allocations: 19.86 MB / 3.866 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006103/15.09, allocations: 2.33 MB / 3.868 GB, free: 84.16 MB / 0.4948 GB Notification: Performance of SimCode: time 1.754e-06/15.09, allocations: 1.422 kB / 3.868 GB, free: 84.16 MB / 0.4948 GB