Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 270 MB / 283.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.824e-05/4.837e-05, allocations: 4.812 kB / 348.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 61.88 MB / 410.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.927/7.037, allocations: 2.832 GB / 3.233 GB, free: 28.22 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/7.038, allocations: 77.95 kB / 3.233 GB, free: 28.18 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/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.648/10.69, allocations: 0.8119 GB / 4.045 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.142e-06/10.69, allocations: 0 / 4.045 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002187/10.69, allocations: 63.92 kB / 4.045 GB, free: 29.2 MB / 0.5417 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.01345/10.7, allocations: 3.856 MB / 4.049 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/10.7, allocations: 8.031 kB / 4.049 GB, free: 25.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007833/10.71, allocations: 0.8451 MB / 4.05 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006415/10.71, allocations: 2.08 MB / 4.052 GB, free: 22.73 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/10.71, allocations: 183.7 kB / 4.052 GB, free: 22.55 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006425/10.72, allocations: 200.2 kB / 4.052 GB, free: 22.36 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009256/10.72, allocations: 3.554 MB / 4.055 GB, free: 18.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-05/10.72, allocations: 11.94 kB / 4.055 GB, free: 18.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/10.72, allocations: 83.97 kB / 4.055 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002309/10.73, allocations: 163.5 kB / 4.056 GB, free: 18.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008765/10.73, allocations: 3.138 MB / 4.059 GB, free: 15.2 MB / 0.5417 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.02393/10.76, allocations: 15.21 MB / 4.074 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007176/10.77, allocations: 2.227 MB / 4.076 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002465/10.77, allocations: 1.063 MB / 4.077 GB, free: 11.45 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4252/11.19, allocations: 24.53 MB / 4.101 GB, free: 41.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0063/11.2, allocations: 1.658 MB / 4.102 GB, free: 40.93 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 7.052e-06/11.2, allocations: 0 / 4.102 GB, free: 40.93 MB / 0.5573 GB Notification: Performance of matching and sorting (n=171): time 0.02387/11.22, allocations: 7.039 MB / 4.109 GB, free: 40.26 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.649e-05/11.22, allocations: 285.2 kB / 4.109 GB, free: 39.95 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/11.23, allocations: 1.438 MB / 4.111 GB, free: 39.78 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004362/11.23, allocations: 58.39 kB / 4.111 GB, free: 39.75 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009797/11.23, allocations: 0.9653 MB / 4.112 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008351/11.23, allocations: 0.5854 MB / 4.112 GB, free: 39.16 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/11.23, allocations: 39.94 kB / 4.112 GB, free: 39.16 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001581/11.23, allocations: 391.4 kB / 4.113 GB, free: 38.85 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002308/11.23, allocations: 1.054 MB / 4.114 GB, free: 38.84 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00252/11.23, allocations: 1.496 MB / 4.115 GB, free: 38.35 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00254/11.24, allocations: 1.269 MB / 4.117 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/11.24, allocations: 3.688 kB / 4.117 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008148/11.24, allocations: 3.652 MB / 4.12 GB, free: 38.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009593/11.25, allocations: 4.809 MB / 4.125 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.895e-05/11.25, allocations: 12.88 kB / 4.125 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02077/11.27, allocations: 3.022 MB / 4.128 GB, free: 33.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/11.27, allocations: 305 kB / 4.128 GB, free: 33.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006125/11.27, allocations: 3.309 MB / 4.131 GB, free: 32.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/11.28, allocations: 264.3 kB / 4.132 GB, free: 32.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003086/11.28, allocations: 98.89 kB / 4.132 GB, free: 32.43 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/11.28, allocations: 3.625 kB / 4.132 GB, free: 32.43 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007118/11.29, allocations: 3.236 MB / 4.135 GB, free: 32.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.044e-05/11.29, allocations: 22.47 kB / 4.135 GB, free: 32.34 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00746/11.29, allocations: 1.623 MB / 4.136 GB, free: 32.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/11.29, allocations: 351.5 kB / 4.137 GB, free: 32.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004261/11.3, allocations: 2.576 MB / 4.139 GB, free: 31.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002906/11.3, allocations: 259.8 kB / 4.14 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003809/11.3, allocations: 99.34 kB / 4.14 GB, free: 31.75 MB / 0.5573 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.0006586/11.3, allocations: 262.5 kB / 4.14 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005305/11.3, allocations: 203.6 kB / 4.14 GB, free: 31.51 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/11.32, allocations: 7.749 MB / 4.148 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.318e-05/11.32, allocations: 90.92 kB / 4.148 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/11.32, allocations: 0 / 4.148 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00994/11.33, allocations: 6.648 MB / 4.154 GB, free: 29.94 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/11.34, allocations: 10.95 MB / 4.165 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/11.34, allocations: 3 kB / 4.165 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002382/11.35, allocations: 407.8 kB / 4.165 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/11.35, allocations: 349.7 kB / 4.166 GB, free: 29.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003673/11.35, allocations: 67.64 kB / 4.166 GB, free: 29.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/11.35, allocations: 2.573 MB / 4.168 GB, free: 27.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.55e-06/11.35, allocations: 1.031 kB / 4.168 GB, free: 27.12 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/11.36, allocations: 6.964 MB / 4.175 GB, free: 26.49 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002043/11.36, allocations: 0.7842 MB / 4.176 GB, free: 26.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000514/11.36, allocations: 49.92 kB / 4.176 GB, free: 26.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/11.37, allocations: 198.2 kB / 4.176 GB, free: 26.14 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003723/11.37, allocations: 151.4 kB / 4.176 GB, free: 26.14 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/11.37, allocations: 69.02 kB / 4.176 GB, free: 26.14 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002317/11.37, allocations: 1.292 MB / 4.178 GB, free: 25.98 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.95e-07/11.37, allocations: 0 / 4.178 GB, free: 25.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01064/11.38, allocations: 2.804 MB / 4.18 GB, free: 25.85 MB / 0.5573 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.01243/11.39, allocations: 2.853 MB / 4.183 GB, free: 25.54 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01066/11.4, allocations: 5.044 MB / 4.188 GB, free: 25.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.079e-06/11.4, allocations: 2.844 kB / 4.188 GB, free: 25.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004484/11.41, allocations: 2.375 MB / 4.19 GB, free: 25.16 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006025/11.41, allocations: 0.9312 MB / 4.191 GB, free: 25.14 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/11.43, allocations: 6.219 MB / 4.197 GB, free: 23.98 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/11.43, allocations: 2.309 MB / 4.2 GB, free: 23.21 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005506/11.43, allocations: 1.952 MB / 4.201 GB, free: 23.18 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007439/11.43, allocations: 151.7 kB / 4.202 GB, free: 23.17 MB / 0.5573 GB Notification: Performance of SimCode: time 1.707e-06/11.43, allocations: 0 / 4.202 GB, free: 23.17 MB / 0.5573 GB Notification: Performance of Templates: time 0.1899/11.62, allocations: 98.93 MB / 4.298 GB, free: 11.12 MB / 0.5886 GB