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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.243/2.243, allocations: 249.5 MB / 261.6 MB, free: 2.105 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.093e-05, allocations: 4 kB / 323.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3243, allocations: 58.84 MB / 382.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.473/6.798, allocations: 2.827 GB / 3.201 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/6.798, allocations: 77.36 kB / 3.201 GB, free: 155.1 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/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.226/10.02, allocations: 0.8019 GB / 4.003 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of FrontEnd: time 5.997e-06/10.02, allocations: 0 / 4.003 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002556/10.02, allocations: 63.92 kB / 4.003 GB, free: 15.38 MB / 0.5417 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.0153/10.04, allocations: 3.855 MB / 4.006 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/10.04, allocations: 11.97 kB / 4.006 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008382/10.05, allocations: 0.8438 MB / 4.007 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007539/10.06, allocations: 2.087 MB / 4.009 GB, free: 8.477 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003412/10.06, allocations: 187.7 kB / 4.009 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008346/10.06, allocations: 196 kB / 4.01 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01126/10.07, allocations: 3.546 MB / 4.013 GB, free: 4.344 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.447e-05/10.07, allocations: 7.922 kB / 4.013 GB, free: 4.336 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003973/10.07, allocations: 91.95 kB / 4.013 GB, free: 4.246 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003068/10.07, allocations: 159.6 kB / 4.013 GB, free: 4.09 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/10.08, allocations: 3.142 MB / 4.016 GB, free: 0.9453 MB / 0.5417 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.3826/10.46, allocations: 15.2 MB / 4.031 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006314/10.47, allocations: 2.231 MB / 4.033 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/10.47, allocations: 1.059 MB / 4.035 GB, free: 31.75 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05491/10.53, allocations: 24.54 MB / 4.058 GB, free: 32.84 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005109/10.53, allocations: 1.663 MB / 4.06 GB, free: 32.75 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.123e-06/10.53, allocations: 0 / 4.06 GB, free: 32.75 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.02972/10.56, allocations: 9.191 MB / 4.069 GB, free: 31.87 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001888/10.56, allocations: 285.5 kB / 4.069 GB, free: 31.56 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002706/10.56, allocations: 1.449 MB / 4.071 GB, free: 31.38 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004103/10.56, allocations: 58.11 kB / 4.071 GB, free: 31.35 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008707/10.56, allocations: 0.9686 MB / 4.072 GB, free: 31.05 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006191/10.57, allocations: 0.58 MB / 4.072 GB, free: 30.76 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/10.57, allocations: 44.22 kB / 4.072 GB, free: 30.76 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002488/10.57, allocations: 392.8 kB / 4.073 GB, free: 30.45 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/10.57, allocations: 1.046 MB / 4.074 GB, free: 30.45 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002316/10.57, allocations: 1.499 MB / 4.075 GB, free: 29.95 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/10.57, allocations: 1.272 MB / 4.076 GB, free: 29.89 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/10.57, allocations: 3.281 kB / 4.076 GB, free: 29.89 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006693/10.58, allocations: 3.086 MB / 4.079 GB, free: 29.65 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002308/10.58, allocations: 4.81 MB / 4.084 GB, free: 24.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.956e-05/10.58, allocations: 11.62 kB / 4.084 GB, free: 24.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/10.58, allocations: 259.1 kB / 4.084 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002963/10.59, allocations: 0.5103 MB / 4.085 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/10.59, allocations: 2.486 MB / 4.087 GB, free: 22.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003172/10.59, allocations: 266.6 kB / 4.088 GB, free: 22.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004404/10.59, allocations: 100.3 kB / 4.088 GB, free: 22.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/10.59, allocations: 7.5 kB / 4.088 GB, free: 22.5 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006142/10.6, allocations: 2.823 MB / 4.09 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.222e-05/10.6, allocations: 19.81 kB / 4.09 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/10.6, allocations: 256.6 kB / 4.091 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002661/10.6, allocations: 0.5033 MB / 4.091 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/10.6, allocations: 2.486 MB / 4.094 GB, free: 20.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002854/10.61, allocations: 266.4 kB / 4.094 GB, free: 20.27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003182/10.61, allocations: 100.9 kB / 4.094 GB, free: 20.27 MB / 0.5573 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.0007157/10.61, allocations: 271 kB / 4.094 GB, free: 20.13 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004824/10.61, allocations: 208.4 kB / 4.094 GB, free: 20.03 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/10.62, allocations: 7.742 MB / 4.102 GB, free: 19.31 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.98e-05/10.62, allocations: 95.31 kB / 4.102 GB, free: 19.31 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/10.62, allocations: 0 / 4.102 GB, free: 19.31 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009595/10.63, allocations: 6.644 MB / 4.109 GB, free: 18.45 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/10.65, allocations: 10.93 MB / 4.119 GB, free: 17.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/10.65, allocations: 0 / 4.119 GB, free: 17.73 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/10.65, allocations: 408.8 kB / 4.12 GB, free: 17.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/10.65, allocations: 355.7 kB / 4.12 GB, free: 17.69 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002748/10.65, allocations: 62.16 kB / 4.12 GB, free: 17.69 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/10.65, allocations: 2.567 MB / 4.123 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.32e-06/10.65, allocations: 1.406 kB / 4.123 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/10.66, allocations: 6.984 MB / 4.129 GB, free: 14.97 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/10.67, allocations: 0.7675 MB / 4.13 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005396/10.67, allocations: 51.8 kB / 4.13 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/10.67, allocations: 202.6 kB / 4.13 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003531/10.67, allocations: 151.5 kB / 4.131 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002217/10.67, allocations: 72.08 kB / 4.131 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002802/10.67, allocations: 1.286 MB / 4.132 GB, free: 30.46 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.303e-06/10.67, allocations: 3.391 kB / 4.132 GB, free: 30.46 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009559/10.68, allocations: 2.798 MB / 4.135 GB, free: 30.34 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.01147/10.69, allocations: 2.865 MB / 4.137 GB, free: 30.04 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009734/10.7, allocations: 5.015 MB / 4.142 GB, free: 29.77 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.47e-06/10.7, allocations: 0 / 4.142 GB, free: 29.77 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003983/10.71, allocations: 2.366 MB / 4.145 GB, free: 29.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005355/10.71, allocations: 0.9243 MB / 4.146 GB, free: 29.67 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/10.72, allocations: 6.226 MB / 4.152 GB, free: 28.53 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/10.73, allocations: 2.31 MB / 4.154 GB, free: 27.76 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006612/10.73, allocations: 2.878 MB / 4.157 GB, free: 27.71 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007422/10.73, allocations: 172.2 kB / 4.157 GB, free: 27.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.849e-06/10.73, allocations: 0 / 4.157 GB, free: 27.7 MB / 0.573 GB Notification: Performance of Templates: time 0.5261/11.26, allocations: 88.95 MB / 4.244 GB, free: 73.07 MB / 0.573 GB