Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_2_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.194/2.194, allocations: 235 MB / 241.9 MB, free: 9.789 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1752/2.369, allocations: 57.2 MB / 299.1 MB, free: 496 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/2.703, allocations: 54.85 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.827/9.531, allocations: 2.657 GB / 3.003 GB, free: 111.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/9.531, allocations: 79.22 kB / 3.003 GB, free: 111.4 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.168/13.7, allocations: 0.7974 GB / 3.8 GB, free: 29.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/13.7, allocations: 11.03 kB / 3.8 GB, free: 29.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/13.71, allocations: 0.8817 MB / 3.801 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01057/13.72, allocations: 2.11 MB / 3.803 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/13.72, allocations: 100.1 kB / 3.803 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/13.72, allocations: 114.2 kB / 3.804 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008945/13.73, allocations: 2.614 MB / 3.806 GB, free: 28.71 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008802/13.74, allocations: 2.853 MB / 3.809 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.672e-05/13.74, allocations: 12.62 kB / 3.809 GB, free: 27.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003822/13.74, allocations: 9.625 kB / 3.809 GB, free: 27.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000223/13.74, allocations: 169.5 kB / 3.809 GB, free: 27.38 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.658/14.4, allocations: 79.97 MB / 3.887 GB, free: 89.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00309/14.4, allocations: 1.13 MB / 3.888 GB, free: 89.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002453/14.4, allocations: 1.013 MB / 3.889 GB, free: 89.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06829/14.47, allocations: 17.45 MB / 3.906 GB, free: 78.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003119/14.48, allocations: 1.194 MB / 3.907 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 5.68e-06/14.48, allocations: 0 / 3.907 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.03937/14.52, allocations: 8.318 MB / 3.916 GB, free: 77.29 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/14.52, allocations: 385.7 kB / 3.916 GB, free: 76.86 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/14.52, allocations: 1.142 MB / 3.917 GB, free: 76.69 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000572/14.52, allocations: 29.55 kB / 3.917 GB, free: 76.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001319/14.52, allocations: 0.7821 MB / 3.918 GB, free: 76.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001316/14.52, allocations: 0.5337 MB / 3.918 GB, free: 76.03 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003517/14.52, allocations: 0 / 3.918 GB, free: 76.03 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002494/14.52, allocations: 387.4 kB / 3.919 GB, free: 75.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003502/14.53, allocations: 1.151 MB / 3.92 GB, free: 75.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004142/14.53, allocations: 1.635 MB / 3.921 GB, free: 75.18 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02791/14.56, allocations: 3.506 MB / 3.925 GB, free: 75.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-05/14.56, allocations: 3.844 kB / 3.925 GB, free: 75.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03637/14.59, allocations: 5.918 MB / 3.931 GB, free: 74.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001379/14.6, allocations: 5.221 MB / 3.936 GB, free: 69.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.134e-05/14.6, allocations: 13.25 kB / 3.936 GB, free: 69.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/14.6, allocations: 257.6 kB / 3.936 GB, free: 69.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004578/14.6, allocations: 0.5243 MB / 3.937 GB, free: 69.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/14.6, allocations: 2.56 MB / 3.939 GB, free: 67.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/14.61, allocations: 251.2 kB / 3.939 GB, free: 67.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004924/14.61, allocations: 110.5 kB / 3.939 GB, free: 67.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/14.61, allocations: 9.188 kB / 3.939 GB, free: 67.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03045/14.64, allocations: 4.894 MB / 3.944 GB, free: 67.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.367e-05/14.64, allocations: 17.22 kB / 3.944 GB, free: 67.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/14.64, allocations: 250.5 kB / 3.944 GB, free: 67.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004419/14.65, allocations: 0.5261 MB / 3.945 GB, free: 67.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/14.65, allocations: 2.56 MB / 3.947 GB, free: 65.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004277/14.65, allocations: 232.1 kB / 3.948 GB, free: 65.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004937/14.65, allocations: 101.9 kB / 3.948 GB, free: 65.3 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 (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.0009455/14.65, allocations: 206.1 kB / 3.948 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002947/14.66, allocations: 0.6498 MB / 3.949 GB, free: 65.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/14.67, allocations: 6.661 MB / 3.955 GB, free: 64.57 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.516e-05/14.67, allocations: 60.72 kB / 3.955 GB, free: 64.57 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/14.67, allocations: 0 / 3.955 GB, free: 64.57 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01247/14.69, allocations: 5.471 MB / 3.96 GB, free: 63.92 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/14.71, allocations: 9.178 MB / 3.969 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/14.71, allocations: 3.281 kB / 3.969 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003068/14.71, allocations: 331.7 kB / 3.97 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/14.71, allocations: 332.7 kB / 3.97 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004415/14.71, allocations: 47.8 kB / 3.97 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/14.72, allocations: 2.729 MB / 3.973 GB, free: 60.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/14.72, allocations: 4.828 kB / 3.973 GB, free: 60.97 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02221/14.74, allocations: 7.114 MB / 3.98 GB, free: 60.4 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03401/14.77, allocations: 9.648 MB / 3.989 GB, free: 59.44 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002591/14.78, allocations: 0.6721 MB / 3.99 GB, free: 59.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001024/14.78, allocations: 20.69 kB / 3.99 GB, free: 59.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003584/14.78, allocations: 161.5 kB / 3.99 GB, free: 59.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006839/14.78, allocations: 130.7 kB / 3.99 GB, free: 59.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/14.78, allocations: 66.09 kB / 3.99 GB, free: 59.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002547/14.78, allocations: 1.051 MB / 3.991 GB, free: 59.09 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02339/14.81, allocations: 3.172 MB / 3.994 GB, free: 58.97 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.01751/14.82, allocations: 3.036 MB / 3.997 GB, free: 58.68 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01366/14.84, allocations: 5.502 MB / 4.003 GB, free: 58.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/14.84, allocations: 0 / 4.003 GB, free: 58.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006148/14.84, allocations: 2.863 MB / 4.005 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008945/14.85, allocations: 0.7363 MB / 4.006 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08233/14.94, allocations: 20.34 MB / 4.026 GB, free: 56.98 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004409/14.94, allocations: 2.364 MB / 4.028 GB, free: 56.18 MB / 0.5261 GB Notification: Performance of SimCode: time 1.733e-06/14.94, allocations: 2.344 kB / 4.028 GB, free: 56.18 MB / 0.5261 GB