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.SeriesPipes13.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.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.424/2.424, allocations: 234.9 MB / 251.1 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006893/0.0006896, allocations: 12 kB / 314.9 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4089/0.4096, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.003/8.412, allocations: 2.658 GB / 3.019 GB, free: 33.42 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/8.413, allocations: 87.45 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 5.052/13.46, allocations: 0.8626 GB / 3.882 GB, free: 38.35 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.865e-06/13.46, allocations: 0 / 3.882 GB, free: 38.35 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003444/13.46, allocations: 68.42 kB / 3.882 GB, free: 38.34 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.0193/13.48, allocations: 4.133 MB / 3.886 GB, free: 36.32 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/13.48, allocations: 6.719 kB / 3.886 GB, free: 36.32 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008786/13.49, allocations: 0.8545 MB / 3.887 GB, free: 36.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009075/13.5, allocations: 2.099 MB / 3.889 GB, free: 35.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/13.5, allocations: 181.4 kB / 3.889 GB, free: 35.72 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001055/13.5, allocations: 203 kB / 3.889 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/13.52, allocations: 3.595 MB / 3.893 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-05/13.52, allocations: 8.219 kB / 3.893 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004512/13.52, allocations: 87.38 kB / 3.893 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003012/13.52, allocations: 169.2 kB / 3.893 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0128/13.53, allocations: 3.287 MB / 3.896 GB, free: 35.14 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.03099/13.56, allocations: 15.04 MB / 3.911 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008969/13.57, allocations: 2.307 MB / 3.913 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05709/13.63, allocations: 18.82 MB / 3.932 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006749/13.63, allocations: 1.648 MB / 3.933 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.661e-06/13.63, allocations: 0 / 3.933 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.03187/13.67, allocations: 8.18 MB / 3.941 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002181/13.67, allocations: 282.6 kB / 3.942 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003178/13.67, allocations: 1.6 MB / 3.943 GB, free: 28.69 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005662/13.67, allocations: 62.28 kB / 3.943 GB, free: 28.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009208/13.67, allocations: 0.9231 MB / 3.944 GB, free: 28.19 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008621/13.67, allocations: 0.58 MB / 3.945 GB, free: 27.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/13.67, allocations: 42.28 kB / 3.945 GB, free: 27.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002643/13.67, allocations: 394.5 kB / 3.945 GB, free: 27.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/13.68, allocations: 1.147 MB / 3.946 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004124/13.68, allocations: 1.653 MB / 3.948 GB, free: 26.92 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/13.68, allocations: 1.385 MB / 3.949 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/13.68, allocations: 6.719 kB / 3.949 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01219/13.7, allocations: 3.829 MB / 3.953 GB, free: 26.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003684/13.7, allocations: 0.5076 MB / 3.953 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.202e-05/13.7, allocations: 15.94 kB / 3.953 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02466/13.72, allocations: 2.929 MB / 3.956 GB, free: 25.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/13.72, allocations: 315.2 kB / 3.957 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009863/13.73, allocations: 3.493 MB / 3.96 GB, free: 25.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004014/13.74, allocations: 261 kB / 3.96 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006343/13.74, allocations: 106.8 kB / 3.96 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/13.74, allocations: 9.219 kB / 3.96 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01204/13.75, allocations: 3.53 MB / 3.964 GB, free: 25.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.73e-05/13.75, allocations: 17.31 kB / 3.964 GB, free: 25.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01166/13.76, allocations: 1.717 MB / 3.965 GB, free: 25.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002601/13.77, allocations: 361.1 kB / 3.966 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007414/13.77, allocations: 2.738 MB / 3.968 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003112/13.78, allocations: 258.9 kB / 3.969 GB, free: 24.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004065/13.78, allocations: 104.3 kB / 3.969 GB, free: 24.57 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.002246/13.78, allocations: 0.7237 MB / 3.97 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006443/13.78, allocations: 200.8 kB / 3.97 GB, free: 24.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01663/13.8, allocations: 7.769 MB / 3.977 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.883e-05/13.8, allocations: 87.59 kB / 3.977 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/13.8, allocations: 7.938 kB / 3.977 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01388/13.81, allocations: 6.669 MB / 3.984 GB, free: 20.58 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02373/13.83, allocations: 10.92 MB / 3.995 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/13.83, allocations: 3.812 kB / 3.995 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003274/13.84, allocations: 407.6 kB / 3.995 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002457/13.84, allocations: 379.9 kB / 3.995 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005498/13.84, allocations: 61.47 kB / 3.995 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/13.84, allocations: 2.571 MB / 3.998 GB, free: 9.898 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/13.84, allocations: 3.953 kB / 3.998 GB, free: 9.895 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/13.86, allocations: 7.221 MB / 4.005 GB, free: 3.355 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002591/13.86, allocations: 0.7566 MB / 4.006 GB, free: 2.676 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/13.86, allocations: 54.86 kB / 4.006 GB, free: 2.625 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003325/13.87, allocations: 196.9 kB / 4.006 GB, free: 2.477 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006551/13.87, allocations: 144 kB / 4.006 GB, free: 2.391 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002887/13.87, allocations: 66.84 kB / 4.006 GB, free: 2.332 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003077/13.87, allocations: 1.188 MB / 4.007 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.122e-06/13.87, allocations: 0 / 4.007 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01386/13.89, allocations: 2.77 MB / 4.01 GB, free: 14.63 MB / 0.5417 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.01622/13.9, allocations: 2.837 MB / 4.013 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01946/13.92, allocations: 5.38 MB / 4.018 GB, free: 7.707 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.742e-05/13.92, allocations: 7.656 kB / 4.018 GB, free: 7.703 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009154/13.93, allocations: 2.447 MB / 4.02 GB, free: 5.496 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0103/13.94, allocations: 0.8557 MB / 4.021 GB, free: 4.863 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8285/14.77, allocations: 130.9 MB / 4.149 GB, free: 51.71 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/14.77, allocations: 2.259 MB / 4.151 GB, free: 50.93 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001327/14.77, allocations: 183.1 kB / 4.151 GB, free: 50.93 MB / 0.5417 GB Notification: Performance of SimCode: time 2.705e-06/14.77, allocations: 0 / 4.151 GB, free: 50.93 MB / 0.5417 GB Notification: Performance of Templates: time 0.6154/15.39, allocations: 97.81 MB / 4.247 GB, free: 75.52 MB / 0.5573 GB