Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.233/2.233, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 2.915e-05/2.92e-05, allocations: 4 kB / 323.4 MB, free: 4.309 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3156, allocations: 58.82 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.651/6.967, allocations: 2.828 GB / 3.201 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/6.967, allocations: 75.03 kB / 3.201 GB, free: 113.7 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/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.872/10.84, allocations: 0.8654 GB / 4.066 GB, free: 31.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.158e-06/10.84, allocations: 6.844 kB / 4.066 GB, free: 31.68 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002613/10.84, allocations: 65.88 kB / 4.066 GB, free: 31.67 MB / 0.5261 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.01382/10.85, allocations: 3.853 MB / 4.07 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/10.85, allocations: 15.81 kB / 4.07 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00804/10.86, allocations: 0.8446 MB / 4.071 GB, free: 29.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006624/10.87, allocations: 2.085 MB / 4.073 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/10.87, allocations: 179.2 kB / 4.073 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007968/10.87, allocations: 195 kB / 4.073 GB, free: 28 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009398/10.88, allocations: 3.555 MB / 4.077 GB, free: 24.92 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-05/10.88, allocations: 8 kB / 4.077 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003606/10.88, allocations: 90.62 kB / 4.077 GB, free: 24.83 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/10.88, allocations: 163.1 kB / 4.077 GB, free: 24.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008606/10.89, allocations: 3.13 MB / 4.08 GB, free: 22.04 MB / 0.5261 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.02309/10.91, allocations: 15.2 MB / 4.095 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006038/10.92, allocations: 2.227 MB / 4.097 GB, free: 5.688 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/10.92, allocations: 1.062 MB / 4.098 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4149/11.33, allocations: 24.53 MB / 4.122 GB, free: 44.66 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005443/11.34, allocations: 1.659 MB / 4.124 GB, free: 44.58 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=155): time 7.125e-06/11.34, allocations: 0 / 4.124 GB, free: 44.58 MB / 0.5418 GB Notification: Performance of matching and sorting (n=171): time 0.02251/11.36, allocations: 7.04 MB / 4.131 GB, free: 43.91 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/11.36, allocations: 277 kB / 4.131 GB, free: 43.6 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/11.36, allocations: 1.449 MB / 4.132 GB, free: 43.43 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0004087/11.37, allocations: 59.56 kB / 4.132 GB, free: 43.39 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009028/11.37, allocations: 0.9655 MB / 4.133 GB, free: 43.1 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007274/11.37, allocations: 0.5887 MB / 4.134 GB, free: 42.8 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/11.37, allocations: 37.31 kB / 4.134 GB, free: 42.8 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001455/11.37, allocations: 386.3 kB / 4.134 GB, free: 42.5 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/11.37, allocations: 1.047 MB / 4.135 GB, free: 42.5 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002543/11.37, allocations: 1.503 MB / 4.137 GB, free: 42 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00258/11.37, allocations: 1.274 MB / 4.138 GB, free: 41.95 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/11.37, allocations: 3.125 kB / 4.138 GB, free: 41.95 MB / 0.5418 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008413/11.38, allocations: 3.642 MB / 4.142 GB, free: 41.73 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009821/11.38, allocations: 4.811 MB / 4.146 GB, free: 36.68 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.044e-05/11.38, allocations: 11.38 kB / 4.146 GB, free: 36.68 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02157/11.41, allocations: 3.016 MB / 4.149 GB, free: 36.66 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/11.41, allocations: 309 kB / 4.15 GB, free: 36.66 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/11.41, allocations: 3.307 MB / 4.153 GB, free: 36.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00335/11.42, allocations: 258.8 kB / 4.153 GB, free: 36.09 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005172/11.42, allocations: 99.55 kB / 4.153 GB, free: 36.09 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/11.42, allocations: 3.531 kB / 4.153 GB, free: 36.09 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007409/11.43, allocations: 3.245 MB / 4.156 GB, free: 36 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.384e-05/11.43, allocations: 11.19 kB / 4.156 GB, free: 36 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008131/11.43, allocations: 1.622 MB / 4.158 GB, free: 35.97 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/11.44, allocations: 355.1 kB / 4.158 GB, free: 35.97 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004165/11.44, allocations: 2.572 MB / 4.161 GB, free: 35.41 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002956/11.44, allocations: 267.4 kB / 4.161 GB, free: 35.4 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000439/11.44, allocations: 101.3 kB / 4.161 GB, free: 35.4 MB / 0.5418 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.0006643/11.44, allocations: 257.6 kB / 4.161 GB, free: 35.26 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005506/11.44, allocations: 206.9 kB / 4.161 GB, free: 35.15 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01221/11.46, allocations: 7.742 MB / 4.169 GB, free: 34.45 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.84e-05/11.46, allocations: 95.94 kB / 4.169 GB, free: 34.44 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/11.46, allocations: 0 / 4.169 GB, free: 34.44 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009868/11.47, allocations: 6.644 MB / 4.176 GB, free: 33.59 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01849/11.48, allocations: 10.94 MB / 4.186 GB, free: 32.89 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/11.48, allocations: 0 / 4.186 GB, free: 32.89 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002551/11.49, allocations: 402.8 kB / 4.187 GB, free: 32.89 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/11.49, allocations: 355.6 kB / 4.187 GB, free: 32.86 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004316/11.49, allocations: 63.08 kB / 4.187 GB, free: 32.86 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001559/11.49, allocations: 2.571 MB / 4.19 GB, free: 30.78 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.879e-06/11.49, allocations: 0 / 4.19 GB, free: 30.78 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/11.5, allocations: 6.974 MB / 4.196 GB, free: 30.14 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002173/11.51, allocations: 0.7778 MB / 4.197 GB, free: 29.81 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007591/11.51, allocations: 50.28 kB / 4.197 GB, free: 29.81 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/11.51, allocations: 203.6 kB / 4.197 GB, free: 29.8 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004579/11.51, allocations: 147.2 kB / 4.198 GB, free: 29.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002539/11.51, allocations: 68.39 kB / 4.198 GB, free: 29.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.002605/11.51, allocations: 1.291 MB / 4.199 GB, free: 29.64 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.377e-06/11.51, allocations: 2.812 kB / 4.199 GB, free: 29.64 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01053/11.52, allocations: 2.798 MB / 4.202 GB, free: 29.52 MB / 0.5418 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.01213/11.54, allocations: 2.853 MB / 4.204 GB, free: 29.21 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01052/11.55, allocations: 5.053 MB / 4.209 GB, free: 28.91 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 8.792e-06/11.55, allocations: 4.75 kB / 4.209 GB, free: 28.91 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.004498/11.55, allocations: 2.366 MB / 4.212 GB, free: 28.84 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005861/11.56, allocations: 0.9314 MB / 4.213 GB, free: 28.81 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/11.57, allocations: 6.216 MB / 4.219 GB, free: 27.66 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002213/11.57, allocations: 2.312 MB / 4.221 GB, free: 26.89 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.005702/11.58, allocations: 1.951 MB / 4.223 GB, free: 26.85 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007676/11.58, allocations: 156 kB / 4.223 GB, free: 26.85 MB / 0.5418 GB Notification: Performance of SimCode: time 1.762e-06/11.58, allocations: 1.875 kB / 4.223 GB, free: 26.85 MB / 0.5418 GB Notification: Performance of Templates: time 0.1904/11.77, allocations: 98.89 MB / 4.32 GB, free: 404 kB / 0.5574 GB