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_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.179/2.179, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.567e-05, allocations: 4 kB / 304.9 MB, free: 5.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3718, allocations: 54.85 MB / 359.8 MB, free: 3.152 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.402/6.773, allocations: 2.658 GB / 3.009 GB, free: 114.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/6.774, allocations: 78 kB / 3.009 GB, free: 114.8 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.534/10.31, allocations: 0.7971 GB / 3.807 GB, free: 28.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.786e-06/10.31, allocations: 0 / 3.807 GB, free: 28.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002572/10.31, allocations: 71.73 kB / 3.807 GB, free: 28.81 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.014/10.32, allocations: 3.85 MB / 3.81 GB, free: 26.96 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/10.32, allocations: 7.469 kB / 3.81 GB, free: 26.96 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008742/10.33, allocations: 0.8441 MB / 3.811 GB, free: 26.82 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006691/10.34, allocations: 2.094 MB / 3.813 GB, free: 26.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002539/10.34, allocations: 177.5 kB / 3.813 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006871/10.34, allocations: 203.9 kB / 3.814 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/10.35, allocations: 3.532 MB / 3.817 GB, free: 25.76 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.176e-05/10.35, allocations: 7.375 kB / 3.817 GB, free: 25.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003834/10.35, allocations: 89.28 kB / 3.817 GB, free: 25.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/10.35, allocations: 160.5 kB / 3.817 GB, free: 25.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01008/10.36, allocations: 3.133 MB / 3.82 GB, free: 25.71 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.02369/10.38, allocations: 15.07 MB / 3.835 GB, free: 16.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005996/10.39, allocations: 2.202 MB / 3.837 GB, free: 16.56 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/10.39, allocations: 1.042 MB / 3.838 GB, free: 16.51 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04422/10.44, allocations: 18.87 MB / 3.857 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005485/10.44, allocations: 1.644 MB / 3.858 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.167e-06/10.44, allocations: 0 / 3.858 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.02689/10.47, allocations: 7.55 MB / 3.866 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000198/10.47, allocations: 276.4 kB / 3.866 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002665/10.47, allocations: 1.399 MB / 3.867 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000457/10.47, allocations: 57.48 kB / 3.867 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009062/10.47, allocations: 0.9827 MB / 3.868 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006966/10.47, allocations: 0.5877 MB / 3.869 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/10.47, allocations: 42.5 kB / 3.869 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000251/10.47, allocations: 384.8 kB / 3.869 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002174/10.48, allocations: 1.035 MB / 3.87 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/10.48, allocations: 1.528 MB / 3.872 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/10.48, allocations: 1.271 MB / 3.873 GB, free: 11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/10.48, allocations: 4 kB / 3.873 GB, free: 11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007359/10.49, allocations: 3.07 MB / 3.876 GB, free: 8.281 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003016/10.49, allocations: 5.321 MB / 3.881 GB, free: 2.488 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-05/10.49, allocations: 16 kB / 3.881 GB, free: 2.473 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/10.49, allocations: 258.5 kB / 3.881 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003232/10.5, allocations: 0.5122 MB / 3.882 GB, free: 1.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/10.5, allocations: 2.502 MB / 3.884 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003243/10.5, allocations: 261.6 kB / 3.885 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004325/10.5, allocations: 107.5 kB / 3.885 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/10.5, allocations: 4 kB / 3.885 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007114/10.51, allocations: 2.796 MB / 3.888 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.392e-05/10.51, allocations: 16.06 kB / 3.888 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/10.51, allocations: 257.5 kB / 3.888 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003097/10.51, allocations: 0.5072 MB / 3.888 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/10.52, allocations: 2.497 MB / 3.891 GB, free: 9.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003058/10.52, allocations: 264.7 kB / 3.891 GB, free: 9.207 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004017/10.52, allocations: 99.22 kB / 3.891 GB, free: 9.117 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 (251): * Single equations (assignments): 244 * 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.0007666/10.52, allocations: 273.7 kB / 3.891 GB, free: 8.844 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005766/10.52, allocations: 205.5 kB / 3.892 GB, free: 8.641 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/10.54, allocations: 7.689 MB / 3.899 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/10.54, allocations: 91.2 kB / 3.899 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/10.54, allocations: 0 / 3.899 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3533/10.89, allocations: 6.609 MB / 3.906 GB, free: 57.81 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01964/10.91, allocations: 10.81 MB / 3.916 GB, free: 57.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/10.91, allocations: 3.906 kB / 3.916 GB, free: 57.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002421/10.91, allocations: 399.2 kB / 3.917 GB, free: 57.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001675/10.91, allocations: 355.8 kB / 3.917 GB, free: 57.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002787/10.91, allocations: 65.47 kB / 3.917 GB, free: 57.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/10.92, allocations: 2.57 MB / 3.919 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/10.92, allocations: 0 / 3.919 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/10.93, allocations: 6.901 MB / 3.926 GB, free: 54.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/10.93, allocations: 0.7493 MB / 3.927 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005197/10.93, allocations: 53.12 kB / 3.927 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002188/10.93, allocations: 202.3 kB / 3.927 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/10.93, allocations: 146.6 kB / 3.927 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002259/10.93, allocations: 63.11 kB / 3.927 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002122/10.94, allocations: 1.169 MB / 3.928 GB, free: 54.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.69e-07/10.94, allocations: 2.688 kB / 3.928 GB, free: 54.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01035/10.95, allocations: 2.765 MB / 3.931 GB, free: 54.36 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.01205/10.96, allocations: 2.85 MB / 3.934 GB, free: 54.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0101/10.97, allocations: 5.016 MB / 3.939 GB, free: 53.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.405e-06/10.97, allocations: 0 / 3.939 GB, free: 53.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004497/10.97, allocations: 2.361 MB / 3.941 GB, free: 53.83 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005524/10.98, allocations: 0.8697 MB / 3.942 GB, free: 53.81 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2782/11.26, allocations: 127.9 MB / 4.067 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/11.26, allocations: 2.309 MB / 4.069 GB, free: 23.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007242/11.27, allocations: 2.828 MB / 4.072 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009364/11.27, allocations: 174.9 kB / 4.072 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of SimCode: time 1.818e-06/11.27, allocations: 0 / 4.072 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of Templates: time 0.5165/11.78, allocations: 87.06 MB / 4.157 GB, free: 51.73 MB / 0.5261 GB