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.SeriesPipes12.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.932/1.932, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.803e-05/1.808e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2777, allocations: 48.69 MB / 320 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.952/6.229, allocations: 2.547 GB / 2.859 GB, free: 19.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/6.23, allocations: 80.98 kB / 2.859 GB, free: 19.75 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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.655/9.885, allocations: 0.7727 GB / 3.632 GB, free: 30.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.338e-06/9.885, allocations: 0 / 3.632 GB, free: 30.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002392/9.885, allocations: 65.38 kB / 3.632 GB, free: 30.11 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.01337/9.898, allocations: 3.736 MB / 3.636 GB, free: 28.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/9.899, allocations: 9.906 kB / 3.636 GB, free: 28.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007719/9.906, allocations: 0.8107 MB / 3.637 GB, free: 28.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006688/9.913, allocations: 2.09 MB / 3.639 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002059/9.913, allocations: 93.44 kB / 3.639 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000668/9.914, allocations: 117 kB / 3.639 GB, free: 27.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006125/9.92, allocations: 2.525 MB / 3.641 GB, free: 27.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006666/9.927, allocations: 2.785 MB / 3.644 GB, free: 27.17 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.366e-05/9.927, allocations: 15.88 kB / 3.644 GB, free: 27.17 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003264/9.927, allocations: 7 kB / 3.644 GB, free: 27.17 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002401/9.927, allocations: 168.3 kB / 3.644 GB, free: 27.16 MB / 458.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.1971/10.12, allocations: 78.56 MB / 3.721 GB, free: 6.535 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003608/10.13, allocations: 1.628 MB / 3.723 GB, free: 5.68 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/10.13, allocations: 0.97 MB / 3.723 GB, free: 5.168 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3538/10.48, allocations: 17.49 MB / 3.741 GB, free: 55.28 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002321/10.49, allocations: 1.149 MB / 3.742 GB, free: 55.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=145): time 5.618e-06/10.49, allocations: 3.781 kB / 3.742 GB, free: 55.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=161): time 0.02994/10.52, allocations: 7.98 MB / 3.749 GB, free: 53.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.907e-05/10.52, allocations: 387.9 kB / 3.75 GB, free: 53.28 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/10.52, allocations: 1.121 MB / 3.751 GB, free: 53.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004368/10.52, allocations: 28.8 kB / 3.751 GB, free: 53.08 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008905/10.52, allocations: 0.9771 MB / 3.752 GB, free: 52.66 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000735/10.52, allocations: 0.538 MB / 3.752 GB, free: 52.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/10.52, allocations: 3.562 kB / 3.752 GB, free: 52.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/10.52, allocations: 395 kB / 3.753 GB, free: 52.07 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/10.52, allocations: 1.009 MB / 3.754 GB, free: 52.06 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002586/10.53, allocations: 1.494 MB / 3.755 GB, free: 51.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01698/10.54, allocations: 3.311 MB / 3.758 GB, free: 51.51 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.802e-05/10.54, allocations: 3.688 kB / 3.758 GB, free: 51.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02377/10.57, allocations: 5.454 MB / 3.764 GB, free: 51.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001095/10.57, allocations: 5.171 MB / 3.769 GB, free: 46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-05/10.57, allocations: 19.34 kB / 3.769 GB, free: 46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01004/10.58, allocations: 2.03 MB / 3.771 GB, free: 45.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/10.58, allocations: 318.1 kB / 3.771 GB, free: 45.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008519/10.59, allocations: 3.656 MB / 3.775 GB, free: 45.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003341/10.59, allocations: 260 kB / 3.775 GB, free: 45.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000538/10.59, allocations: 102.7 kB / 3.775 GB, free: 45.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/10.59, allocations: 7.453 kB / 3.775 GB, free: 45.39 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0211/10.61, allocations: 4.959 MB / 3.78 GB, free: 45.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.096e-05/10.61, allocations: 17.97 kB / 3.78 GB, free: 45.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006636/10.62, allocations: 1.501 MB / 3.781 GB, free: 45.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/10.62, allocations: 355 kB / 3.782 GB, free: 45.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004902/10.63, allocations: 2.667 MB / 3.784 GB, free: 44.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/10.63, allocations: 232.8 kB / 3.785 GB, free: 44.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000372/10.63, allocations: 97.64 kB / 3.785 GB, free: 44.75 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,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.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.0006559/10.63, allocations: 195.3 kB / 3.785 GB, free: 44.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000541/10.63, allocations: 188.1 kB / 3.785 GB, free: 44.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/10.64, allocations: 6.832 MB / 3.792 GB, free: 43.94 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.871e-05/10.64, allocations: 81.08 kB / 3.792 GB, free: 43.94 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/10.64, allocations: 0 / 3.792 GB, free: 43.94 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01025/10.66, allocations: 5.661 MB / 3.797 GB, free: 43.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/10.67, allocations: 9.245 MB / 3.806 GB, free: 42.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/10.67, allocations: 6.719 kB / 3.806 GB, free: 42.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/10.68, allocations: 356.4 kB / 3.807 GB, free: 42.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/10.68, allocations: 346.1 kB / 3.807 GB, free: 42.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003717/10.68, allocations: 33.44 kB / 3.807 GB, free: 42.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/10.68, allocations: 2.685 MB / 3.81 GB, free: 40.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.786e-06/10.68, allocations: 2.812 kB / 3.81 GB, free: 40.55 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/10.69, allocations: 6.402 MB / 3.816 GB, free: 39.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/10.69, allocations: 0.6961 MB / 3.817 GB, free: 39.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006042/10.69, allocations: 21.72 kB / 3.817 GB, free: 39.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002276/10.7, allocations: 159.2 kB / 3.817 GB, free: 39.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004175/10.7, allocations: 137.2 kB / 3.817 GB, free: 39.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002098/10.7, allocations: 69.97 kB / 3.817 GB, free: 39.64 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002038/10.7, allocations: 1.029 MB / 3.818 GB, free: 39.53 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.012e-06/10.7, allocations: 0 / 3.818 GB, free: 39.53 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01082/10.71, allocations: 2.608 MB / 3.821 GB, free: 39.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].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 (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.01254/10.72, allocations: 2.972 MB / 3.823 GB, free: 39.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009622/10.73, allocations: 4.665 MB / 3.828 GB, free: 38.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.891e-06/10.73, allocations: 6.906 kB / 3.828 GB, free: 38.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004066/10.74, allocations: 2.123 MB / 3.83 GB, free: 38.77 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005248/10.74, allocations: 0.7684 MB / 3.831 GB, free: 38.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/10.75, allocations: 5.7 MB / 3.836 GB, free: 37.63 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/10.76, allocations: 2.166 MB / 3.839 GB, free: 36.89 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009954/10.76, allocations: 181.6 kB / 3.839 GB, free: 36.88 MB / 490.7 MB Notification: Performance of SimCode: time 2.06e-06/10.76, allocations: 3.656 kB / 3.839 GB, free: 36.88 MB / 490.7 MB Notification: Performance of Templates: time 0.4526/11.21, allocations: 94.1 MB / 3.931 GB, free: 60.71 MB / 490.7 MB