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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.019/2.019, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.345e-05, allocations: 0 / 273.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08747, allocations: 48.7 MB / 321.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.445/6.533, allocations: 2.547 GB / 2.862 GB, free: 82.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/6.533, allocations: 79.53 kB / 2.862 GB, free: 82.55 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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 3.784/10.32, allocations: 0.779 GB / 3.641 GB, free: 31.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.099e-06/10.32, allocations: 0 / 3.641 GB, free: 31.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002631/10.32, allocations: 69.75 kB / 3.641 GB, free: 31.16 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01427/10.33, allocations: 3.73 MB / 3.644 GB, free: 29.52 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/10.33, allocations: 13.53 kB / 3.644 GB, free: 29.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008424/10.34, allocations: 0.8136 MB / 3.645 GB, free: 29.38 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006865/10.35, allocations: 2.086 MB / 3.647 GB, free: 28.94 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/10.35, allocations: 185.3 kB / 3.647 GB, free: 28.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007984/10.35, allocations: 198.9 kB / 3.648 GB, free: 28.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/10.36, allocations: 3.535 MB / 3.651 GB, free: 28.42 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.579e-05/10.36, allocations: 16.27 kB / 3.651 GB, free: 28.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003884/10.36, allocations: 85.48 kB / 3.651 GB, free: 28.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002471/10.36, allocations: 159.3 kB / 3.651 GB, free: 28.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009705/10.37, allocations: 3.124 MB / 3.654 GB, free: 28.4 MB / 474.7 MB 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.02435/10.39, allocations: 15.03 MB / 3.669 GB, free: 19.4 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006445/10.4, allocations: 2.209 MB / 3.671 GB, free: 19.36 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/10.4, allocations: 1.041 MB / 3.672 GB, free: 19.35 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04202/10.44, allocations: 18.85 MB / 3.691 GB, free: 23.61 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00534/10.45, allocations: 1.63 MB / 3.692 GB, free: 23.51 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.706e-06/10.45, allocations: 1.938 kB / 3.692 GB, free: 23.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02399/10.47, allocations: 6.924 MB / 3.699 GB, free: 22.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002021/10.47, allocations: 289.6 kB / 3.699 GB, free: 22.29 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/10.48, allocations: 1.399 MB / 3.701 GB, free: 22.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004628/10.48, allocations: 55.55 kB / 3.701 GB, free: 22.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008418/10.48, allocations: 0.9227 MB / 3.702 GB, free: 21.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007138/10.48, allocations: 0.5817 MB / 3.702 GB, free: 21.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/10.48, allocations: 40.41 kB / 3.702 GB, free: 21.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002511/10.48, allocations: 399.3 kB / 3.703 GB, free: 20.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002174/10.48, allocations: 1.038 MB / 3.704 GB, free: 20.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00254/10.48, allocations: 1.517 MB / 3.705 GB, free: 20.37 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/10.49, allocations: 1.27 MB / 3.706 GB, free: 20.31 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.742e-05/10.49, allocations: 7.344 kB / 3.706 GB, free: 20.31 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.007973/10.5, allocations: 3.512 MB / 3.71 GB, free: 20.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002621/10.5, allocations: 5.175 MB / 3.715 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.37e-05/10.5, allocations: 16.69 kB / 3.715 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01963/10.52, allocations: 2.741 MB / 3.718 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/10.52, allocations: 321.9 kB / 3.718 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006168/10.53, allocations: 3.3 MB / 3.721 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003164/10.53, allocations: 263.5 kB / 3.721 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005053/10.53, allocations: 104.8 kB / 3.721 GB, free: 14.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/10.53, allocations: 2.812 kB / 3.721 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008232/10.54, allocations: 3.222 MB / 3.725 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.455e-05/10.54, allocations: 16.34 kB / 3.725 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00732/10.55, allocations: 1.576 MB / 3.726 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/10.55, allocations: 354.8 kB / 3.726 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004244/10.55, allocations: 2.556 MB / 3.729 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002558/10.55, allocations: 257 kB / 3.729 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003527/10.55, allocations: 101.8 kB / 3.729 GB, free: 13.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,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.0007258/10.56, allocations: 260.8 kB / 3.73 GB, free: 13.33 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005663/10.56, allocations: 200.1 kB / 3.73 GB, free: 13.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/10.57, allocations: 7.701 MB / 3.737 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.334e-05/10.57, allocations: 96.84 kB / 3.737 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/10.57, allocations: 0 / 3.737 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01035/10.58, allocations: 6.597 MB / 3.744 GB, free: 11.57 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/10.6, allocations: 10.81 MB / 3.754 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/10.6, allocations: 2.375 kB / 3.754 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002613/10.6, allocations: 404.4 kB / 3.755 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001877/10.6, allocations: 349.7 kB / 3.755 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004352/10.6, allocations: 65.61 kB / 3.755 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/10.6, allocations: 2.571 MB / 3.758 GB, free: 8.695 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.662e-06/10.6, allocations: 0 / 3.758 GB, free: 8.695 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/10.62, allocations: 6.892 MB / 3.764 GB, free: 6.852 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002018/10.62, allocations: 0.7471 MB / 3.765 GB, free: 6.387 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007645/10.62, allocations: 53.41 kB / 3.765 GB, free: 6.355 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002549/10.62, allocations: 194 kB / 3.765 GB, free: 6.324 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005207/10.62, allocations: 144.2 kB / 3.765 GB, free: 6.305 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002779/10.62, allocations: 71.62 kB / 3.766 GB, free: 6.289 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002504/10.63, allocations: 1.162 MB / 3.767 GB, free: 5.82 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.218e-06/10.63, allocations: 0 / 3.767 GB, free: 5.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01116/10.64, allocations: 2.747 MB / 3.769 GB, free: 5.234 MB / 490.7 MB 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: 53 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.01284/10.65, allocations: 2.841 MB / 3.772 GB, free: 4.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01096/10.66, allocations: 4.933 MB / 3.777 GB, free: 2.738 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.922e-06/10.66, allocations: 4.562 kB / 3.777 GB, free: 2.738 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004783/10.67, allocations: 2.317 MB / 3.779 GB, free: 1.727 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005566/10.67, allocations: 0.873 MB / 3.78 GB, free: 1.531 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6049/11.28, allocations: 125.8 MB / 3.903 GB, free: 49.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002254/11.28, allocations: 2.259 MB / 3.905 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/11.28, allocations: 183.1 kB / 3.905 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.667e-06/11.28, allocations: 3.875 kB / 3.905 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.5134/11.79, allocations: 97.03 MB / 4 GB, free: 54 MB / 0.4948 GB