Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.459/2.459, allocations: 270 MB / 283.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.438e-05/3.454e-05, allocations: 4 kB / 348.4 MB, free: 2.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3938, allocations: 61.88 MB / 410.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.963/7.357, allocations: 2.832 GB / 3.233 GB, free: 87.39 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/7.357, allocations: 75.84 kB / 3.233 GB, free: 87.35 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.713/11.07, allocations: 0.8106 GB / 4.044 GB, free: 45.98 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.098e-06/11.07, allocations: 3.938 kB / 4.044 GB, free: 45.98 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.00028/11.07, allocations: 64.81 kB / 4.044 GB, free: 45.97 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.01485/11.09, allocations: 3.857 MB / 4.047 GB, free: 44.13 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/11.09, allocations: 7.75 kB / 4.047 GB, free: 44.13 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008105/11.09, allocations: 0.8496 MB / 4.048 GB, free: 44 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007016/11.1, allocations: 2.077 MB / 4.05 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/11.1, allocations: 185.3 kB / 4.05 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007861/11.1, allocations: 193.3 kB / 4.051 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/11.11, allocations: 3.557 MB / 4.054 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.92e-05/11.11, allocations: 7.375 kB / 4.054 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000392/11.11, allocations: 91.19 kB / 4.054 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002543/11.11, allocations: 164.3 kB / 4.054 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/11.12, allocations: 3.136 MB / 4.057 GB, free: 42.97 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.02461/11.15, allocations: 15.22 MB / 4.072 GB, free: 33.94 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006925/11.16, allocations: 2.224 MB / 4.074 GB, free: 33.91 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/11.16, allocations: 1.065 MB / 4.075 GB, free: 33.89 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05577/11.21, allocations: 24.55 MB / 4.099 GB, free: 18.6 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005742/11.22, allocations: 1.66 MB / 4.101 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.65e-06/11.22, allocations: 0 / 4.101 GB, free: 18.5 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.0339/11.25, allocations: 9.205 MB / 4.11 GB, free: 17.48 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.483e-05/11.25, allocations: 286.8 kB / 4.11 GB, free: 17.17 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/11.26, allocations: 1.441 MB / 4.112 GB, free: 16.98 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004226/11.26, allocations: 60.08 kB / 4.112 GB, free: 16.95 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008245/11.26, allocations: 0.9637 MB / 4.113 GB, free: 16.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006226/11.26, allocations: 0.5809 MB / 4.113 GB, free: 16.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/11.26, allocations: 38.28 kB / 4.113 GB, free: 16.2 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001399/11.26, allocations: 393.3 kB / 4.114 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002151/11.26, allocations: 1.047 MB / 4.115 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00255/11.26, allocations: 1.502 MB / 4.116 GB, free: 15.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/11.27, allocations: 1.272 MB / 4.117 GB, free: 15.3 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/11.27, allocations: 6.688 kB / 4.117 GB, free: 15.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007257/11.27, allocations: 3.086 MB / 4.12 GB, free: 15.05 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002486/11.28, allocations: 4.816 MB / 4.125 GB, free: 25.94 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.876e-05/11.28, allocations: 11.59 kB / 4.125 GB, free: 25.94 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/11.28, allocations: 258.3 kB / 4.125 GB, free: 25.85 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003077/11.28, allocations: 0.5146 MB / 4.126 GB, free: 25.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/11.28, allocations: 2.489 MB / 4.128 GB, free: 23.58 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003288/11.29, allocations: 265.9 kB / 4.129 GB, free: 23.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004593/11.29, allocations: 100.7 kB / 4.129 GB, free: 23.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/11.29, allocations: 4.156 kB / 4.129 GB, free: 23.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006455/11.29, allocations: 2.829 MB / 4.131 GB, free: 22.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.251e-05/11.29, allocations: 11.25 kB / 4.131 GB, free: 22.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001156/11.29, allocations: 257.3 kB / 4.132 GB, free: 22.44 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003217/11.3, allocations: 0.5023 MB / 4.132 GB, free: 22.39 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/11.3, allocations: 2.496 MB / 4.135 GB, free: 20.14 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002948/11.3, allocations: 261.1 kB / 4.135 GB, free: 20.08 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004314/11.3, allocations: 99.86 kB / 4.135 GB, free: 20.06 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.0007292/11.3, allocations: 272 kB / 4.135 GB, free: 19.82 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006116/11.3, allocations: 203.5 kB / 4.135 GB, free: 19.72 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01808/11.32, allocations: 7.746 MB / 4.143 GB, free: 15.89 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.416e-05/11.32, allocations: 93.41 kB / 4.143 GB, free: 15.84 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/11.32, allocations: 4 kB / 4.143 GB, free: 15.83 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009517/11.33, allocations: 6.638 MB / 4.15 GB, free: 9.66 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02043/11.35, allocations: 10.94 MB / 4.16 GB, free: 196 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/11.35, allocations: 0 / 4.16 GB, free: 196 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002882/11.36, allocations: 421.4 kB / 4.161 GB, free: 15.89 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001693/11.36, allocations: 349.3 kB / 4.161 GB, free: 15.62 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003999/11.36, allocations: 67.11 kB / 4.161 GB, free: 15.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00242/11.36, allocations: 2.574 MB / 4.164 GB, free: 13 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.98e-06/11.36, allocations: 1.875 kB / 4.164 GB, free: 13 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/11.37, allocations: 6.971 MB / 4.17 GB, free: 6.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002279/11.38, allocations: 0.7811 MB / 4.171 GB, free: 5.895 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007035/11.38, allocations: 47.05 kB / 4.171 GB, free: 5.852 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002466/11.38, allocations: 204.5 kB / 4.171 GB, free: 5.695 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004471/11.38, allocations: 151.7 kB / 4.172 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002566/11.38, allocations: 63.5 kB / 4.172 GB, free: 5.551 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002846/11.38, allocations: 1.298 MB / 4.173 GB, free: 4.352 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.04e-06/11.38, allocations: 0 / 4.173 GB, free: 4.352 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01137/11.39, allocations: 2.794 MB / 4.176 GB, free: 1.613 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.3809/11.77, allocations: 2.866 MB / 4.178 GB, free: 75.49 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01145/11.79, allocations: 5.016 MB / 4.183 GB, free: 75.21 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.616e-06/11.79, allocations: 3.219 kB / 4.183 GB, free: 75.21 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004727/11.79, allocations: 2.366 MB / 4.186 GB, free: 75.14 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006174/11.8, allocations: 0.9304 MB / 4.187 GB, free: 75.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/11.81, allocations: 6.226 MB / 4.193 GB, free: 74.01 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002272/11.81, allocations: 2.312 MB / 4.195 GB, free: 73.24 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007625/11.82, allocations: 2.874 MB / 4.198 GB, free: 73.19 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008984/11.82, allocations: 172.5 kB / 4.198 GB, free: 73.19 MB / 0.5886 GB Notification: Performance of SimCode: time 1.928e-06/11.82, allocations: 0.7656 kB / 4.198 GB, free: 73.19 MB / 0.5886 GB Notification: Performance of Templates: time 0.176/12, allocations: 88.99 MB / 4.285 GB, free: 69.12 MB / 0.5886 GB