Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.37/2.37, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004327/0.0004328, allocations: 19.98 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.743/8.085, allocations: 2.658 GB / 3.019 GB, free: 33.42 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/8.085, allocations: 90.02 kB / 3.019 GB, free: 33.37 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.218/12.3, allocations: 0.7993 GB / 3.819 GB, free: 0.9766 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.294e-06/12.3, allocations: 0 / 3.819 GB, free: 0.9766 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003094/12.3, allocations: 63.92 kB / 3.819 GB, free: 0.9141 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.4439/12.75, allocations: 4.124 MB / 3.823 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/12.75, allocations: 9.875 kB / 3.823 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009375/12.76, allocations: 0.8434 MB / 3.824 GB, free: 34.42 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009365/12.77, allocations: 2.122 MB / 3.826 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003723/12.77, allocations: 176.8 kB / 3.826 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/12.77, allocations: 192.2 kB / 3.826 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01208/12.78, allocations: 3.596 MB / 3.829 GB, free: 33.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.49e-05/12.78, allocations: 9.484 kB / 3.829 GB, free: 33.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000393/12.78, allocations: 92.22 kB / 3.83 GB, free: 33.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003007/12.78, allocations: 160.1 kB / 3.83 GB, free: 33.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/12.79, allocations: 3.283 MB / 3.833 GB, free: 33.42 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.02934/12.82, allocations: 15.07 MB / 3.848 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008995/12.83, allocations: 2.304 MB / 3.85 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05861/12.89, allocations: 18.82 MB / 3.868 GB, free: 28.67 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006793/12.9, allocations: 1.642 MB / 3.87 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.049e-06/12.9, allocations: 0 / 3.87 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.04044/12.94, allocations: 8.861 MB / 3.879 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001999/12.94, allocations: 283.4 kB / 3.879 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003265/12.94, allocations: 1.604 MB / 3.88 GB, free: 27.07 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005866/12.94, allocations: 57.11 kB / 3.88 GB, free: 27.04 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009739/12.94, allocations: 0.9268 MB / 3.881 GB, free: 26.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001004/12.95, allocations: 0.5803 MB / 3.882 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/12.95, allocations: 39.34 kB / 3.882 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002606/12.95, allocations: 401.4 kB / 3.882 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003663/12.95, allocations: 1.146 MB / 3.883 GB, free: 25.88 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004363/12.95, allocations: 1.658 MB / 3.885 GB, free: 25.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004375/12.96, allocations: 1.383 MB / 3.886 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.029e-05/12.96, allocations: 6.781 kB / 3.886 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01407/12.97, allocations: 3.212 MB / 3.89 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006156/12.97, allocations: 0.5124 MB / 3.89 GB, free: 24.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.319e-05/12.97, allocations: 12.62 kB / 3.89 GB, free: 24.51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/12.98, allocations: 274.8 kB / 3.89 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005442/12.98, allocations: 0.5205 MB / 3.891 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/12.98, allocations: 2.499 MB / 3.893 GB, free: 22.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004227/12.99, allocations: 255.5 kB / 3.894 GB, free: 22.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006156/12.99, allocations: 102.3 kB / 3.894 GB, free: 22.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/12.99, allocations: 7.281 kB / 3.894 GB, free: 22.39 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01023/13, allocations: 3.064 MB / 3.897 GB, free: 22.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.01e-05/13, allocations: 14 kB / 3.897 GB, free: 22.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/13, allocations: 277.4 kB / 3.897 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/13, allocations: 0.5085 MB / 3.897 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/13.01, allocations: 2.505 MB / 3.9 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/13.01, allocations: 259.1 kB / 3.9 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003808/13.01, allocations: 102.8 kB / 3.9 GB, free: 20.16 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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.002255/13.01, allocations: 0.7358 MB / 3.901 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006925/13.01, allocations: 195.5 kB / 3.901 GB, free: 19.83 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01694/13.03, allocations: 7.771 MB / 3.909 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/13.03, allocations: 89.75 kB / 3.909 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/13.03, allocations: 0 / 3.909 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01396/13.04, allocations: 6.673 MB / 3.915 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02365/13.07, allocations: 10.92 MB / 3.926 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.701e-05/13.07, allocations: 1.688 kB / 3.926 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003341/13.07, allocations: 403.6 kB / 3.926 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/13.07, allocations: 378.2 kB / 3.927 GB, free: 17.44 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005279/13.07, allocations: 65.56 kB / 3.927 GB, free: 17.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/13.08, allocations: 2.574 MB / 3.929 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/13.08, allocations: 4.625 kB / 3.929 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/13.09, allocations: 7.224 MB / 3.936 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002405/13.1, allocations: 0.756 MB / 3.937 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009226/13.1, allocations: 50.61 kB / 3.937 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003257/13.1, allocations: 193.3 kB / 3.937 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006244/13.1, allocations: 149.1 kB / 3.937 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002405/13.1, allocations: 69.14 kB / 3.938 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002844/13.1, allocations: 1.186 MB / 3.939 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.41e-07/13.1, allocations: 5.594 kB / 3.939 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01359/13.12, allocations: 2.77 MB / 3.941 GB, free: 14.11 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.01597/13.13, allocations: 2.819 MB / 3.944 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01471/13.15, allocations: 5.283 MB / 3.949 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/13.15, allocations: 3.938 kB / 3.949 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005577/13.15, allocations: 2.442 MB / 3.952 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007843/13.16, allocations: 0.8777 MB / 3.953 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7986/13.96, allocations: 131.2 MB / 4.081 GB, free: 57.14 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002471/13.96, allocations: 2.257 MB / 4.083 GB, free: 56.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/13.96, allocations: 208.8 kB / 4.083 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of SimCode: time 1.243e-06/13.96, allocations: 0 / 4.083 GB, free: 56.39 MB / 0.5417 GB Notification: Performance of Templates: time 0.2201/14.18, allocations: 117.6 MB / 4.198 GB, free: 14 MB / 0.5417 GB