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.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.339/2.339, allocations: 270.1 MB / 283.6 MB, free: 3.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.476e-05/3.487e-05, allocations: 4 kB / 348.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1146, allocations: 61.88 MB / 410.3 MB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.929/7.044, allocations: 2.832 GB / 3.233 GB, free: 28.15 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/7.044, allocations: 81.95 kB / 3.233 GB, free: 28.11 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 4.225/11.27, allocations: 0.8749 GB / 4.108 GB, free: 35.16 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.915e-06/11.27, allocations: 2.094 kB / 4.108 GB, free: 35.16 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003252/11.27, allocations: 68.11 kB / 4.108 GB, free: 35.16 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.01531/11.28, allocations: 3.856 MB / 4.112 GB, free: 33.61 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/11.28, allocations: 9.406 kB / 4.112 GB, free: 33.61 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008348/11.29, allocations: 0.8454 MB / 4.113 GB, free: 33.47 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006912/11.3, allocations: 2.079 MB / 4.115 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002748/11.3, allocations: 183.6 kB / 4.115 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000648/11.3, allocations: 202.7 kB / 4.115 GB, free: 33.02 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009918/11.31, allocations: 3.556 MB / 4.119 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.177e-05/11.31, allocations: 11.53 kB / 4.119 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/11.31, allocations: 88.56 kB / 4.119 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002467/11.31, allocations: 164.5 kB / 4.119 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009243/11.32, allocations: 3.133 MB / 4.122 GB, free: 32.46 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.02336/11.34, allocations: 15.19 MB / 4.137 GB, free: 23.45 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006721/11.35, allocations: 2.236 MB / 4.139 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/11.35, allocations: 1.064 MB / 4.14 GB, free: 23.41 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06236/11.42, allocations: 24.55 MB / 4.164 GB, free: 24.47 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009386/11.42, allocations: 1.665 MB / 4.165 GB, free: 24.38 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 1.081e-05/11.43, allocations: 0 / 4.165 GB, free: 24.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=171): time 0.03654/11.46, allocations: 7.029 MB / 4.172 GB, free: 23.45 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002614/11.46, allocations: 283 kB / 4.173 GB, free: 23.14 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004299/11.47, allocations: 1.448 MB / 4.174 GB, free: 22.95 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005068/11.47, allocations: 58.52 kB / 4.174 GB, free: 22.92 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001362/11.47, allocations: 0.9644 MB / 4.175 GB, free: 22.54 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009616/11.47, allocations: 0.5794 MB / 4.176 GB, free: 22.17 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/11.47, allocations: 42.34 kB / 4.176 GB, free: 22.17 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003598/11.47, allocations: 388.6 kB / 4.176 GB, free: 21.87 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003667/11.47, allocations: 1.047 MB / 4.177 GB, free: 21.86 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002411/11.48, allocations: 1.497 MB / 4.178 GB, free: 21.37 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002416/11.48, allocations: 1.277 MB / 4.18 GB, free: 21.31 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/11.48, allocations: 8.609 kB / 4.18 GB, free: 21.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007536/11.49, allocations: 3.645 MB / 4.183 GB, free: 21.08 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002294/11.49, allocations: 4.805 MB / 4.188 GB, free: 16.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.133e-05/11.49, allocations: 11.31 kB / 4.188 GB, free: 16.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02042/11.51, allocations: 3.018 MB / 4.191 GB, free: 16.03 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/11.51, allocations: 308.7 kB / 4.191 GB, free: 16.03 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009602/11.52, allocations: 3.308 MB / 4.194 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005044/11.53, allocations: 267.1 kB / 4.195 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000647/11.53, allocations: 100.5 kB / 4.195 GB, free: 15.44 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/11.53, allocations: 3.75 kB / 4.195 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01239/11.54, allocations: 3.247 MB / 4.198 GB, free: 15.35 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.02e-05/11.54, allocations: 13.41 kB / 4.198 GB, free: 15.35 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01444/11.55, allocations: 1.63 MB / 4.2 GB, free: 15.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/11.56, allocations: 349.6 kB / 4.2 GB, free: 15.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0046/11.56, allocations: 2.573 MB / 4.202 GB, free: 14.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003222/11.56, allocations: 257.5 kB / 4.203 GB, free: 14.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003571/11.56, allocations: 101.6 kB / 4.203 GB, free: 14.75 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.0007145/11.56, allocations: 255.2 kB / 4.203 GB, free: 14.61 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005187/11.56, allocations: 210.1 kB / 4.203 GB, free: 14.5 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/11.58, allocations: 7.752 MB / 4.211 GB, free: 13.7 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.539e-05/11.58, allocations: 89.73 kB / 4.211 GB, free: 13.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/11.58, allocations: 0 / 4.211 GB, free: 13.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009562/11.59, allocations: 6.647 MB / 4.217 GB, free: 12.84 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.017/11.6, allocations: 10.94 MB / 4.228 GB, free: 12.07 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/11.6, allocations: 11.33 kB / 4.228 GB, free: 12.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/11.61, allocations: 405 kB / 4.228 GB, free: 12.07 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001566/11.61, allocations: 351.4 kB / 4.229 GB, free: 12.03 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/11.61, allocations: 64.16 kB / 4.229 GB, free: 12.03 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/11.61, allocations: 2.57 MB / 4.231 GB, free: 9.957 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.928e-06/11.61, allocations: 0 / 4.231 GB, free: 9.957 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01121/11.62, allocations: 6.972 MB / 4.238 GB, free: 9.324 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001982/11.62, allocations: 0.775 MB / 4.239 GB, free: 8.984 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006318/11.62, allocations: 54.08 kB / 4.239 GB, free: 8.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002318/11.63, allocations: 198.3 kB / 4.239 GB, free: 8.973 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003661/11.63, allocations: 153.1 kB / 4.239 GB, free: 8.969 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002302/11.63, allocations: 67.98 kB / 4.239 GB, free: 8.969 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00247/11.63, allocations: 1.291 MB / 4.241 GB, free: 8.809 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.175e-06/11.63, allocations: 0 / 4.241 GB, free: 8.809 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01051/11.64, allocations: 2.797 MB / 4.243 GB, free: 8.406 MB / 0.573 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.0121/11.65, allocations: 2.874 MB / 4.246 GB, free: 7.816 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0102/11.66, allocations: 5.044 MB / 4.251 GB, free: 6.695 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.936e-06/11.66, allocations: 0 / 4.251 GB, free: 6.695 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004235/11.67, allocations: 2.366 MB / 4.253 GB, free: 5.664 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006131/11.67, allocations: 0.9247 MB / 4.254 GB, free: 5.473 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/11.69, allocations: 6.225 MB / 4.26 GB, free: 18.99 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/11.69, allocations: 2.31 MB / 4.263 GB, free: 18.08 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005508/11.69, allocations: 1.96 MB / 4.265 GB, free: 17.98 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007107/11.69, allocations: 156.8 kB / 4.265 GB, free: 17.96 MB / 0.5886 GB Notification: Performance of SimCode: time 1.878e-06/11.69, allocations: 0 / 4.265 GB, free: 17.96 MB / 0.5886 GB Notification: Performance of Templates: time 0.5749/12.27, allocations: 98.94 MB / 4.361 GB, free: 61.86 MB / 0.5886 GB