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.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.255/2.255, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.988e-05, allocations: 4 kB / 323.4 MB, free: 4.316 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.322, allocations: 58.82 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.6/6.922, allocations: 2.827 GB / 3.201 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/6.922, allocations: 79.52 kB / 3.201 GB, free: 113.8 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.547/10.47, allocations: 0.8031 GB / 4.004 GB, free: 37.65 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.116e-06/10.47, allocations: 3.688 kB / 4.004 GB, free: 37.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002411/10.47, allocations: 65.11 kB / 4.004 GB, free: 37.64 MB / 0.5261 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.01388/10.48, allocations: 3.848 MB / 4.008 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/10.48, allocations: 10.28 kB / 4.008 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009407/10.49, allocations: 0.8447 MB / 4.009 GB, free: 35.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006424/10.5, allocations: 2.089 MB / 4.011 GB, free: 35.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002469/10.5, allocations: 181.2 kB / 4.011 GB, free: 35.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006906/10.5, allocations: 203.6 kB / 4.011 GB, free: 35.19 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009404/10.51, allocations: 3.549 MB / 4.014 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-05/10.51, allocations: 5 kB / 4.014 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003604/10.51, allocations: 93.22 kB / 4.015 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002334/10.51, allocations: 165.6 kB / 4.015 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009585/10.52, allocations: 3.13 MB / 4.018 GB, free: 34.63 MB / 0.5261 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.02352/10.54, allocations: 15.21 MB / 4.033 GB, free: 25.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006735/10.55, allocations: 2.23 MB / 4.035 GB, free: 25.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002055/10.55, allocations: 1.063 MB / 4.036 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05732/10.61, allocations: 24.54 MB / 4.06 GB, free: 26.18 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005533/10.62, allocations: 1.656 MB / 4.061 GB, free: 26.07 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=155): time 7.257e-06/10.62, allocations: 3.938 kB / 4.061 GB, free: 26.07 MB / 0.5418 GB Notification: Performance of matching and sorting (n=171): time 0.02189/10.64, allocations: 7.037 MB / 4.068 GB, free: 25.11 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001908/10.64, allocations: 279.4 kB / 4.069 GB, free: 24.8 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00272/10.64, allocations: 1.445 MB / 4.07 GB, free: 24.62 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0003704/10.64, allocations: 57.98 kB / 4.07 GB, free: 24.59 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008404/10.64, allocations: 0.9699 MB / 4.071 GB, free: 24.2 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006149/10.64, allocations: 0.5871 MB / 4.072 GB, free: 23.83 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/10.64, allocations: 41.09 kB / 4.072 GB, free: 23.83 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0002424/10.64, allocations: 383.9 kB / 4.072 GB, free: 23.52 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/10.64, allocations: 1.047 MB / 4.073 GB, free: 23.42 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002469/10.65, allocations: 1.504 MB / 4.074 GB, free: 22.5 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/10.65, allocations: 1.272 MB / 4.076 GB, free: 22.02 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/10.65, allocations: 3.625 kB / 4.076 GB, free: 22.02 MB / 0.5418 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007772/10.66, allocations: 3.644 MB / 4.079 GB, free: 20.64 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.002271/10.66, allocations: 4.811 MB / 4.084 GB, free: 15.46 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.269e-05/10.66, allocations: 13.19 kB / 4.084 GB, free: 15.46 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02113/10.68, allocations: 3.017 MB / 4.087 GB, free: 15.02 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/10.68, allocations: 313.5 kB / 4.087 GB, free: 14.85 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005868/10.69, allocations: 3.297 MB / 4.09 GB, free: 11.96 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003037/10.69, allocations: 258.1 kB / 4.091 GB, free: 11.77 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003878/10.69, allocations: 103.2 kB / 4.091 GB, free: 11.68 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/10.69, allocations: 6.344 kB / 4.091 GB, free: 11.67 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006786/10.7, allocations: 3.24 MB / 4.094 GB, free: 8.824 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.297e-05/10.7, allocations: 15.28 kB / 4.094 GB, free: 8.812 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007375/10.71, allocations: 1.621 MB / 4.096 GB, free: 7.555 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/10.71, allocations: 355.9 kB / 4.096 GB, free: 7.254 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004661/10.71, allocations: 2.573 MB / 4.098 GB, free: 4.988 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/10.72, allocations: 265.4 kB / 4.099 GB, free: 4.789 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000411/10.72, allocations: 99.36 kB / 4.099 GB, free: 4.699 MB / 0.5418 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.0007413/10.72, allocations: 252.4 kB / 4.099 GB, free: 4.441 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006158/10.72, allocations: 216.4 kB / 4.099 GB, free: 4.234 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02308/10.74, allocations: 8.213 MB / 4.107 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/10.74, allocations: 96.8 kB / 4.107 GB, free: 14.46 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/10.74, allocations: 0 / 4.107 GB, free: 14.46 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0116/10.75, allocations: 6.642 MB / 4.114 GB, free: 8.289 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3803/11.13, allocations: 11.23 MB / 4.125 GB, free: 66.15 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/11.13, allocations: 0 / 4.125 GB, free: 66.15 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/11.14, allocations: 403.9 kB / 4.125 GB, free: 66.15 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/11.14, allocations: 359.5 kB / 4.125 GB, free: 66.12 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003615/11.14, allocations: 60.36 kB / 4.126 GB, free: 66.12 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/11.14, allocations: 2.573 MB / 4.128 GB, free: 64.05 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.719e-06/11.14, allocations: 0.6562 kB / 4.128 GB, free: 64.05 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01221/11.15, allocations: 6.97 MB / 4.135 GB, free: 63.64 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/11.15, allocations: 0.7713 MB / 4.136 GB, free: 63.54 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006271/11.15, allocations: 53.42 kB / 4.136 GB, free: 63.54 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/11.16, allocations: 201.4 kB / 4.136 GB, free: 63.54 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003768/11.16, allocations: 156.7 kB / 4.136 GB, free: 63.54 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002271/11.16, allocations: 67.45 kB / 4.136 GB, free: 63.54 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002836/11.16, allocations: 1.297 MB / 4.137 GB, free: 63.38 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.635e-06/11.16, allocations: 0 / 4.137 GB, free: 63.38 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01918/11.18, allocations: 2.788 MB / 4.14 GB, free: 63.38 MB / 0.5574 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.04318/11.22, allocations: 2.851 MB / 4.143 GB, free: 63.23 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.03053/11.25, allocations: 5.047 MB / 4.148 GB, free: 62.93 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/11.25, allocations: 3.875 kB / 4.148 GB, free: 62.93 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.006405/11.26, allocations: 2.366 MB / 4.15 GB, free: 62.85 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006192/11.27, allocations: 0.9254 MB / 4.151 GB, free: 62.83 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/11.28, allocations: 6.217 MB / 4.157 GB, free: 61.71 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002166/11.28, allocations: 2.312 MB / 4.159 GB, free: 60.94 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.00547/11.29, allocations: 1.955 MB / 4.161 GB, free: 60.9 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007303/11.29, allocations: 157.4 kB / 4.161 GB, free: 60.89 MB / 0.5574 GB Notification: Performance of SimCode: time 1.926e-06/11.29, allocations: 0 / 4.161 GB, free: 60.89 MB / 0.5574 GB Notification: Performance of Templates: time 0.183/11.47, allocations: 98.89 MB / 4.258 GB, free: 54.31 MB / 0.5574 GB