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.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.885/1.885, allocations: 209.3 MB / 221.5 MB, free: 7.746 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.608e-05, allocations: 4 kB / 273.1 MB, free: 3.188 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0877/0.08775, allocations: 48.7 MB / 321.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.27/6.358, allocations: 2.547 GB / 2.862 GB, free: 100.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/6.358, allocations: 75.16 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.348/9.706, allocations: 0.779 GB / 3.641 GB, free: 9.227 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.13e-06/9.706, allocations: 0 / 3.641 GB, free: 9.227 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002606/9.706, allocations: 71.62 kB / 3.641 GB, free: 9.16 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.01506/9.721, allocations: 3.727 MB / 3.644 GB, free: 5.398 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/9.721, allocations: 8.031 kB / 3.644 GB, free: 5.391 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008441/9.73, allocations: 0.8127 MB / 3.645 GB, free: 4.574 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007441/9.737, allocations: 2.099 MB / 3.647 GB, free: 2.457 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00033/9.737, allocations: 178.9 kB / 3.648 GB, free: 2.289 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008238/9.738, allocations: 191.8 kB / 3.648 GB, free: 2.109 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3182/10.06, allocations: 3.534 MB / 3.651 GB, free: 28.04 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.807e-05/10.06, allocations: 8.406 kB / 3.651 GB, free: 28.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004112/10.06, allocations: 85.34 kB / 3.651 GB, free: 28.04 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002844/10.06, allocations: 160.7 kB / 3.651 GB, free: 28.03 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/10.07, allocations: 3.122 MB / 3.654 GB, free: 28.02 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.02748/10.1, allocations: 15.04 MB / 3.669 GB, free: 19.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006646/10.1, allocations: 2.208 MB / 3.671 GB, free: 19.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/10.1, allocations: 1.034 MB / 3.672 GB, free: 19.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0439/10.15, allocations: 18.84 MB / 3.691 GB, free: 23.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005239/10.15, allocations: 1.631 MB / 3.692 GB, free: 23.35 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.482e-06/10.15, allocations: 1.422 kB / 3.692 GB, free: 23.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02435/10.18, allocations: 6.939 MB / 3.699 GB, free: 22.51 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002093/10.18, allocations: 280.3 kB / 3.699 GB, free: 22.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/10.18, allocations: 1.403 MB / 3.701 GB, free: 22.02 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004822/10.18, allocations: 58.08 kB / 3.701 GB, free: 21.99 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/10.18, allocations: 0.9824 MB / 3.702 GB, free: 21.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008532/10.18, allocations: 0.5759 MB / 3.702 GB, free: 21.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/10.18, allocations: 42.78 kB / 3.702 GB, free: 21.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002768/10.18, allocations: 388.1 kB / 3.703 GB, free: 21.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002312/10.19, allocations: 1.039 MB / 3.704 GB, free: 21.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/10.19, allocations: 1.52 MB / 3.705 GB, free: 20.54 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002887/10.19, allocations: 1.274 MB / 3.706 GB, free: 20.47 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/10.19, allocations: 4.031 kB / 3.706 GB, free: 20.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.008553/10.2, allocations: 3.623 MB / 3.71 GB, free: 20.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002642/10.2, allocations: 5.322 MB / 3.715 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.594e-05/10.2, allocations: 14.09 kB / 3.715 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01949/10.22, allocations: 2.748 MB / 3.718 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/10.22, allocations: 313.1 kB / 3.718 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00658/10.23, allocations: 3.291 MB / 3.721 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/10.24, allocations: 264.4 kB / 3.722 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005764/10.24, allocations: 101.8 kB / 3.722 GB, free: 14.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/10.24, allocations: 6.281 kB / 3.722 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007862/10.24, allocations: 3.222 MB / 3.725 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-05/10.24, allocations: 21.19 kB / 3.725 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007961/10.25, allocations: 1.627 MB / 3.726 GB, free: 13.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/10.25, allocations: 356 kB / 3.727 GB, free: 13.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004472/10.26, allocations: 2.563 MB / 3.729 GB, free: 13.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003189/10.26, allocations: 262.9 kB / 3.73 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000537/10.26, allocations: 99.38 kB / 3.73 GB, free: 13.36 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.0008212/10.26, allocations: 260 kB / 3.73 GB, free: 13.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005914/10.26, allocations: 198.9 kB / 3.73 GB, free: 13.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/10.28, allocations: 7.699 MB / 3.738 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.126e-05/10.28, allocations: 93.41 kB / 3.738 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/10.28, allocations: 1.125 kB / 3.738 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01044/10.29, allocations: 6.598 MB / 3.744 GB, free: 11.49 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/10.31, allocations: 10.81 MB / 3.755 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.665e-05/10.31, allocations: 2.812 kB / 3.755 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00246/10.31, allocations: 400.9 kB / 3.755 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/10.31, allocations: 353.7 kB / 3.755 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004692/10.31, allocations: 62.36 kB / 3.756 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/10.31, allocations: 2.569 MB / 3.758 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.723e-06/10.31, allocations: 3.469 kB / 3.758 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/10.33, allocations: 6.903 MB / 3.765 GB, free: 7.977 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002143/10.33, allocations: 0.7435 MB / 3.765 GB, free: 7.645 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009412/10.33, allocations: 56.02 kB / 3.766 GB, free: 7.645 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004642/10.33, allocations: 197 kB / 3.766 GB, free: 7.633 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008009/10.33, allocations: 151 kB / 3.766 GB, free: 7.633 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004059/10.34, allocations: 65.5 kB / 3.766 GB, free: 7.633 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004201/10.34, allocations: 1.165 MB / 3.767 GB, free: 7.473 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.301e-06/10.34, allocations: 0 / 3.767 GB, free: 7.473 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01726/10.36, allocations: 2.749 MB / 3.77 GB, free: 7.348 MB / 490.7 MB 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.01952/10.38, allocations: 2.838 MB / 3.773 GB, free: 7.039 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01075/10.39, allocations: 4.986 MB / 3.777 GB, free: 6.707 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.149e-06/10.39, allocations: 0 / 3.777 GB, free: 6.707 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004482/10.39, allocations: 2.326 MB / 3.78 GB, free: 5.699 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005974/10.4, allocations: 0.8707 MB / 3.781 GB, free: 5.512 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.628/11.03, allocations: 127.2 MB / 3.905 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002131/11.03, allocations: 2.302 MB / 3.907 GB, free: 54.57 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005997/11.03, allocations: 1.911 MB / 3.909 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008152/11.03, allocations: 151.1 kB / 3.909 GB, free: 54.47 MB / 0.4948 GB Notification: Performance of SimCode: time 2.313e-06/11.03, allocations: 2.516 kB / 3.909 GB, free: 54.47 MB / 0.4948 GB Notification: Performance of Templates: time 0.2074/11.24, allocations: 96.59 MB / 4.003 GB, free: 13.78 MB / 0.4948 GB