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.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.151/2.151, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.307e-05/3.33e-05, allocations: 4 kB / 304.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3262, allocations: 54.84 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.893/6.219, allocations: 2.658 GB / 3.009 GB, free: 15.09 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/6.22, allocations: 75.97 kB / 3.01 GB, free: 15.02 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329: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.073/10.29, allocations: 0.8604 GB / 3.87 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.744e-06/10.29, allocations: 0 / 3.87 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002097/10.29, allocations: 65.88 kB / 3.87 GB, free: 36.41 MB / 0.5105 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.01369/10.31, allocations: 3.844 MB / 3.874 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/10.31, allocations: 11.38 kB / 3.874 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009475/10.32, allocations: 0.8442 MB / 3.875 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006729/10.32, allocations: 2.097 MB / 3.877 GB, free: 33.95 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002589/10.32, allocations: 179.8 kB / 3.877 GB, free: 33.95 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007512/10.32, allocations: 203.5 kB / 3.877 GB, free: 33.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/10.33, allocations: 3.544 MB / 3.88 GB, free: 33.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.936e-05/10.33, allocations: 7.438 kB / 3.88 GB, free: 33.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003813/10.33, allocations: 86.22 kB / 3.881 GB, free: 33.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000232/10.34, allocations: 163.5 kB / 3.881 GB, free: 33.39 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009723/10.34, allocations: 3.127 MB / 3.884 GB, free: 33.38 MB / 0.5105 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.02311/10.37, allocations: 15.05 MB / 3.898 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006457/10.37, allocations: 2.2 MB / 3.901 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002073/10.38, allocations: 1.04 MB / 3.902 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04244/10.42, allocations: 18.88 MB / 3.92 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00576/10.42, allocations: 1.644 MB / 3.922 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.666e-06/10.42, allocations: 0 / 3.922 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.02194/10.45, allocations: 6.948 MB / 3.928 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005351/10.45, allocations: 278.3 kB / 3.929 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/10.45, allocations: 1.406 MB / 3.93 GB, free: 26.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004257/10.45, allocations: 54.55 kB / 3.93 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008187/10.45, allocations: 0.9262 MB / 3.931 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007217/10.45, allocations: 0.5829 MB / 3.932 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/10.45, allocations: 40.75 kB / 3.932 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000253/10.45, allocations: 390.8 kB / 3.932 GB, free: 25.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002199/10.45, allocations: 1.042 MB / 3.933 GB, free: 25.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00257/10.46, allocations: 1.524 MB / 3.935 GB, free: 25.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/10.46, allocations: 1.285 MB / 3.936 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/10.46, allocations: 3.375 kB / 3.936 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007681/10.47, allocations: 3.508 MB / 3.939 GB, free: 24.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002545/10.47, allocations: 5.177 MB / 3.944 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.887e-05/10.47, allocations: 15.88 kB / 3.944 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01918/10.49, allocations: 2.753 MB / 3.947 GB, free: 19.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/10.49, allocations: 313.3 kB / 3.947 GB, free: 19.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/10.5, allocations: 3.305 MB / 3.951 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003176/10.5, allocations: 253.7 kB / 3.951 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004103/10.5, allocations: 104.4 kB / 3.951 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/10.5, allocations: 7.203 kB / 3.951 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007018/10.51, allocations: 3.21 MB / 3.954 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-05/10.51, allocations: 17.47 kB / 3.954 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007815/10.52, allocations: 1.569 MB / 3.956 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/10.52, allocations: 365.7 kB / 3.956 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/10.52, allocations: 2.552 MB / 3.958 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/10.53, allocations: 259.8 kB / 3.959 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/10.53, allocations: 104.8 kB / 3.959 GB, free: 18.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (162): * Single equations (assignments): 158 * 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.0007058/10.53, allocations: 259.4 kB / 3.959 GB, free: 17.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005414/10.53, allocations: 198.4 kB / 3.959 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/10.54, allocations: 7.698 MB / 3.967 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.06e-05/10.54, allocations: 87.92 kB / 3.967 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/10.54, allocations: 3.938 kB / 3.967 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01002/10.55, allocations: 6.599 MB / 3.973 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/10.57, allocations: 10.81 MB / 3.984 GB, free: 4.797 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/10.57, allocations: 0 / 3.984 GB, free: 4.797 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002498/10.57, allocations: 404 kB / 3.984 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001765/10.57, allocations: 350.5 kB / 3.985 GB, free: 4.211 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004584/10.57, allocations: 66.97 kB / 3.985 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/10.58, allocations: 2.568 MB / 3.987 GB, free: 1.602 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.49e-06/10.58, allocations: 4.031 kB / 3.987 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01463/10.59, allocations: 6.927 MB / 3.994 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002273/10.59, allocations: 0.754 MB / 3.995 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007192/10.59, allocations: 52.36 kB / 3.995 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002473/10.6, allocations: 195.8 kB / 3.995 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004475/10.6, allocations: 141.9 kB / 3.995 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002684/10.6, allocations: 67.36 kB / 3.995 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002579/10.6, allocations: 1.17 MB / 3.996 GB, free: 9.227 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.091e-06/10.6, allocations: 0 / 3.996 GB, free: 9.227 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01178/10.61, allocations: 2.761 MB / 3.999 GB, free: 6.523 MB / 0.5417 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 (197): * Single equations (assignments): 167 * 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.01363/10.63, allocations: 2.856 MB / 4.002 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.3533/10.98, allocations: 5.006 MB / 4.007 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/10.98, allocations: 3 kB / 4.007 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004995/10.98, allocations: 2.358 MB / 4.009 GB, free: 65.36 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005522/10.99, allocations: 0.8669 MB / 4.01 GB, free: 65.35 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2829/11.27, allocations: 127.9 MB / 4.135 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/11.27, allocations: 2.264 MB / 4.137 GB, free: 53.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/11.28, allocations: 180.2 kB / 4.137 GB, free: 53.67 MB / 0.5417 GB Notification: Performance of SimCode: time 1.855e-06/11.28, allocations: 0 / 4.137 GB, free: 53.67 MB / 0.5417 GB Notification: Performance of Templates: time 0.493/11.77, allocations: 97.37 MB / 4.232 GB, free: 62.18 MB / 0.5417 GB