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.SeriesPipes13.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.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.238/2.238, allocations: 234.9 MB / 250.5 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004471/0.0004473, allocations: 8 kB / 314.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2968, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.238/6.535, allocations: 2.658 GB / 3.019 GB, free: 149.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/6.535, allocations: 76.69 kB / 3.019 GB, free: 149.1 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.833/10.37, allocations: 0.8626 GB / 3.882 GB, free: 39.31 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.265e-06/10.37, allocations: 0 / 3.882 GB, free: 39.31 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002382/10.37, allocations: 67.73 kB / 3.882 GB, free: 39.3 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.01522/10.38, allocations: 4.126 MB / 3.886 GB, free: 37.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/10.38, allocations: 14.28 kB / 3.886 GB, free: 37.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01385/10.4, allocations: 0.8438 MB / 3.886 GB, free: 37.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01261/10.41, allocations: 2.113 MB / 3.888 GB, free: 36.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004631/10.41, allocations: 182.8 kB / 3.889 GB, free: 36.58 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/10.41, allocations: 199.9 kB / 3.889 GB, free: 36.57 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/10.43, allocations: 3.581 MB / 3.892 GB, free: 35.15 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001276/10.43, allocations: 7.875 kB / 3.892 GB, free: 35.15 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006785/10.43, allocations: 87.11 kB / 3.892 GB, free: 35.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004441/10.43, allocations: 166.7 kB / 3.893 GB, free: 35.06 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01999/10.45, allocations: 3.292 MB / 3.896 GB, free: 34.1 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.03332/10.49, allocations: 15.06 MB / 3.911 GB, free: 22.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006946/10.49, allocations: 2.294 MB / 3.913 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03638/10.53, allocations: 18.81 MB / 3.931 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00558/10.53, allocations: 1.634 MB / 3.933 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 6.747e-06/10.53, allocations: 0 / 3.933 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.0297/10.56, allocations: 8.195 MB / 3.941 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002068/10.56, allocations: 278.3 kB / 3.941 GB, free: 7.332 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003136/10.57, allocations: 1.418 MB / 3.942 GB, free: 5.914 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000453/10.57, allocations: 57.7 kB / 3.942 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001096/10.57, allocations: 0.9171 MB / 3.943 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009589/10.57, allocations: 0.5921 MB / 3.944 GB, free: 4.344 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000221/10.57, allocations: 40 kB / 3.944 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002858/10.57, allocations: 390.9 kB / 3.944 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003315/10.57, allocations: 1.148 MB / 3.945 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003909/10.58, allocations: 1.653 MB / 3.947 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3491/10.93, allocations: 1.371 MB / 3.948 GB, free: 55.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.902e-05/10.93, allocations: 5.375 kB / 3.948 GB, free: 55.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01086/10.94, allocations: 3.83 MB / 3.952 GB, free: 55.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001053/10.94, allocations: 5.181 MB / 3.957 GB, free: 50.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.556e-05/10.94, allocations: 18.98 kB / 3.957 GB, free: 50.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02059/10.96, allocations: 2.924 MB / 3.96 GB, free: 50 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/10.96, allocations: 312.9 kB / 3.96 GB, free: 50 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008164/10.97, allocations: 3.503 MB / 3.964 GB, free: 49.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/10.97, allocations: 257.1 kB / 3.964 GB, free: 49.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005026/10.97, allocations: 109.3 kB / 3.964 GB, free: 49.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/10.97, allocations: 2.875 kB / 3.964 GB, free: 49.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009512/10.98, allocations: 3.519 MB / 3.968 GB, free: 49.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.229e-05/10.98, allocations: 17.98 kB / 3.968 GB, free: 49.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008977/10.99, allocations: 1.714 MB / 3.969 GB, free: 49.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/10.99, allocations: 359.1 kB / 3.97 GB, free: 49.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00535/11, allocations: 2.744 MB / 3.972 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/11, allocations: 255.3 kB / 3.973 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003547/11, allocations: 106.1 kB / 3.973 GB, free: 48.8 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.001856/11, allocations: 0.7254 MB / 3.973 GB, free: 48.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005804/11, allocations: 206.2 kB / 3.974 GB, free: 48.58 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/11.02, allocations: 7.762 MB / 3.981 GB, free: 48.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.8e-05/11.02, allocations: 85.06 kB / 3.981 GB, free: 48.04 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/11.02, allocations: 3.75 kB / 3.981 GB, free: 48.04 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01149/11.03, allocations: 6.67 MB / 3.988 GB, free: 47.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02015/11.05, allocations: 10.93 MB / 3.998 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/11.05, allocations: 3.062 kB / 3.998 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002454/11.05, allocations: 400.1 kB / 3.999 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002127/11.06, allocations: 373.6 kB / 3.999 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004505/11.06, allocations: 66.89 kB / 3.999 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/11.06, allocations: 2.575 MB / 4.002 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.4e-06/11.06, allocations: 0 / 4.002 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01403/11.07, allocations: 7.225 MB / 4.009 GB, free: 43.85 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/11.07, allocations: 0.7429 MB / 4.009 GB, free: 43.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007332/11.07, allocations: 51.69 kB / 4.01 GB, free: 43.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/11.08, allocations: 202.1 kB / 4.01 GB, free: 43.57 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004963/11.08, allocations: 153.7 kB / 4.01 GB, free: 43.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002278/11.08, allocations: 65.03 kB / 4.01 GB, free: 43.57 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002364/11.08, allocations: 1.186 MB / 4.011 GB, free: 43.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.726e-06/11.08, allocations: 0 / 4.011 GB, free: 43.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01066/11.09, allocations: 2.769 MB / 4.014 GB, free: 43.43 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.01222/11.1, allocations: 2.823 MB / 4.017 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01245/11.12, allocations: 5.382 MB / 4.022 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/11.12, allocations: 7.078 kB / 4.022 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0048/11.12, allocations: 2.438 MB / 4.024 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005784/11.13, allocations: 0.873 MB / 4.025 GB, free: 42.76 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.638/11.76, allocations: 130.9 MB / 4.153 GB, free: 67.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002427/11.77, allocations: 2.269 MB / 4.155 GB, free: 66.44 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/11.77, allocations: 181.4 kB / 4.155 GB, free: 66.43 MB / 0.5417 GB Notification: Performance of SimCode: time 1.784e-06/11.77, allocations: 0 / 4.155 GB, free: 66.43 MB / 0.5417 GB Notification: Performance of Templates: time 0.1755/11.94, allocations: 97.82 MB / 4.251 GB, free: 61.3 MB / 0.5417 GB