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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.206/2.206, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.052e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.285, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.424/6.709, allocations: 2.657 GB / 3.007 GB, free: 140.2 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/6.709, allocations: 77.73 kB / 3.007 GB, free: 140.2 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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.898/10.61, allocations: 0.8532 GB / 3.86 GB, free: 24.54 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.466e-06/10.61, allocations: 4 kB / 3.86 GB, free: 24.54 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002642/10.61, allocations: 67.08 kB / 3.86 GB, free: 24.48 MB / 0.4948 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.01425/10.62, allocations: 3.852 MB / 3.864 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/10.62, allocations: 8.031 kB / 3.864 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008/10.63, allocations: 0.8399 MB / 3.865 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008441/10.64, allocations: 2.095 MB / 3.867 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004311/10.64, allocations: 91.98 kB / 3.867 GB, free: 17.53 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/10.64, allocations: 120 kB / 3.867 GB, free: 17.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009949/10.65, allocations: 2.53 MB / 3.87 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/10.66, allocations: 2.79 MB / 3.873 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/10.66, allocations: 3.938 kB / 3.873 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000541/10.66, allocations: 11.95 kB / 3.873 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003973/10.66, allocations: 163.5 kB / 3.873 GB, free: 11.71 MB / 0.4948 GB 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.5517/11.21, allocations: 78.63 MB / 3.949 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00364/11.22, allocations: 1.637 MB / 3.951 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002007/11.22, allocations: 0.9742 MB / 3.952 GB, free: 14.97 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04035/11.26, allocations: 17.46 MB / 3.969 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002368/11.26, allocations: 1.158 MB / 3.97 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 5.638e-06/11.26, allocations: 0 / 3.97 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.0292/11.29, allocations: 7.966 MB / 3.978 GB, free: 17.89 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002442/11.29, allocations: 390.2 kB / 3.978 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/11.29, allocations: 1.128 MB / 3.979 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003855/11.29, allocations: 25.7 kB / 3.979 GB, free: 17.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008379/11.3, allocations: 0.9734 MB / 3.98 GB, free: 16.84 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007004/11.3, allocations: 0.5426 MB / 3.981 GB, free: 16.56 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/11.3, allocations: 0 / 3.981 GB, free: 16.56 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002474/11.3, allocations: 394.6 kB / 3.981 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/11.3, allocations: 1.014 MB / 3.982 GB, free: 16.24 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/11.3, allocations: 1.504 MB / 3.984 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01849/11.32, allocations: 3.306 MB / 3.987 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.682e-05/11.32, allocations: 3.219 kB / 3.987 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02277/11.34, allocations: 5.438 MB / 3.992 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002434/11.35, allocations: 5.175 MB / 3.997 GB, free: 9.996 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.905e-05/11.35, allocations: 16.81 kB / 3.997 GB, free: 9.996 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/11.36, allocations: 2.027 MB / 3.999 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/11.36, allocations: 320.5 kB / 4 GB, free: 9.941 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008091/11.37, allocations: 3.659 MB / 4.003 GB, free: 9.359 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/11.37, allocations: 260.7 kB / 4.004 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003229/11.37, allocations: 99.98 kB / 4.004 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/11.37, allocations: 9.938 kB / 4.004 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02129/11.39, allocations: 4.939 MB / 4.008 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-05/11.39, allocations: 17.16 kB / 4.008 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007241/11.4, allocations: 1.499 MB / 4.01 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/11.4, allocations: 357.9 kB / 4.01 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/11.4, allocations: 2.666 MB / 4.013 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002596/11.41, allocations: 234.3 kB / 4.013 GB, free: 8.586 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/11.41, allocations: 101.9 kB / 4.013 GB, free: 8.586 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,pipe1.statesFM[2].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,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.0006821/11.41, allocations: 195.6 kB / 4.013 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005292/11.41, allocations: 189.5 kB / 4.014 GB, free: 8.352 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/11.42, allocations: 6.833 MB / 4.02 GB, free: 7.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.25e-05/11.42, allocations: 78.59 kB / 4.02 GB, free: 7.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/11.42, allocations: 0 / 4.02 GB, free: 7.77 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009862/11.43, allocations: 5.652 MB / 4.026 GB, free: 7.074 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01711/11.45, allocations: 9.251 MB / 4.035 GB, free: 6.543 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/11.45, allocations: 0 / 4.035 GB, free: 6.543 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/11.45, allocations: 358.7 kB / 4.035 GB, free: 6.539 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/11.45, allocations: 334.9 kB / 4.036 GB, free: 6.496 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002321/11.45, allocations: 45.61 kB / 4.036 GB, free: 6.492 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/11.45, allocations: 2.682 MB / 4.038 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.133e-06/11.45, allocations: 3.75 kB / 4.038 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/11.47, allocations: 6.399 MB / 4.044 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/11.47, allocations: 0.6969 MB / 4.045 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005366/11.47, allocations: 19.59 kB / 4.045 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/11.47, allocations: 158.6 kB / 4.045 GB, free: 19.48 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000327/11.47, allocations: 137.1 kB / 4.045 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001928/11.47, allocations: 67.61 kB / 4.045 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001779/11.47, allocations: 1.024 MB / 4.046 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.227e-06/11.47, allocations: 6.344 kB / 4.046 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01049/11.48, allocations: 2.633 MB / 4.049 GB, free: 19.23 MB / 0.5417 GB 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: 44 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.01241/11.5, allocations: 2.985 MB / 4.052 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009871/11.51, allocations: 4.724 MB / 4.057 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.823e-06/11.51, allocations: 0 / 4.057 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00419/11.51, allocations: 2.167 MB / 4.059 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005321/11.51, allocations: 0.773 MB / 4.059 GB, free: 18.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/11.53, allocations: 5.703 MB / 4.065 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/11.53, allocations: 2.171 MB / 4.067 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009041/11.53, allocations: 174.3 kB / 4.067 GB, free: 13 MB / 0.5417 GB Notification: Performance of SimCode: time 1.676e-06/11.53, allocations: 2.531 kB / 4.067 GB, free: 13 MB / 0.5417 GB Notification: Performance of Templates: time 0.5075/12.04, allocations: 94.48 MB / 4.16 GB, free: 83.08 MB / 0.5573 GB