Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_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.057/2.057, allocations: 209.3 MB / 216.3 MB, free: 6.789 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.217/2.274, allocations: 51.03 MB / 267.3 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/2.387, allocations: 48.69 MB / 316 MB, free: 4.352 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.459/8.846, allocations: 2.547 GB / 2.856 GB, free: 68.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003975/8.846, allocations: 78.45 kB / 2.856 GB, free: 68.51 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.972/13.82, allocations: 0.8403 GB / 3.696 GB, free: 21.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/13.82, allocations: 12.41 kB / 3.696 GB, free: 21.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01619/13.83, allocations: 0.8461 MB / 3.697 GB, free: 21.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01386/13.85, allocations: 2.101 MB / 3.699 GB, free: 20.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004535/13.85, allocations: 98.77 kB / 3.699 GB, free: 20.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001121/13.85, allocations: 122.1 kB / 3.699 GB, free: 20.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00841/13.86, allocations: 2.606 MB / 3.702 GB, free: 20.67 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008822/13.87, allocations: 2.849 MB / 3.704 GB, free: 20.14 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.135e-05/13.87, allocations: 6.594 kB / 3.704 GB, free: 20.14 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004324/13.87, allocations: 6.031 kB / 3.704 GB, free: 20.14 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002412/13.87, allocations: 176 kB / 3.705 GB, free: 20.14 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6126/14.48, allocations: 79.89 MB / 3.783 GB, free: 83.94 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003232/14.48, allocations: 1.124 MB / 3.784 GB, free: 83.92 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002616/14.49, allocations: 1.008 MB / 3.785 GB, free: 83.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06079/14.55, allocations: 17.46 MB / 3.802 GB, free: 73.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003338/14.55, allocations: 1.187 MB / 3.803 GB, free: 72.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=145): time 5.059e-06/14.55, allocations: 0 / 3.803 GB, free: 72.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=161): time 0.03789/14.59, allocations: 8.281 MB / 3.811 GB, free: 71.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/14.59, allocations: 382 kB / 3.811 GB, free: 71.04 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/14.59, allocations: 1.139 MB / 3.812 GB, free: 70.87 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005401/14.59, allocations: 29.67 kB / 3.812 GB, free: 70.84 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00091/14.59, allocations: 0.7851 MB / 3.813 GB, free: 70.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001031/14.59, allocations: 0.5324 MB / 3.814 GB, free: 70.21 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/14.59, allocations: 0 / 3.814 GB, free: 70.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/14.59, allocations: 386.1 kB / 3.814 GB, free: 69.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/14.6, allocations: 1.146 MB / 3.815 GB, free: 69.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003787/14.6, allocations: 1.625 MB / 3.817 GB, free: 69.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03138/14.63, allocations: 3.513 MB / 3.82 GB, free: 69.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-05/14.63, allocations: 3.938 kB / 3.82 GB, free: 69.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.03943/14.67, allocations: 6.523 MB / 3.827 GB, free: 69.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001132/14.67, allocations: 5.22 MB / 3.832 GB, free: 63.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.927e-05/14.67, allocations: 14.88 kB / 3.832 GB, free: 63.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01569/14.69, allocations: 2.152 MB / 3.834 GB, free: 63.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/14.69, allocations: 315.9 kB / 3.834 GB, free: 63.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/14.7, allocations: 4.286 MB / 3.838 GB, free: 63.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005825/14.71, allocations: 250.6 kB / 3.839 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/14.71, allocations: 105.8 kB / 3.839 GB, free: 63.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/14.71, allocations: 3.625 kB / 3.839 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03594/14.75, allocations: 5.307 MB / 3.844 GB, free: 63.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.497e-05/14.75, allocations: 17.16 kB / 3.844 GB, free: 63.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01124/14.76, allocations: 1.612 MB / 3.845 GB, free: 63.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002875/14.76, allocations: 367.9 kB / 3.846 GB, free: 63.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007375/14.77, allocations: 2.995 MB / 3.849 GB, free: 62.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004121/14.77, allocations: 231.9 kB / 3.849 GB, free: 62.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006387/14.77, allocations: 104.3 kB / 3.849 GB, free: 62.58 MB / 490.7 MB 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.0008387/14.78, allocations: 195.1 kB / 3.849 GB, free: 62.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002976/14.78, allocations: 0.6518 MB / 3.85 GB, free: 62.35 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01923/14.8, allocations: 6.647 MB / 3.856 GB, free: 61.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001344/14.8, allocations: 56.17 kB / 3.856 GB, free: 61.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/14.8, allocations: 2.812 kB / 3.856 GB, free: 61.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01476/14.81, allocations: 5.448 MB / 3.862 GB, free: 61.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03113/14.84, allocations: 9.159 MB / 3.871 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.508e-05/14.84, allocations: 10.33 kB / 3.871 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003912/14.85, allocations: 324.5 kB / 3.871 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/14.85, allocations: 338.7 kB / 3.871 GB, free: 60.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005352/14.85, allocations: 47.03 kB / 3.871 GB, free: 60.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002204/14.85, allocations: 2.718 MB / 3.874 GB, free: 58.26 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/14.85, allocations: 8.062 kB / 3.874 GB, free: 58.26 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02506/14.88, allocations: 7.092 MB / 3.881 GB, free: 57.69 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02299/14.9, allocations: 9.606 MB / 3.89 GB, free: 56.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/14.9, allocations: 0.6684 MB / 3.891 GB, free: 56.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000945/14.9, allocations: 19.09 kB / 3.891 GB, free: 56.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003383/14.91, allocations: 163.2 kB / 3.891 GB, free: 56.49 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006192/14.91, allocations: 130.5 kB / 3.891 GB, free: 56.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000301/14.91, allocations: 64.95 kB / 3.891 GB, free: 56.49 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.002882/14.91, allocations: 1.053 MB / 3.892 GB, free: 56.38 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01863/14.93, allocations: 3.156 MB / 3.895 GB, free: 56.27 MB / 490.7 MB 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.01698/14.95, allocations: 3.04 MB / 3.898 GB, free: 55.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01376/14.96, allocations: 5.532 MB / 3.904 GB, free: 55.75 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/14.96, allocations: 0 / 3.904 GB, free: 55.75 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005938/14.97, allocations: 2.847 MB / 3.907 GB, free: 55.71 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008663/14.98, allocations: 0.7139 MB / 3.907 GB, free: 55.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08826/15.06, allocations: 19.86 MB / 3.927 GB, free: 50.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005842/15.07, allocations: 2.329 MB / 3.929 GB, free: 49.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.923e-06/15.07, allocations: 0 / 3.929 GB, free: 49.9 MB / 490.7 MB