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.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.918/1.918, allocations: 209.3 MB / 221.5 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.683e-05/3.698e-05, allocations: 0 / 273.1 MB, free: 3.172 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.08966, allocations: 48.7 MB / 321.8 MB, free: 2.379 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.246/6.335, allocations: 2.548 GB / 2.862 GB, free: 100.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/6.336, allocations: 83.02 kB / 2.862 GB, free: 100.7 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.955/10.29, allocations: 0.8401 GB / 3.702 GB, free: 29.49 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.095e-06/10.29, allocations: 3.344 kB / 3.702 GB, free: 29.49 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002276/10.29, allocations: 67.94 kB / 3.702 GB, free: 29.48 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01471/10.31, allocations: 3.731 MB / 3.706 GB, free: 27.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/10.31, allocations: 9.188 kB / 3.706 GB, free: 27.75 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00811/10.31, allocations: 0.8185 MB / 3.706 GB, free: 27.62 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006565/10.32, allocations: 2.099 MB / 3.708 GB, free: 27.16 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002206/10.32, allocations: 176 kB / 3.709 GB, free: 27.15 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005019/10.32, allocations: 196.8 kB / 3.709 GB, free: 27.15 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009066/10.33, allocations: 3.538 MB / 3.712 GB, free: 26.63 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.795e-05/10.33, allocations: 10.34 kB / 3.712 GB, free: 26.63 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/10.33, allocations: 90.8 kB / 3.712 GB, free: 26.63 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002422/10.33, allocations: 165.3 kB / 3.713 GB, free: 26.62 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009371/10.34, allocations: 3.12 MB / 3.716 GB, free: 26.62 MB / 474.7 MB 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.02151/10.36, allocations: 15.03 MB / 3.73 GB, free: 17.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005945/10.37, allocations: 2.195 MB / 3.732 GB, free: 17.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/10.37, allocations: 1.04 MB / 3.733 GB, free: 17.55 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04199/10.41, allocations: 18.85 MB / 3.752 GB, free: 21.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005215/10.42, allocations: 1.633 MB / 3.753 GB, free: 21.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.108e-06/10.42, allocations: 0 / 3.753 GB, free: 21.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02197/10.44, allocations: 6.936 MB / 3.76 GB, free: 20.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002131/10.44, allocations: 279.3 kB / 3.76 GB, free: 20.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/10.44, allocations: 1.404 MB / 3.762 GB, free: 20.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003974/10.44, allocations: 58.05 kB / 3.762 GB, free: 20.26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008905/10.44, allocations: 0.973 MB / 3.763 GB, free: 19.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006349/10.44, allocations: 0.5811 MB / 3.763 GB, free: 19.49 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/10.44, allocations: 39.38 kB / 3.763 GB, free: 19.49 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002422/10.44, allocations: 386.5 kB / 3.764 GB, free: 19.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/10.45, allocations: 1.038 MB / 3.765 GB, free: 19.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002376/10.45, allocations: 1.521 MB / 3.766 GB, free: 18.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/10.45, allocations: 1.269 MB / 3.768 GB, free: 18.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/10.45, allocations: 3.531 kB / 3.768 GB, free: 18.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.008008/10.46, allocations: 3.625 MB / 3.771 GB, free: 18.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002607/10.46, allocations: 5.33 MB / 3.776 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-05/10.46, allocations: 14.28 kB / 3.776 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01893/10.48, allocations: 2.747 MB / 3.779 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/10.48, allocations: 316 kB / 3.779 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006181/10.49, allocations: 3.297 MB / 3.783 GB, free: 12.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003228/10.49, allocations: 266.4 kB / 3.783 GB, free: 12.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003633/10.49, allocations: 100.7 kB / 3.783 GB, free: 12.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/10.49, allocations: 7.562 kB / 3.783 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007262/10.5, allocations: 3.223 MB / 3.786 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.261e-05/10.5, allocations: 15.44 kB / 3.786 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007585/10.51, allocations: 1.625 MB / 3.788 GB, free: 11.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/10.51, allocations: 356.6 kB / 3.788 GB, free: 11.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004317/10.51, allocations: 2.57 MB / 3.79 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/10.52, allocations: 258.5 kB / 3.791 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003584/10.52, allocations: 100.2 kB / 3.791 GB, free: 11.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,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.0006957/10.52, allocations: 260.5 kB / 3.791 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004522/10.52, allocations: 195.2 kB / 3.791 GB, free: 11.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/10.53, allocations: 7.698 MB / 3.799 GB, free: 10.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.033e-05/10.53, allocations: 85.92 kB / 3.799 GB, free: 10.19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/10.53, allocations: 5.109 kB / 3.799 GB, free: 10.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009671/10.54, allocations: 6.603 MB / 3.805 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/10.56, allocations: 10.81 MB / 3.816 GB, free: 4.504 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/10.56, allocations: 0 / 3.816 GB, free: 4.504 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/10.56, allocations: 398.9 kB / 3.816 GB, free: 4.195 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/10.56, allocations: 364.1 kB / 3.817 GB, free: 3.918 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003654/10.56, allocations: 58.17 kB / 3.817 GB, free: 3.871 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00243/10.57, allocations: 2.567 MB / 3.819 GB, free: 1.312 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.364e-06/10.57, allocations: 0 / 3.819 GB, free: 1.312 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/10.58, allocations: 6.958 MB / 3.826 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/10.58, allocations: 0.7478 MB / 3.827 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000686/10.58, allocations: 49.77 kB / 3.827 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002451/10.59, allocations: 195.4 kB / 3.827 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004509/10.59, allocations: 149.9 kB / 3.827 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/10.59, allocations: 68.02 kB / 3.827 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00267/10.59, allocations: 1.166 MB / 3.828 GB, free: 9.035 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.086e-06/10.59, allocations: 0 / 3.828 GB, free: 9.035 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01121/10.6, allocations: 2.745 MB / 3.831 GB, free: 6.348 MB / 0.4948 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: 53 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.01245/10.61, allocations: 2.838 MB / 3.834 GB, free: 4.18 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3117/10.93, allocations: 4.975 MB / 3.839 GB, free: 57.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.047e-06/10.93, allocations: 1.531 kB / 3.839 GB, free: 57.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004646/10.93, allocations: 2.328 MB / 3.841 GB, free: 57.58 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005152/10.93, allocations: 0.8628 MB / 3.842 GB, free: 57.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2718/11.21, allocations: 125.7 MB / 3.964 GB, free: 48.07 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/11.21, allocations: 2.303 MB / 3.967 GB, free: 47.26 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00511/11.21, allocations: 1.912 MB / 3.969 GB, free: 46.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000661/11.21, allocations: 147 kB / 3.969 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of SimCode: time 2.421e-06/11.21, allocations: 4 kB / 3.969 GB, free: 46.01 MB / 0.4948 GB Notification: Performance of Templates: time 0.489/11.7, allocations: 96.59 MB / 4.063 GB, free: 55.29 MB / 0.4948 GB