Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.586/2.586, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.997e-05/5.009e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4218, allocations: 61.88 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.571/8.993, allocations: 2.832 GB / 3.232 GB, free: 70.65 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/8.993, allocations: 75.59 kB / 3.232 GB, free: 70.61 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:306:3-308: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: Performance of FrontEnd - DAE generated: time 4.565/13.56, allocations: 0.8119 GB / 4.044 GB, free: 46.84 MB / 0.5573 GB Notification: Performance of FrontEnd: time 6.292e-06/13.56, allocations: 0 / 4.044 GB, free: 46.84 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0005894/13.56, allocations: 66.05 kB / 4.044 GB, free: 46.83 MB / 0.5573 GB 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 0.02407/13.58, allocations: 3.856 MB / 4.047 GB, free: 44.99 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/13.58, allocations: 12.38 kB / 4.047 GB, free: 44.99 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001533/13.58, allocations: 291.5 kB / 4.048 GB, free: 44.94 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01365/13.6, allocations: 0.842 MB / 4.049 GB, free: 44.8 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/13.61, allocations: 2.082 MB / 4.051 GB, free: 44.35 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004582/13.61, allocations: 182.9 kB / 4.051 GB, free: 44.35 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/13.61, allocations: 202.5 kB / 4.051 GB, free: 44.34 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01672/13.63, allocations: 3.55 MB / 4.054 GB, free: 43.79 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/13.63, allocations: 7.344 kB / 4.054 GB, free: 43.79 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006869/13.63, allocations: 87.44 kB / 4.054 GB, free: 43.79 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004235/13.63, allocations: 166.2 kB / 4.055 GB, free: 43.79 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/13.65, allocations: 3.136 MB / 4.058 GB, free: 43.78 MB / 0.5573 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03498/13.68, allocations: 15.21 MB / 4.073 GB, free: 34.74 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008021/13.69, allocations: 2.222 MB / 4.075 GB, free: 34.71 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002899/13.69, allocations: 1.064 MB / 4.076 GB, free: 34.7 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07781/13.77, allocations: 24.55 MB / 4.1 GB, free: 19.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006181/13.78, allocations: 1.655 MB / 4.101 GB, free: 19.3 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 5.61e-06/13.78, allocations: 3.938 kB / 4.101 GB, free: 19.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=171): time 0.0279/13.8, allocations: 7.046 MB / 4.108 GB, free: 17.79 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/13.8, allocations: 276.3 kB / 4.108 GB, free: 17.48 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/13.81, allocations: 1.447 MB / 4.11 GB, free: 16.93 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005993/13.81, allocations: 61.02 kB / 4.11 GB, free: 16.88 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001723/13.81, allocations: 0.8999 MB / 4.111 GB, free: 32.11 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001055/13.81, allocations: 0.5826 MB / 4.111 GB, free: 31.66 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003122/13.81, allocations: 41.66 kB / 4.111 GB, free: 31.63 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002885/13.81, allocations: 396.7 kB / 4.112 GB, free: 31.29 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003111/13.81, allocations: 1.042 MB / 4.113 GB, free: 30.91 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003591/13.82, allocations: 1.496 MB / 4.114 GB, free: 29.98 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003628/13.82, allocations: 1.277 MB / 4.116 GB, free: 29.49 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.827e-05/13.82, allocations: 3.25 kB / 4.116 GB, free: 29.49 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01085/13.83, allocations: 3.533 MB / 4.119 GB, free: 28.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002069/13.83, allocations: 4.652 MB / 4.124 GB, free: 23.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.782e-05/13.83, allocations: 18.91 kB / 4.124 GB, free: 23.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02752/13.86, allocations: 3.021 MB / 4.127 GB, free: 21.94 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002411/13.86, allocations: 310.9 kB / 4.127 GB, free: 21.68 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007883/13.87, allocations: 3.31 MB / 4.13 GB, free: 18.79 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00437/13.88, allocations: 260.5 kB / 4.13 GB, free: 18.59 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005981/13.88, allocations: 102.9 kB / 4.13 GB, free: 18.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/13.88, allocations: 5.25 kB / 4.13 GB, free: 18.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009542/13.89, allocations: 3.245 MB / 4.134 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-05/13.89, allocations: 12 kB / 4.134 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/13.9, allocations: 1.574 MB / 4.135 GB, free: 14.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002812/13.9, allocations: 346.7 kB / 4.135 GB, free: 14.11 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005541/13.91, allocations: 2.562 MB / 4.138 GB, free: 11.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003556/13.91, allocations: 260.5 kB / 4.138 GB, free: 11.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006849/13.91, allocations: 99.36 kB / 4.138 GB, free: 11.57 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,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 (157): * Single equations (assignments): 153 * 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.0009729/13.91, allocations: 263.3 kB / 4.139 GB, free: 11.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000715/13.91, allocations: 207.2 kB / 4.139 GB, free: 11.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01818/13.93, allocations: 7.751 MB / 4.146 GB, free: 4.16 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001343/13.93, allocations: 91.95 kB / 4.146 GB, free: 4.105 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/13.93, allocations: 0 / 4.146 GB, free: 4.105 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4845/14.42, allocations: 6.875 MB / 4.153 GB, free: 60.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02249/14.44, allocations: 10.93 MB / 4.164 GB, free: 60.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-05/14.44, allocations: 3.891 kB / 4.164 GB, free: 60.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003681/14.44, allocations: 408.8 kB / 4.164 GB, free: 60.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/14.44, allocations: 348.2 kB / 4.165 GB, free: 60.09 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006044/14.44, allocations: 66.77 kB / 4.165 GB, free: 60.09 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/14.45, allocations: 2.567 MB / 4.167 GB, free: 58.02 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/14.45, allocations: 2.938 kB / 4.167 GB, free: 58.02 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/14.46, allocations: 6.974 MB / 4.174 GB, free: 57.58 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002439/14.46, allocations: 0.7777 MB / 4.175 GB, free: 57.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007954/14.46, allocations: 51.38 kB / 4.175 GB, free: 57.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003261/14.47, allocations: 204 kB / 4.175 GB, free: 57.39 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00046/14.47, allocations: 148.4 kB / 4.175 GB, free: 57.39 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/14.47, allocations: 71.8 kB / 4.175 GB, free: 57.39 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002769/14.47, allocations: 1.29 MB / 4.176 GB, free: 57.23 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.41e-07/14.47, allocations: 0 / 4.176 GB, free: 57.23 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01374/14.48, allocations: 2.797 MB / 4.179 GB, free: 57.23 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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 (198): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.03016/14.51, allocations: 10.27 MB / 4.189 GB, free: 56.02 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01252/14.53, allocations: 4.997 MB / 4.194 GB, free: 55.73 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/14.53, allocations: 0 / 4.194 GB, free: 55.73 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005331/14.53, allocations: 2.367 MB / 4.196 GB, free: 55.66 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008688/14.54, allocations: 0.9317 MB / 4.197 GB, free: 55.64 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02282/14.56, allocations: 7.666 MB / 4.205 GB, free: 54.23 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00239/14.57, allocations: 2.256 MB / 4.207 GB, free: 53.49 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002773/14.57, allocations: 1.33 MB / 4.208 GB, free: 53.48 MB / 0.573 GB Notification: Performance of SimCode: time 1.432e-06/14.57, allocations: 0 / 4.208 GB, free: 53.48 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.37/19.94, allocations: 112.5 MB / 4.318 GB, free: 31.27 MB / 0.573 GB