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.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.201/2.201, allocations: 235 MB / 247.2 MB, free: 14.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.32e-05, allocations: 4.938 kB / 304.9 MB, free: 5.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.331, allocations: 54.86 MB / 359.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.348/6.679, allocations: 2.658 GB / 3.009 GB, free: 114.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/6.68, allocations: 81.86 kB / 3.01 GB, free: 114.5 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329: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.611/10.29, allocations: 0.7984 GB / 3.808 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.355e-06/10.29, allocations: 0 / 3.808 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002654/10.29, allocations: 68.53 kB / 3.808 GB, free: 29.23 MB / 0.4948 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.01445/10.31, allocations: 3.844 MB / 3.812 GB, free: 27.38 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/10.31, allocations: 13.91 kB / 3.812 GB, free: 27.38 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008583/10.31, allocations: 0.8481 MB / 3.813 GB, free: 27.24 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007043/10.32, allocations: 2.086 MB / 3.815 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/10.32, allocations: 184.3 kB / 3.815 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007768/10.32, allocations: 198.4 kB / 3.815 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009794/10.33, allocations: 3.541 MB / 3.818 GB, free: 26.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-05/10.33, allocations: 11.16 kB / 3.818 GB, free: 26.18 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003753/10.33, allocations: 91.55 kB / 3.818 GB, free: 26.18 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/10.33, allocations: 157.6 kB / 3.819 GB, free: 26.17 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009398/10.34, allocations: 3.135 MB / 3.822 GB, free: 26.13 MB / 0.4948 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.02409/10.37, allocations: 15.05 MB / 3.836 GB, free: 17.02 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00677/10.37, allocations: 2.195 MB / 3.839 GB, free: 16.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00211/10.38, allocations: 1.046 MB / 3.84 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04237/10.42, allocations: 18.86 MB / 3.858 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005002/10.42, allocations: 1.645 MB / 3.86 GB, free: 19.33 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.825e-06/10.42, allocations: 0 / 3.86 GB, free: 19.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.02165/10.44, allocations: 6.946 MB / 3.866 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001857/10.44, allocations: 276.8 kB / 3.867 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002609/10.45, allocations: 1.403 MB / 3.868 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004126/10.45, allocations: 63.66 kB / 3.868 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008302/10.45, allocations: 0.9755 MB / 3.869 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000562/10.45, allocations: 0.5846 MB / 3.87 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/10.45, allocations: 40 kB / 3.87 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002415/10.45, allocations: 391.6 kB / 3.87 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/10.45, allocations: 1.04 MB / 3.871 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002234/10.45, allocations: 1.531 MB / 3.873 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/10.46, allocations: 1.28 MB / 3.874 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/10.46, allocations: 0 / 3.874 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.008743/10.47, allocations: 3.614 MB / 3.877 GB, free: 7.004 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00303/10.47, allocations: 5.319 MB / 3.882 GB, free: 1.215 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-05/10.47, allocations: 19.75 kB / 3.882 GB, free: 1.199 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0238/10.49, allocations: 3.027 MB / 3.885 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/10.49, allocations: 315.7 kB / 3.886 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007363/10.5, allocations: 3.303 MB / 3.889 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003224/10.5, allocations: 260.5 kB / 3.889 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/10.51, allocations: 102.8 kB / 3.889 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/10.51, allocations: 8.484 kB / 3.889 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00809/10.51, allocations: 3.213 MB / 3.892 GB, free: 9.426 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-05/10.51, allocations: 16 kB / 3.892 GB, free: 9.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008376/10.52, allocations: 1.623 MB / 3.894 GB, free: 8.148 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/10.52, allocations: 357.9 kB / 3.894 GB, free: 7.844 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004919/10.53, allocations: 2.576 MB / 3.897 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/10.53, allocations: 262.6 kB / 3.897 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003563/10.53, allocations: 102.4 kB / 3.897 GB, free: 5.281 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (162): * Single equations (assignments): 158 * 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.0007393/10.53, allocations: 258.4 kB / 3.898 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005462/10.53, allocations: 205 kB / 3.898 GB, free: 4.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3592/10.89, allocations: 7.906 MB / 3.905 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001138/10.89, allocations: 93.12 kB / 3.906 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/10.89, allocations: 0 / 3.906 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0112/10.9, allocations: 6.592 MB / 3.912 GB, free: 57.17 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02127/10.93, allocations: 10.81 MB / 3.923 GB, free: 56.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.866e-05/10.93, allocations: 4.781 kB / 3.923 GB, free: 56.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002625/10.93, allocations: 399.2 kB / 3.923 GB, free: 56.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/10.93, allocations: 360.6 kB / 3.923 GB, free: 56.55 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004624/10.93, allocations: 62.08 kB / 3.923 GB, free: 56.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/10.93, allocations: 2.568 MB / 3.926 GB, free: 54.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.884e-06/10.93, allocations: 0 / 3.926 GB, free: 54.48 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/10.94, allocations: 6.89 MB / 3.933 GB, free: 54.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002042/10.95, allocations: 0.7559 MB / 3.933 GB, free: 53.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007097/10.95, allocations: 50.8 kB / 3.933 GB, free: 53.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002473/10.95, allocations: 197.5 kB / 3.934 GB, free: 53.86 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004278/10.95, allocations: 144.9 kB / 3.934 GB, free: 53.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002471/10.95, allocations: 69.38 kB / 3.934 GB, free: 53.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002281/10.95, allocations: 1.171 MB / 3.935 GB, free: 53.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.306e-06/10.95, allocations: 0 / 3.935 GB, free: 53.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01062/10.96, allocations: 2.761 MB / 3.938 GB, free: 53.69 MB / 0.5261 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 (197): * Single equations (assignments): 167 * 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.01224/10.98, allocations: 2.855 MB / 3.94 GB, free: 53.52 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01059/10.99, allocations: 5.051 MB / 3.945 GB, free: 53.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.15e-06/10.99, allocations: 0 / 3.945 GB, free: 53.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004569/10.99, allocations: 2.369 MB / 3.948 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005753/11, allocations: 0.8668 MB / 3.948 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2778/11.27, allocations: 127.9 MB / 4.073 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00209/11.28, allocations: 2.308 MB / 4.076 GB, free: 20.08 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005421/11.28, allocations: 1.915 MB / 4.077 GB, free: 18.93 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007653/11.28, allocations: 146.3 kB / 4.078 GB, free: 18.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.799e-06/11.28, allocations: 0 / 4.078 GB, free: 18.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.5835/11.87, allocations: 97 MB / 4.172 GB, free: 51.97 MB / 0.5261 GB