Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.117/2.117, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004462/0.0004463, allocations: 12 kB / 314.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2767, allocations: 54.87 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.338/6.615, allocations: 2.658 GB / 3.019 GB, free: 122.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/6.615, allocations: 81.09 kB / 3.019 GB, free: 122.5 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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 3.511/10.13, allocations: 0.8006 GB / 3.819 GB, free: 38.98 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.499e-06/10.13, allocations: 0 / 3.819 GB, free: 38.98 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002681/10.13, allocations: 64.41 kB / 3.819 GB, free: 38.97 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.01552/10.14, allocations: 4.133 MB / 3.824 GB, free: 36.97 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/10.14, allocations: 11.88 kB / 3.824 GB, free: 36.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00833/10.15, allocations: 0.8438 MB / 3.824 GB, free: 36.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007016/10.16, allocations: 2.11 MB / 3.826 GB, free: 36.38 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/10.16, allocations: 179.9 kB / 3.827 GB, free: 36.38 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007446/10.16, allocations: 194.7 kB / 3.827 GB, free: 36.37 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01055/10.17, allocations: 3.586 MB / 3.83 GB, free: 35.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.89e-05/10.17, allocations: 7.094 kB / 3.83 GB, free: 35.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003846/10.17, allocations: 90.81 kB / 3.83 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002515/10.17, allocations: 164.6 kB / 3.831 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01145/10.18, allocations: 3.304 MB / 3.834 GB, free: 35.77 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02425/10.21, allocations: 15.03 MB / 3.848 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007478/10.21, allocations: 2.303 MB / 3.851 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04141/10.25, allocations: 18.82 MB / 3.869 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006001/10.26, allocations: 1.638 MB / 3.871 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.451e-06/10.26, allocations: 0 / 3.871 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.02731/10.29, allocations: 8.178 MB / 3.879 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/10.29, allocations: 284.4 kB / 3.879 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/10.29, allocations: 1.419 MB / 3.88 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004278/10.29, allocations: 57.52 kB / 3.88 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007376/10.29, allocations: 0.9207 MB / 3.881 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007159/10.29, allocations: 0.5901 MB / 3.882 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/10.29, allocations: 39.88 kB / 3.882 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001463/10.29, allocations: 390.1 kB / 3.882 GB, free: 9.723 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/10.3, allocations: 1.156 MB / 3.883 GB, free: 9.336 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003473/10.3, allocations: 1.641 MB / 3.885 GB, free: 8.348 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/10.3, allocations: 1.387 MB / 3.886 GB, free: 7.781 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.62e-05/10.3, allocations: 3.438 kB / 3.886 GB, free: 7.781 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009912/10.31, allocations: 3.825 MB / 3.89 GB, free: 6.355 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002056/10.31, allocations: 5.182 MB / 3.895 GB, free: 16.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.642e-05/10.31, allocations: 14.36 kB / 3.895 GB, free: 16.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02032/10.34, allocations: 2.919 MB / 3.898 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/10.34, allocations: 321.2 kB / 3.898 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007748/10.34, allocations: 3.5 MB / 3.902 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003236/10.35, allocations: 254.6 kB / 3.902 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004932/10.35, allocations: 104.2 kB / 3.902 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/10.35, allocations: 8 kB / 3.902 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01031/10.36, allocations: 3.52 MB / 3.906 GB, free: 8.406 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.308e-05/10.36, allocations: 19.8 kB / 3.906 GB, free: 8.391 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008846/10.37, allocations: 1.715 MB / 3.907 GB, free: 7.074 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/10.37, allocations: 359.7 kB / 3.908 GB, free: 6.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005919/10.38, allocations: 2.744 MB / 3.91 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002449/10.38, allocations: 264.1 kB / 3.91 GB, free: 4.195 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003128/10.38, allocations: 103.5 kB / 3.911 GB, free: 4.102 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 () * Number of clocked 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.002028/10.38, allocations: 0.7135 MB / 3.911 GB, free: 3.445 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005972/10.38, allocations: 204.1 kB / 3.911 GB, free: 3.246 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3573/10.74, allocations: 7.781 MB / 3.919 GB, free: 52.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/10.74, allocations: 87.69 kB / 3.919 GB, free: 52.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/10.74, allocations: 0.75 kB / 3.919 GB, free: 52.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01104/10.75, allocations: 6.672 MB / 3.926 GB, free: 51.98 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0182/10.77, allocations: 10.92 MB / 3.936 GB, free: 51.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/10.77, allocations: 0.7656 kB / 3.936 GB, free: 51.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/10.77, allocations: 402.6 kB / 3.937 GB, free: 51.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/10.77, allocations: 381.7 kB / 3.937 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002305/10.77, allocations: 63.41 kB / 3.937 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/10.77, allocations: 2.574 MB / 3.94 GB, free: 49.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.446e-06/10.77, allocations: 0 / 3.94 GB, free: 49.29 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/10.79, allocations: 7.221 MB / 3.947 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/10.79, allocations: 0.7514 MB / 3.947 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000492/10.79, allocations: 51.66 kB / 3.947 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/10.79, allocations: 203.2 kB / 3.948 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003547/10.79, allocations: 142 kB / 3.948 GB, free: 48.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/10.79, allocations: 70.19 kB / 3.948 GB, free: 48.69 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002211/10.79, allocations: 1.189 MB / 3.949 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.29e-07/10.79, allocations: 0 / 3.949 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01071/10.8, allocations: 2.766 MB / 3.952 GB, free: 48.55 MB / 0.5261 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) * Number of clocked states: 0 () * 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.01184/10.82, allocations: 2.822 MB / 3.954 GB, free: 48.39 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0121/10.83, allocations: 5.389 MB / 3.96 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.615e-06/10.83, allocations: 0 / 3.96 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004611/10.83, allocations: 2.448 MB / 3.962 GB, free: 48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005694/10.84, allocations: 0.8602 MB / 3.963 GB, free: 47.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2805/11.12, allocations: 130.9 MB / 4.091 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002115/11.12, allocations: 2.256 MB / 4.093 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000955/11.12, allocations: 185.7 kB / 4.093 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.597e-06/11.12, allocations: 0 / 4.093 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of Templates: time 0.5167/11.64, allocations: 97.81 MB / 4.189 GB, free: 43.05 MB / 0.5261 GB