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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.883/1.883, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.2e-05/3.222e-05, allocations: 0 / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08794/0.088, allocations: 48.7 MB / 321.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.436/6.524, allocations: 2.548 GB / 2.862 GB, free: 100.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/6.524, allocations: 77.22 kB / 2.862 GB, free: 100.6 MB / 442.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.923/10.45, allocations: 0.8401 GB / 3.702 GB, free: 29.23 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.138e-06/10.45, allocations: 0 / 3.702 GB, free: 29.23 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002811/10.45, allocations: 65.58 kB / 3.702 GB, free: 29.22 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.01437/10.46, allocations: 3.737 MB / 3.706 GB, free: 27.49 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/10.46, allocations: 11.41 kB / 3.706 GB, free: 27.49 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008337/10.47, allocations: 0.8141 MB / 3.706 GB, free: 27.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006929/10.48, allocations: 2.099 MB / 3.708 GB, free: 26.9 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002891/10.48, allocations: 175.8 kB / 3.709 GB, free: 26.89 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00078/10.48, allocations: 198.9 kB / 3.709 GB, free: 26.89 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/10.49, allocations: 3.531 MB / 3.712 GB, free: 26.38 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.151e-05/10.49, allocations: 12.53 kB / 3.712 GB, free: 26.37 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003964/10.49, allocations: 88.08 kB / 3.712 GB, free: 26.37 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000254/10.49, allocations: 163.7 kB / 3.712 GB, free: 26.37 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/10.5, allocations: 3.125 MB / 3.716 GB, free: 26.36 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.02469/10.52, allocations: 15.02 MB / 3.73 GB, free: 17.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006338/10.53, allocations: 2.209 MB / 3.732 GB, free: 17.31 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002077/10.53, allocations: 1.032 MB / 3.733 GB, free: 17.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04264/10.58, allocations: 18.85 MB / 3.752 GB, free: 21.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005481/10.58, allocations: 1.628 MB / 3.753 GB, free: 21.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.098e-06/10.58, allocations: 2.906 kB / 3.753 GB, free: 21.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02312/10.6, allocations: 6.94 MB / 3.76 GB, free: 20.54 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001985/10.6, allocations: 281.7 kB / 3.76 GB, free: 20.22 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002937/10.61, allocations: 1.393 MB / 3.762 GB, free: 20.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004525/10.61, allocations: 63.2 kB / 3.762 GB, free: 20 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008559/10.61, allocations: 0.9238 MB / 3.763 GB, free: 19.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007562/10.61, allocations: 0.5769 MB / 3.763 GB, free: 19.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/10.61, allocations: 42.69 kB / 3.763 GB, free: 19.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000262/10.61, allocations: 388.5 kB / 3.764 GB, free: 18.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/10.61, allocations: 1.04 MB / 3.765 GB, free: 18.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002769/10.62, allocations: 1.518 MB / 3.766 GB, free: 18.31 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/10.62, allocations: 1.276 MB / 3.767 GB, free: 18.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-05/10.62, allocations: 3.938 kB / 3.767 GB, free: 18.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.008128/10.63, allocations: 3.525 MB / 3.771 GB, free: 18.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002555/10.63, allocations: 5.174 MB / 3.776 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.804e-05/10.63, allocations: 14.12 kB / 3.776 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01869/10.65, allocations: 2.752 MB / 3.779 GB, free: 12.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/10.65, allocations: 311 kB / 3.779 GB, free: 12.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006262/10.66, allocations: 3.299 MB / 3.782 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/10.66, allocations: 265.6 kB / 3.782 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004882/10.66, allocations: 100.7 kB / 3.783 GB, free: 11.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/10.66, allocations: 3.812 kB / 3.783 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007556/10.67, allocations: 3.221 MB / 3.786 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.848e-05/10.67, allocations: 16.06 kB / 3.786 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007357/10.67, allocations: 1.579 MB / 3.787 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001927/10.68, allocations: 357.9 kB / 3.788 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00444/10.68, allocations: 2.556 MB / 3.79 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/10.68, allocations: 255.5 kB / 3.79 GB, free: 11.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003454/10.68, allocations: 103 kB / 3.79 GB, free: 11.23 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.0007234/10.68, allocations: 260.4 kB / 3.791 GB, free: 11.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005492/10.69, allocations: 200 kB / 3.791 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/10.7, allocations: 7.698 MB / 3.798 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.529e-05/10.7, allocations: 91.03 kB / 3.798 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/10.7, allocations: 3.531 kB / 3.798 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01957/10.72, allocations: 6.596 MB / 3.805 GB, free: 9.281 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03724/10.76, allocations: 10.82 MB / 3.815 GB, free: 4.453 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.94e-05/10.76, allocations: 2.531 kB / 3.815 GB, free: 4.453 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005236/10.76, allocations: 404.5 kB / 3.816 GB, free: 4.141 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003654/10.76, allocations: 352.3 kB / 3.816 GB, free: 3.871 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000661/10.77, allocations: 63.03 kB / 3.816 GB, free: 3.816 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004694/10.77, allocations: 2.576 MB / 3.819 GB, free: 1.254 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.671e-06/10.77, allocations: 0 / 3.819 GB, free: 1.254 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02865/10.8, allocations: 6.971 MB / 3.826 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002291/10.8, allocations: 0.7488 MB / 3.826 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006778/10.8, allocations: 47.09 kB / 3.826 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002348/10.8, allocations: 200.1 kB / 3.827 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004121/10.8, allocations: 148.2 kB / 3.827 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002447/10.8, allocations: 65.98 kB / 3.827 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002601/10.81, allocations: 1.168 MB / 3.828 GB, free: 9.031 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.04e-07/10.81, allocations: 0 / 3.828 GB, free: 9.031 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01136/10.82, allocations: 2.75 MB / 3.831 GB, free: 6.34 MB / 0.4948 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: 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.01271/10.83, allocations: 2.82 MB / 3.833 GB, free: 4.184 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3429/11.17, allocations: 4.92 MB / 3.838 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.279e-06/11.17, allocations: 0.9062 kB / 3.838 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004593/11.18, allocations: 2.326 MB / 3.84 GB, free: 57.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00539/11.18, allocations: 0.8648 MB / 3.841 GB, free: 57.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2759/11.46, allocations: 125.7 MB / 3.964 GB, free: 48.37 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002124/11.46, allocations: 2.265 MB / 3.966 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009988/11.46, allocations: 183.8 kB / 3.966 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of SimCode: time 1.744e-06/11.46, allocations: 0 / 3.966 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of Templates: time 0.455/11.92, allocations: 97.03 MB / 4.061 GB, free: 44.55 MB / 0.4948 GB