Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.343/2.343, allocations: 270 MB / 282.7 MB, free: 1.738 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.81e-05/3.819e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3336, allocations: 61.89 MB / 408.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.999/7.333, allocations: 2.832 GB / 3.231 GB, free: 88.05 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/7.333, allocations: 82.02 kB / 3.232 GB, free: 88.01 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 3.722/11.06, allocations: 0.8106 GB / 4.042 GB, free: 45.62 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.518e-06/11.06, allocations: 0 / 4.042 GB, free: 45.62 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002739/11.06, allocations: 61.31 kB / 4.042 GB, free: 45.61 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.01454/11.07, allocations: 3.855 MB / 4.046 GB, free: 43.76 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/11.07, allocations: 7.719 kB / 4.046 GB, free: 43.76 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008401/11.08, allocations: 0.8479 MB / 4.047 GB, free: 43.62 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006979/11.09, allocations: 2.088 MB / 4.049 GB, free: 43.17 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002999/11.09, allocations: 179.2 kB / 4.049 GB, free: 43.17 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008515/11.09, allocations: 198.4 kB / 4.049 GB, free: 43.16 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/11.1, allocations: 3.554 MB / 4.053 GB, free: 42.61 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.113e-05/11.1, allocations: 6.562 kB / 4.053 GB, free: 42.61 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004186/11.1, allocations: 86.2 kB / 4.053 GB, free: 42.61 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002415/11.1, allocations: 163.9 kB / 4.053 GB, free: 42.61 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00975/11.11, allocations: 3.138 MB / 4.056 GB, free: 42.6 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.0251/11.13, allocations: 15.22 MB / 4.071 GB, free: 33.57 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006886/11.14, allocations: 2.226 MB / 4.073 GB, free: 33.54 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002268/11.14, allocations: 1.061 MB / 4.074 GB, free: 33.52 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05443/11.2, allocations: 24.55 MB / 4.098 GB, free: 18.25 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005705/11.2, allocations: 1.665 MB / 4.1 GB, free: 18.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.84e-06/11.2, allocations: 0 / 4.1 GB, free: 18.14 MB / 0.5573 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe3.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=171): time 0.03405/11.24, allocations: 9.216 MB / 4.109 GB, free: 17.12 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.819e-05/11.24, allocations: 278.2 kB / 4.109 GB, free: 16.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/11.24, allocations: 1.447 MB / 4.11 GB, free: 16.62 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004645/11.24, allocations: 55.2 kB / 4.11 GB, free: 16.59 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007659/11.24, allocations: 0.9121 MB / 4.111 GB, free: 16.13 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007966/11.24, allocations: 0.5783 MB / 4.112 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/11.24, allocations: 39.34 kB / 4.112 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001587/11.24, allocations: 392.6 kB / 4.112 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002346/11.25, allocations: 1.049 MB / 4.113 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002764/11.25, allocations: 1.501 MB / 4.115 GB, free: 14.94 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002693/11.25, allocations: 1.277 MB / 4.116 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/11.25, allocations: 3.969 kB / 4.116 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007203/11.26, allocations: 2.974 MB / 4.119 GB, free: 14.68 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00268/11.26, allocations: 4.662 MB / 4.123 GB, free: 25.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-05/11.26, allocations: 11.16 kB / 4.123 GB, free: 25.79 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/11.26, allocations: 260.1 kB / 4.124 GB, free: 25.76 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003149/11.26, allocations: 0.5056 MB / 4.124 GB, free: 25.75 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/11.27, allocations: 2.493 MB / 4.127 GB, free: 23.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00327/11.27, allocations: 267.6 kB / 4.127 GB, free: 23.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005524/11.27, allocations: 103.2 kB / 4.127 GB, free: 23.64 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/11.27, allocations: 3.375 kB / 4.127 GB, free: 23.64 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006788/11.28, allocations: 2.825 MB / 4.13 GB, free: 22.76 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.792e-05/11.28, allocations: 11.91 kB / 4.13 GB, free: 22.76 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/11.28, allocations: 262.9 kB / 4.13 GB, free: 22.66 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/11.28, allocations: 0.5061 MB / 4.13 GB, free: 22.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/11.28, allocations: 2.483 MB / 4.133 GB, free: 20.37 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002686/11.29, allocations: 259 kB / 4.133 GB, free: 20.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004797/11.29, allocations: 102.1 kB / 4.133 GB, free: 20.28 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 (246): * Single equations (assignments): 239 * 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.0008053/11.29, allocations: 268.4 kB / 4.134 GB, free: 20.04 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005866/11.29, allocations: 207.6 kB / 4.134 GB, free: 19.94 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/11.3, allocations: 7.753 MB / 4.141 GB, free: 16.45 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.551e-05/11.3, allocations: 94.92 kB / 4.141 GB, free: 16.39 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/11.3, allocations: 0 / 4.141 GB, free: 16.39 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009706/11.31, allocations: 6.639 MB / 4.148 GB, free: 10.23 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02036/11.33, allocations: 10.94 MB / 4.159 GB, free: 0.7617 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/11.33, allocations: 0 / 4.159 GB, free: 0.7617 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00258/11.34, allocations: 410 kB / 4.159 GB, free: 440 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/11.34, allocations: 351.6 kB / 4.159 GB, free: 160 kB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004137/11.34, allocations: 71.34 kB / 4.159 GB, free: 100 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002445/11.34, allocations: 2.562 MB / 4.162 GB, free: 13.54 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.336e-06/11.34, allocations: 5.531 kB / 4.162 GB, free: 13.54 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/11.36, allocations: 6.966 MB / 4.169 GB, free: 7.125 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/11.36, allocations: 0.7755 MB / 4.169 GB, free: 6.438 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007315/11.36, allocations: 51.66 kB / 4.169 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002564/11.36, allocations: 203.3 kB / 4.17 GB, free: 6.238 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/11.36, allocations: 149.2 kB / 4.17 GB, free: 6.148 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/11.36, allocations: 71.5 kB / 4.17 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002994/11.37, allocations: 1.289 MB / 4.171 GB, free: 4.891 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.881e-06/11.37, allocations: 8.031 kB / 4.171 GB, free: 4.883 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01183/11.38, allocations: 2.798 MB / 4.174 GB, free: 2.145 MB / 0.5886 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.3802/11.76, allocations: 2.878 MB / 4.177 GB, free: 0 / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01117/11.77, allocations: 4.947 MB / 4.182 GB, free: 75.16 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.281e-06/11.77, allocations: 3.188 kB / 4.182 GB, free: 75.16 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004443/11.77, allocations: 2.36 MB / 4.184 GB, free: 75.09 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005959/11.78, allocations: 0.9189 MB / 4.185 GB, free: 75.07 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/11.79, allocations: 6.272 MB / 4.191 GB, free: 73.96 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002051/11.79, allocations: 2.263 MB / 4.193 GB, free: 73.21 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/11.8, allocations: 213.5 kB / 4.193 GB, free: 73.21 MB / 0.5886 GB Notification: Performance of SimCode: time 1.677e-06/11.8, allocations: 3.781 kB / 4.193 GB, free: 73.21 MB / 0.5886 GB Notification: Performance of Templates: time 0.1534/11.95, allocations: 118 MB / 4.308 GB, free: 62.58 MB / 0.5886 GB