Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.828/1.828, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000459/0.0004594, allocations: 8 kB / 282.6 MB, free: 9.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3411, allocations: 48.71 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.391/6.732, allocations: 2.548 GB / 2.871 GB, free: 75.19 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/6.732, allocations: 76.33 kB / 2.871 GB, free: 75.19 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.809/10.54, allocations: 0.8422 GB / 3.713 GB, free: 2.207 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.282e-06/10.54, allocations: 0 / 3.713 GB, free: 2.207 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000268/10.54, allocations: 67.92 kB / 3.713 GB, free: 2.141 MB / 458.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.01561/10.56, allocations: 4.023 MB / 3.717 GB, free: 14.05 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/10.56, allocations: 12.03 kB / 3.717 GB, free: 14.04 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008249/10.57, allocations: 0.8165 MB / 3.718 GB, free: 13.22 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007761/10.57, allocations: 2.097 MB / 3.72 GB, free: 11.08 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003487/10.57, allocations: 183.3 kB / 3.72 GB, free: 10.9 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008555/10.57, allocations: 199.9 kB / 3.721 GB, free: 10.71 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/10.59, allocations: 3.576 MB / 3.724 GB, free: 6.953 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-05/10.59, allocations: 11.94 kB / 3.724 GB, free: 6.941 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004498/10.59, allocations: 83.97 kB / 3.724 GB, free: 6.859 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003008/10.59, allocations: 167.5 kB / 3.724 GB, free: 6.695 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01181/10.6, allocations: 3.281 MB / 3.728 GB, free: 3.41 MB / 474.7 MB 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.3455/10.94, allocations: 15.02 MB / 3.742 GB, free: 20.44 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007955/10.95, allocations: 2.306 MB / 3.744 GB, free: 20.4 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04203/10.99, allocations: 18.79 MB / 3.763 GB, free: 24.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006032/11, allocations: 1.636 MB / 3.764 GB, free: 24.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.156e-06/11, allocations: 0 / 3.764 GB, free: 24.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02761/11.03, allocations: 8.179 MB / 3.772 GB, free: 23.65 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002132/11.03, allocations: 285.6 kB / 3.773 GB, free: 23.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002815/11.03, allocations: 1.413 MB / 3.774 GB, free: 23.17 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004695/11.03, allocations: 61.11 kB / 3.774 GB, free: 23.14 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009004/11.03, allocations: 0.9221 MB / 3.775 GB, free: 22.76 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008121/11.03, allocations: 0.5756 MB / 3.776 GB, free: 22.47 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/11.03, allocations: 39.69 kB / 3.776 GB, free: 22.47 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002641/11.03, allocations: 393.6 kB / 3.776 GB, free: 22.16 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/11.04, allocations: 1.149 MB / 3.777 GB, free: 22.15 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003602/11.04, allocations: 1.638 MB / 3.779 GB, free: 21.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003659/11.04, allocations: 1.381 MB / 3.78 GB, free: 21.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.827e-05/11.04, allocations: 4.641 kB / 3.78 GB, free: 21.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.0103/11.05, allocations: 3.835 MB / 3.784 GB, free: 21.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002639/11.06, allocations: 5.176 MB / 3.789 GB, free: 16.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.709e-05/11.06, allocations: 16.08 kB / 3.789 GB, free: 16.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01903/11.08, allocations: 2.92 MB / 3.792 GB, free: 15.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/11.08, allocations: 317.5 kB / 3.792 GB, free: 15.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008052/11.09, allocations: 3.505 MB / 3.795 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/11.09, allocations: 259.6 kB / 3.796 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004613/11.09, allocations: 104.1 kB / 3.796 GB, free: 15.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/11.09, allocations: 3.75 kB / 3.796 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009699/11.1, allocations: 3.537 MB / 3.799 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-05/11.1, allocations: 17.78 kB / 3.799 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008854/11.11, allocations: 1.718 MB / 3.801 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/11.11, allocations: 354.5 kB / 3.801 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005782/11.12, allocations: 2.739 MB / 3.804 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00245/11.12, allocations: 259.7 kB / 3.804 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003226/11.12, allocations: 99.61 kB / 3.804 GB, free: 14.74 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 () * 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.002097/11.12, allocations: 0.7163 MB / 3.805 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005712/11.12, allocations: 200 kB / 3.805 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01418/11.14, allocations: 7.781 MB / 3.813 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.382e-05/11.14, allocations: 89.53 kB / 3.813 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/11.14, allocations: 2.219 kB / 3.813 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01174/11.15, allocations: 6.678 MB / 3.819 GB, free: 12.92 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/11.17, allocations: 10.92 MB / 3.83 GB, free: 12.22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.498e-05/11.17, allocations: 5.5 kB / 3.83 GB, free: 12.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/11.17, allocations: 401.9 kB / 3.83 GB, free: 12.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001898/11.17, allocations: 383.4 kB / 3.831 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004333/11.17, allocations: 62.92 kB / 3.831 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/11.18, allocations: 2.569 MB / 3.833 GB, free: 26.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.236e-06/11.18, allocations: 3.953 kB / 3.833 GB, free: 26.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/11.19, allocations: 7.212 MB / 3.84 GB, free: 25.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002166/11.19, allocations: 0.752 MB / 3.841 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007009/11.19, allocations: 51.95 kB / 3.841 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/11.2, allocations: 194.8 kB / 3.841 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004137/11.2, allocations: 148.1 kB / 3.842 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002296/11.2, allocations: 66.34 kB / 3.842 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002485/11.2, allocations: 1.183 MB / 3.843 GB, free: 24.99 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.051e-06/11.2, allocations: 2.969 kB / 3.843 GB, free: 24.99 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01072/11.21, allocations: 2.748 MB / 3.845 GB, free: 24.86 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) * 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.01198/11.22, allocations: 2.811 MB / 3.848 GB, free: 24.56 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01262/11.23, allocations: 5.317 MB / 3.853 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/11.23, allocations: 2.625 kB / 3.853 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004762/11.24, allocations: 2.42 MB / 3.856 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005377/11.24, allocations: 0.8626 MB / 3.857 GB, free: 24.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5878/11.83, allocations: 128.7 MB / 3.982 GB, free: 52.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002083/11.83, allocations: 2.257 MB / 3.984 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009759/11.84, allocations: 188.6 kB / 3.985 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of SimCode: time 3.408e-06/11.84, allocations: 0 / 3.985 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of Templates: time 0.132/11.97, allocations: 97.46 MB / 4.08 GB, free: 13.38 MB / 0.4948 GB