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.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.34/2.34, allocations: 270.1 MB / 283.6 MB, free: 3.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.181e-05/3.197e-05, allocations: 4 kB / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 61.89 MB / 410.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.822/6.935, allocations: 2.832 GB / 3.233 GB, free: 94.99 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/6.935, allocations: 77.06 kB / 3.233 GB, free: 94.96 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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.709/10.64, allocations: 0.8118 GB / 4.045 GB, free: 44.61 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.22e-06/10.64, allocations: 1.781 kB / 4.045 GB, free: 44.61 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002472/10.64, allocations: 68.84 kB / 4.045 GB, free: 44.6 MB / 0.5573 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.01438/10.66, allocations: 3.849 MB / 4.049 GB, free: 42.76 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/10.66, allocations: 10.25 kB / 4.049 GB, free: 42.76 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008199/10.67, allocations: 0.8472 MB / 4.05 GB, free: 42.62 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006633/10.67, allocations: 2.084 MB / 4.052 GB, free: 42.17 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/10.67, allocations: 182 kB / 4.052 GB, free: 42.17 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007633/10.67, allocations: 199.1 kB / 4.052 GB, free: 42.16 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/10.68, allocations: 3.555 MB / 4.055 GB, free: 41.62 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.776e-05/10.68, allocations: 9.438 kB / 4.055 GB, free: 41.62 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/10.69, allocations: 85.05 kB / 4.055 GB, free: 41.62 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002393/10.69, allocations: 164.4 kB / 4.056 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009317/10.69, allocations: 3.136 MB / 4.059 GB, free: 41.61 MB / 0.5573 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.02515/10.72, allocations: 15.2 MB / 4.074 GB, free: 32.57 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006768/10.73, allocations: 2.235 MB / 4.076 GB, free: 32.54 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002215/10.73, allocations: 1.063 MB / 4.077 GB, free: 32.52 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05569/10.78, allocations: 24.55 MB / 4.101 GB, free: 17.29 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005595/10.79, allocations: 1.661 MB / 4.102 GB, free: 17.19 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.665e-06/10.79, allocations: 3.938 kB / 4.102 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of matching and sorting (n=171): time 0.02328/10.81, allocations: 7.043 MB / 4.109 GB, free: 16.23 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/10.81, allocations: 278.7 kB / 4.11 GB, free: 15.92 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002824/10.82, allocations: 1.446 MB / 4.111 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004508/10.82, allocations: 61.73 kB / 4.111 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008735/10.82, allocations: 0.9583 MB / 4.112 GB, free: 15.32 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007016/10.82, allocations: 0.5873 MB / 4.112 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/10.82, allocations: 44.03 kB / 4.113 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001463/10.82, allocations: 392.5 kB / 4.113 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/10.82, allocations: 1.047 MB / 4.114 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002707/10.82, allocations: 1.503 MB / 4.115 GB, free: 14.12 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002811/10.83, allocations: 1.266 MB / 4.117 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.675e-05/10.83, allocations: 3.812 kB / 4.117 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008436/10.84, allocations: 3.65 MB / 4.12 GB, free: 13.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002296/10.84, allocations: 4.798 MB / 4.125 GB, free: 24.74 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.426e-05/10.84, allocations: 15.31 kB / 4.125 GB, free: 24.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02072/10.86, allocations: 3.017 MB / 4.128 GB, free: 24.64 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/10.86, allocations: 307.8 kB / 4.128 GB, free: 24.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006269/10.87, allocations: 3.313 MB / 4.131 GB, free: 24.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003244/10.87, allocations: 261.7 kB / 4.132 GB, free: 23.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005103/10.87, allocations: 100.8 kB / 4.132 GB, free: 23.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/10.87, allocations: 3.625 kB / 4.132 GB, free: 23.94 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007619/10.88, allocations: 3.241 MB / 4.135 GB, free: 22.82 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.965e-05/10.88, allocations: 15.23 kB / 4.135 GB, free: 22.82 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008728/10.89, allocations: 1.624 MB / 4.136 GB, free: 22.51 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002072/10.89, allocations: 353.7 kB / 4.137 GB, free: 22.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004438/10.89, allocations: 2.573 MB / 4.139 GB, free: 21.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003155/10.9, allocations: 261.4 kB / 4.14 GB, free: 21.19 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004177/10.9, allocations: 100.6 kB / 4.14 GB, free: 21.17 MB / 0.573 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.0007203/10.9, allocations: 260.3 kB / 4.14 GB, free: 20.95 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005437/10.9, allocations: 211 kB / 4.14 GB, free: 20.84 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/10.91, allocations: 7.742 MB / 4.148 GB, free: 17.04 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.461e-05/10.91, allocations: 87.62 kB / 4.148 GB, free: 16.98 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/10.91, allocations: 0 / 4.148 GB, free: 16.98 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01015/10.92, allocations: 6.645 MB / 4.154 GB, free: 10.81 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02184/10.94, allocations: 10.94 MB / 4.165 GB, free: 1.336 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/10.94, allocations: 0 / 4.165 GB, free: 1.336 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002658/10.95, allocations: 410.4 kB / 4.165 GB, free: 1.004 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00177/10.95, allocations: 350.6 kB / 4.166 GB, free: 0.7305 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004523/10.95, allocations: 63.16 kB / 4.166 GB, free: 0.6797 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/10.95, allocations: 2.576 MB / 4.168 GB, free: 14.11 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.741e-06/10.95, allocations: 0 / 4.168 GB, free: 14.11 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/10.97, allocations: 6.964 MB / 4.175 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002369/10.97, allocations: 0.7852 MB / 4.176 GB, free: 7.004 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007536/10.97, allocations: 54.64 kB / 4.176 GB, free: 6.961 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/10.97, allocations: 195 kB / 4.176 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004516/10.97, allocations: 154.5 kB / 4.176 GB, free: 6.719 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/10.97, allocations: 71.2 kB / 4.176 GB, free: 6.66 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00292/10.97, allocations: 1.29 MB / 4.178 GB, free: 5.465 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.31e-06/10.97, allocations: 0 / 4.178 GB, free: 5.465 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01153/10.99, allocations: 2.805 MB / 4.18 GB, free: 2.719 MB / 0.5886 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.01298/11, allocations: 2.851 MB / 4.183 GB, free: 0.5156 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.3841/11.38, allocations: 5.379 MB / 4.188 GB, free: 73.43 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.071e-06/11.38, allocations: 2.656 kB / 4.188 GB, free: 73.43 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004771/11.39, allocations: 2.367 MB / 4.191 GB, free: 73.36 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00586/11.39, allocations: 0.9238 MB / 4.192 GB, free: 73.35 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/11.41, allocations: 6.219 MB / 4.198 GB, free: 72.25 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/11.41, allocations: 2.308 MB / 4.2 GB, free: 71.47 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006575/11.42, allocations: 1.961 MB / 4.202 GB, free: 71.44 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008166/11.42, allocations: 154.3 kB / 4.202 GB, free: 71.44 MB / 0.5886 GB Notification: Performance of SimCode: time 1.8e-06/11.42, allocations: 0 / 4.202 GB, free: 71.44 MB / 0.5886 GB Notification: Performance of Templates: time 0.1896/11.61, allocations: 98.93 MB / 4.299 GB, free: 66.98 MB / 0.5886 GB