Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.972/1.972, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004357, allocations: 12 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3363, allocations: 48.7 MB / 331.8 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.614/7.951, allocations: 2.548 GB / 2.872 GB, free: 91.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/7.951, allocations: 86.02 kB / 2.872 GB, free: 91.96 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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 5.044/12.99, allocations: 0.8422 GB / 3.714 GB, free: 27.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.405e-06/12.99, allocations: 1.562 kB / 3.714 GB, free: 27.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004042/13, allocations: 64.23 kB / 3.714 GB, free: 27.84 MB / 474.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.0208/13.02, allocations: 4.017 MB / 3.718 GB, free: 26.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/13.02, allocations: 9.531 kB / 3.718 GB, free: 26.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009101/13.03, allocations: 0.8165 MB / 3.719 GB, free: 26.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009227/13.03, allocations: 2.106 MB / 3.721 GB, free: 25.58 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003833/13.04, allocations: 177.6 kB / 3.721 GB, free: 25.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/13.04, allocations: 205.7 kB / 3.721 GB, free: 25.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/13.05, allocations: 3.589 MB / 3.725 GB, free: 25.05 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-05/13.05, allocations: 11.39 kB / 3.725 GB, free: 25.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000474/13.05, allocations: 85.28 kB / 3.725 GB, free: 25.04 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003082/13.05, allocations: 167.2 kB / 3.725 GB, free: 25.04 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/13.06, allocations: 3.286 MB / 3.728 GB, free: 25.02 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.03268/13.1, allocations: 15.03 MB / 3.743 GB, free: 16.03 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00928/13.11, allocations: 2.31 MB / 3.745 GB, free: 16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06038/13.17, allocations: 18.78 MB / 3.763 GB, free: 20.26 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006898/13.17, allocations: 1.631 MB / 3.765 GB, free: 20.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 7.224e-06/13.17, allocations: 0.75 kB / 3.765 GB, free: 20.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.03365/13.21, allocations: 8.175 MB / 3.773 GB, free: 19.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001763/13.21, allocations: 281.8 kB / 3.773 GB, free: 18.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003274/13.21, allocations: 1.603 MB / 3.775 GB, free: 18.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006247/13.21, allocations: 60.98 kB / 3.775 GB, free: 18.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009522/13.21, allocations: 0.9287 MB / 3.776 GB, free: 18.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009212/13.21, allocations: 0.5811 MB / 3.776 GB, free: 17.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/13.21, allocations: 37.81 kB / 3.776 GB, free: 17.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002357/13.21, allocations: 395.7 kB / 3.777 GB, free: 17.45 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003532/13.22, allocations: 1.146 MB / 3.778 GB, free: 17.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004172/13.22, allocations: 1.654 MB / 3.779 GB, free: 16.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004329/13.23, allocations: 1.372 MB / 3.781 GB, free: 16.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/13.23, allocations: 3.25 kB / 3.781 GB, free: 16.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01253/13.24, allocations: 3.836 MB / 3.785 GB, free: 16.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004487/13.24, allocations: 0.5072 MB / 3.785 GB, free: 16.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.275e-05/13.24, allocations: 16.19 kB / 3.785 GB, free: 16.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02469/13.26, allocations: 2.921 MB / 3.788 GB, free: 16.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002254/13.27, allocations: 314 kB / 3.788 GB, free: 16.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009245/13.28, allocations: 3.504 MB / 3.792 GB, free: 15.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003859/13.28, allocations: 264.4 kB / 3.792 GB, free: 15.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003759/13.28, allocations: 104.4 kB / 3.792 GB, free: 15.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/13.28, allocations: 3.844 kB / 3.792 GB, free: 15.49 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01098/13.29, allocations: 3.533 MB / 3.795 GB, free: 15.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-05/13.29, allocations: 16.62 kB / 3.795 GB, free: 15.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01146/13.3, allocations: 1.718 MB / 3.797 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/13.3, allocations: 363.5 kB / 3.797 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00679/13.31, allocations: 2.742 MB / 3.8 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/13.31, allocations: 255.9 kB / 3.8 GB, free: 14.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000314/13.32, allocations: 103.8 kB / 3.8 GB, free: 14.82 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.002162/13.32, allocations: 0.7258 MB / 3.801 GB, free: 14.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/13.32, allocations: 202.3 kB / 3.801 GB, free: 14.47 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01686/13.33, allocations: 7.764 MB / 3.809 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/13.34, allocations: 92.48 kB / 3.809 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/13.34, allocations: 0 / 3.809 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01374/13.35, allocations: 6.679 MB / 3.816 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02346/13.37, allocations: 10.91 MB / 3.826 GB, free: 12.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/13.37, allocations: 3.844 kB / 3.826 GB, free: 12.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003331/13.38, allocations: 396.2 kB / 3.827 GB, free: 12.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/13.38, allocations: 380.3 kB / 3.827 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005311/13.38, allocations: 64.77 kB / 3.827 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/13.38, allocations: 2.568 MB / 3.83 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/13.38, allocations: 6.484 kB / 3.83 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/13.4, allocations: 7.222 MB / 3.837 GB, free: 9.348 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002418/13.4, allocations: 0.7437 MB / 3.837 GB, free: 8.887 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000981/13.4, allocations: 56.7 kB / 3.837 GB, free: 8.852 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003381/13.4, allocations: 203.3 kB / 3.838 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006396/13.41, allocations: 144.4 kB / 3.838 GB, free: 8.797 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002549/13.41, allocations: 65.98 kB / 3.838 GB, free: 8.785 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002671/13.41, allocations: 1.185 MB / 3.839 GB, free: 8.328 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.41e-07/13.41, allocations: 4.281 kB / 3.839 GB, free: 8.328 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01312/13.42, allocations: 2.751 MB / 3.842 GB, free: 7.742 MB / 490.7 MB 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.01562/13.44, allocations: 2.799 MB / 3.844 GB, free: 7.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01614/13.45, allocations: 5.327 MB / 3.85 GB, free: 5.219 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/13.45, allocations: 2.688 kB / 3.85 GB, free: 5.219 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0059/13.46, allocations: 2.419 MB / 3.852 GB, free: 4.199 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008227/13.47, allocations: 0.8651 MB / 3.853 GB, free: 4.02 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8077/14.28, allocations: 129.9 MB / 3.98 GB, free: 46.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003007/14.28, allocations: 2.254 MB / 3.982 GB, free: 45.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/14.28, allocations: 180.7 kB / 3.982 GB, free: 45.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.433e-06/14.28, allocations: 0 / 3.982 GB, free: 45.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.5561/14.84, allocations: 97.46 MB / 4.077 GB, free: 66.89 MB / 0.5105 GB