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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.493/2.493, allocations: 270 MB / 283.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.028e-05, allocations: 4 kB / 348.4 MB, free: 2.766 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3251, allocations: 61.88 MB / 410.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.948/7.273, allocations: 2.832 GB / 3.233 GB, free: 87.45 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/7.274, allocations: 85.81 kB / 3.233 GB, free: 87.4 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/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.664/10.94, allocations: 0.8106 GB / 4.044 GB, free: 45.89 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.501e-06/10.94, allocations: 0 / 4.044 GB, free: 45.89 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002517/10.94, allocations: 67.16 kB / 4.044 GB, free: 45.88 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.01432/10.95, allocations: 3.849 MB / 4.047 GB, free: 44.04 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/10.95, allocations: 12.88 kB / 4.047 GB, free: 44.04 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008221/10.96, allocations: 0.847 MB / 4.048 GB, free: 43.9 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00704/10.97, allocations: 2.081 MB / 4.05 GB, free: 43.45 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/10.97, allocations: 175.6 kB / 4.05 GB, free: 43.44 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008343/10.97, allocations: 202.5 kB / 4.051 GB, free: 43.44 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/10.98, allocations: 3.558 MB / 4.054 GB, free: 42.89 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.98e-05/10.98, allocations: 5.75 kB / 4.054 GB, free: 42.89 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003805/10.98, allocations: 88.3 kB / 4.054 GB, free: 42.89 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002589/10.98, allocations: 159 kB / 4.054 GB, free: 42.88 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009393/10.99, allocations: 3.14 MB / 4.057 GB, free: 42.88 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.02574/11.02, allocations: 15.21 MB / 4.072 GB, free: 33.84 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006305/11.02, allocations: 2.226 MB / 4.074 GB, free: 33.81 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/11.02, allocations: 1.072 MB / 4.075 GB, free: 33.79 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05173/11.08, allocations: 24.55 MB / 4.099 GB, free: 18.52 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005381/11.08, allocations: 1.665 MB / 4.101 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.311e-06/11.08, allocations: 3.75 kB / 4.101 GB, free: 18.42 MB / 0.5573 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe3.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=171): time 0.03182/11.11, allocations: 9.213 MB / 4.11 GB, free: 17.39 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/11.11, allocations: 280.8 kB / 4.11 GB, free: 17.08 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/11.12, allocations: 1.442 MB / 4.112 GB, free: 16.89 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004726/11.12, allocations: 64.27 kB / 4.112 GB, free: 16.86 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008827/11.12, allocations: 0.964 MB / 4.113 GB, free: 16.47 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007726/11.12, allocations: 0.5803 MB / 4.113 GB, free: 16.11 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/11.12, allocations: 42.59 kB / 4.113 GB, free: 16.11 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001527/11.12, allocations: 386.7 kB / 4.114 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/11.12, allocations: 1.049 MB / 4.115 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002558/11.12, allocations: 1.498 MB / 4.116 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/11.13, allocations: 1.276 MB / 4.117 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/11.13, allocations: 3.875 kB / 4.117 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007409/11.13, allocations: 3.088 MB / 4.12 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002738/11.14, allocations: 4.813 MB / 4.125 GB, free: 25.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.878e-05/11.14, allocations: 10.84 kB / 4.125 GB, free: 25.87 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/11.14, allocations: 260.3 kB / 4.125 GB, free: 25.83 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/11.14, allocations: 0.5095 MB / 4.126 GB, free: 25.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/11.14, allocations: 2.492 MB / 4.128 GB, free: 23.57 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/11.15, allocations: 266.9 kB / 4.129 GB, free: 23.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004972/11.15, allocations: 98.3 kB / 4.129 GB, free: 23.48 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/11.15, allocations: 6.469 kB / 4.129 GB, free: 23.48 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006631/11.15, allocations: 2.826 MB / 4.131 GB, free: 22.51 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.204e-05/11.15, allocations: 11.31 kB / 4.131 GB, free: 22.51 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/11.15, allocations: 259.9 kB / 4.132 GB, free: 22.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002953/11.16, allocations: 0.5042 MB / 4.132 GB, free: 22.37 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002197/11.16, allocations: 2.488 MB / 4.135 GB, free: 20.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/11.16, allocations: 263.9 kB / 4.135 GB, free: 20.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004402/11.16, allocations: 100.7 kB / 4.135 GB, free: 20.04 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 (246): * Single equations (assignments): 239 * 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.0007366/11.16, allocations: 271.4 kB / 4.135 GB, free: 19.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006102/11.16, allocations: 208.1 kB / 4.135 GB, free: 19.69 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0122/11.18, allocations: 7.744 MB / 4.143 GB, free: 15.81 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-05/11.18, allocations: 96.94 kB / 4.143 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/11.18, allocations: 0 / 4.143 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00965/11.19, allocations: 6.637 MB / 4.15 GB, free: 9.586 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02074/11.21, allocations: 10.94 MB / 4.16 GB, free: 120 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/11.21, allocations: 0 / 4.16 GB, free: 120 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002525/11.21, allocations: 406.4 kB / 4.161 GB, free: 15.79 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001704/11.21, allocations: 351.9 kB / 4.161 GB, free: 15.51 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004081/11.21, allocations: 67.34 kB / 4.161 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002416/11.21, allocations: 2.575 MB / 4.164 GB, free: 12.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.116e-06/11.21, allocations: 1.016 kB / 4.164 GB, free: 12.89 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/11.23, allocations: 6.968 MB / 4.17 GB, free: 6.48 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/11.23, allocations: 0.7746 MB / 4.171 GB, free: 5.789 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005346/11.23, allocations: 55.52 kB / 4.171 GB, free: 5.738 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/11.23, allocations: 193.9 kB / 4.171 GB, free: 5.594 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004016/11.23, allocations: 147.9 kB / 4.171 GB, free: 5.504 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002547/11.23, allocations: 77.25 kB / 4.172 GB, free: 5.441 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002747/11.24, allocations: 1.291 MB / 4.173 GB, free: 4.246 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.16e-07/11.24, allocations: 0.8438 kB / 4.173 GB, free: 4.246 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01072/11.25, allocations: 2.797 MB / 4.176 GB, free: 1.508 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.3875/11.63, allocations: 2.852 MB / 4.178 GB, free: 75.56 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01159/11.65, allocations: 5.016 MB / 4.183 GB, free: 75.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.571e-06/11.65, allocations: 2.938 kB / 4.183 GB, free: 75.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004503/11.65, allocations: 2.371 MB / 4.186 GB, free: 75.21 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005694/11.66, allocations: 0.9261 MB / 4.186 GB, free: 75.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/11.67, allocations: 6.231 MB / 4.193 GB, free: 74.08 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/11.67, allocations: 2.313 MB / 4.195 GB, free: 73.31 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007276/11.68, allocations: 2.869 MB / 4.198 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008842/11.68, allocations: 170.6 kB / 4.198 GB, free: 73.26 MB / 0.5886 GB Notification: Performance of SimCode: time 1.932e-06/11.68, allocations: 5.969 kB / 4.198 GB, free: 73.26 MB / 0.5886 GB Notification: Performance of Templates: time 0.1959/11.88, allocations: 88.98 MB / 4.285 GB, free: 69.21 MB / 0.5886 GB