Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_2_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.172/2.172, allocations: 235 MB / 241.9 MB, free: 9.797 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1912/2.363, allocations: 57.2 MB / 299.1 MB, free: 488 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/2.65, allocations: 54.85 MB / 354 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.795/9.446, allocations: 2.657 GB / 3.003 GB, free: 111.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/9.446, allocations: 79.91 kB / 3.003 GB, free: 111.3 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.293/13.74, allocations: 0.7986 GB / 3.802 GB, free: 31.06 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/13.74, allocations: 10.92 kB / 3.802 GB, free: 31.06 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/13.75, allocations: 0.8766 MB / 3.803 GB, free: 30.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/13.76, allocations: 2.114 MB / 3.805 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000509/13.76, allocations: 105.5 kB / 3.805 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001611/13.76, allocations: 112.7 kB / 3.805 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01349/13.78, allocations: 2.609 MB / 3.807 GB, free: 30.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/13.79, allocations: 2.854 MB / 3.81 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001335/13.79, allocations: 10.47 kB / 3.81 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001113/13.79, allocations: 9 kB / 3.81 GB, free: 29.38 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003954/13.79, allocations: 172.3 kB / 3.81 GB, free: 29.36 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7168/14.51, allocations: 79.96 MB / 3.888 GB, free: 67.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003368/14.51, allocations: 1.125 MB / 3.89 GB, free: 67.27 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00308/14.52, allocations: 1.011 MB / 3.891 GB, free: 67.26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06348/14.58, allocations: 17.45 MB / 3.908 GB, free: 56.37 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003571/14.58, allocations: 1.196 MB / 3.909 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 5.711e-06/14.58, allocations: 0 / 3.909 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.03965/14.62, allocations: 8.325 MB / 3.917 GB, free: 54.81 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/14.62, allocations: 385.7 kB / 3.917 GB, free: 54.37 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003356/14.63, allocations: 1.149 MB / 3.918 GB, free: 54.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005828/14.63, allocations: 25.7 kB / 3.918 GB, free: 54.17 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000989/14.63, allocations: 0.781 MB / 3.919 GB, free: 53.82 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001226/14.63, allocations: 0.5406 MB / 3.92 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004956/14.63, allocations: 0 / 3.92 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002711/14.63, allocations: 396.5 kB / 3.92 GB, free: 53.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003717/14.63, allocations: 1.144 MB / 3.921 GB, free: 53.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005011/14.64, allocations: 1.633 MB / 3.923 GB, free: 52.69 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04305/14.68, allocations: 3.515 MB / 3.926 GB, free: 52.67 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-05/14.68, allocations: 3.25 kB / 3.926 GB, free: 52.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.04979/14.73, allocations: 6.528 MB / 3.933 GB, free: 52.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001372/14.73, allocations: 5.23 MB / 3.938 GB, free: 47.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001253/14.73, allocations: 11.03 kB / 3.938 GB, free: 47.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01572/14.75, allocations: 2.147 MB / 3.94 GB, free: 47.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/14.75, allocations: 315.6 kB / 3.94 GB, free: 47.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/14.77, allocations: 4.286 MB / 3.944 GB, free: 46.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004926/14.77, allocations: 250.6 kB / 3.945 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008756/14.77, allocations: 109.6 kB / 3.945 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/14.77, allocations: 4.094 kB / 3.945 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03246/14.8, allocations: 5.317 MB / 3.95 GB, free: 46.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/14.81, allocations: 19.86 kB / 3.95 GB, free: 46.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01236/14.82, allocations: 1.607 MB / 3.951 GB, free: 46.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002963/14.82, allocations: 360.2 kB / 3.952 GB, free: 46.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007329/14.83, allocations: 3.005 MB / 3.955 GB, free: 45.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/14.83, allocations: 232.5 kB / 3.955 GB, free: 45.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007443/14.83, allocations: 106 kB / 3.955 GB, free: 45.9 MB / 0.5105 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.0008794/14.83, allocations: 199.2 kB / 3.955 GB, free: 45.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003083/14.84, allocations: 0.6541 MB / 3.956 GB, free: 45.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02229/14.86, allocations: 6.654 MB / 3.962 GB, free: 45.17 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-05/14.86, allocations: 58.78 kB / 3.962 GB, free: 45.17 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/14.86, allocations: 3.375 kB / 3.962 GB, free: 45.17 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01314/14.87, allocations: 5.464 MB / 3.968 GB, free: 44.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02655/14.9, allocations: 9.183 MB / 3.977 GB, free: 43.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-05/14.9, allocations: 3.844 kB / 3.977 GB, free: 43.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003982/14.9, allocations: 336.2 kB / 3.977 GB, free: 43.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/14.91, allocations: 335.8 kB / 3.977 GB, free: 43.67 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005808/14.91, allocations: 53.2 kB / 3.977 GB, free: 43.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/14.91, allocations: 2.724 MB / 3.98 GB, free: 41.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/14.91, allocations: 2.938 kB / 3.98 GB, free: 41.58 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02786/14.94, allocations: 7.108 MB / 3.987 GB, free: 41.01 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02773/14.96, allocations: 9.644 MB / 3.996 GB, free: 40.05 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003274/14.97, allocations: 0.6801 MB / 3.997 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/14.97, allocations: 18.17 kB / 3.997 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005732/14.98, allocations: 158 kB / 3.997 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001149/14.98, allocations: 126.3 kB / 3.997 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005083/14.98, allocations: 73.31 kB / 3.997 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003919/14.98, allocations: 1.053 MB / 3.998 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01779/15, allocations: 3.168 MB / 4.002 GB, free: 39.58 MB / 0.5105 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.02027/15.02, allocations: 3.062 MB / 4.005 GB, free: 39.17 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01729/15.04, allocations: 5.56 MB / 4.01 GB, free: 38.94 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/15.04, allocations: 0 / 4.01 GB, free: 38.94 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008468/15.05, allocations: 2.864 MB / 4.013 GB, free: 38.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01209/15.06, allocations: 0.7349 MB / 4.013 GB, free: 38.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1063/15.16, allocations: 20.32 MB / 4.033 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004888/15.17, allocations: 2.33 MB / 4.036 GB, free: 33.15 MB / 0.5105 GB Notification: Performance of SimCode: time 1.923e-06/15.17, allocations: 0 / 4.036 GB, free: 33.15 MB / 0.5105 GB