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.SeriesPipes1.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.SeriesPipes1,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.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.002/2.002, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.315e-05/1.337e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3726, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.87/6.242, allocations: 2.547 GB / 2.859 GB, free: 20.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/6.243, allocations: 75.95 kB / 2.859 GB, free: 20.54 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.677/9.92, allocations: 0.7714 GB / 3.631 GB, free: 30.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.787e-06/9.92, allocations: 0 / 3.631 GB, free: 30.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002289/9.92, allocations: 65.38 kB / 3.631 GB, free: 30.61 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.0135/9.933, allocations: 3.735 MB / 3.634 GB, free: 28.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/9.933, allocations: 10.5 kB / 3.634 GB, free: 28.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007769/9.941, allocations: 0.8125 MB / 3.635 GB, free: 28.67 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007522/9.949, allocations: 2.086 MB / 3.637 GB, free: 28.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/9.949, allocations: 92.39 kB / 3.637 GB, free: 28.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007858/9.95, allocations: 117.6 kB / 3.638 GB, free: 28.21 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006358/9.956, allocations: 2.527 MB / 3.64 GB, free: 28.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007276/9.964, allocations: 2.782 MB / 3.643 GB, free: 27.68 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.822e-05/9.964, allocations: 10.5 kB / 3.643 GB, free: 27.68 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/9.964, allocations: 3.094 kB / 3.643 GB, free: 27.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002422/9.964, allocations: 161.7 kB / 3.643 GB, free: 27.68 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.1996/10.16, allocations: 78.61 MB / 3.72 GB, free: 8.184 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003693/10.17, allocations: 1.619 MB / 3.721 GB, free: 7.332 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/10.17, allocations: 0.9689 MB / 3.722 GB, free: 6.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3482/10.52, allocations: 17.49 MB / 3.739 GB, free: 56.15 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002407/10.52, allocations: 1.157 MB / 3.74 GB, free: 56.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=145): time 5.996e-06/10.52, allocations: 2.281 kB / 3.74 GB, free: 56.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=161): time 0.03054/10.55, allocations: 7.972 MB / 3.748 GB, free: 54.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.896e-05/10.55, allocations: 387.9 kB / 3.749 GB, free: 54.15 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00232/10.55, allocations: 1.125 MB / 3.75 GB, free: 53.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003968/10.55, allocations: 28.14 kB / 3.75 GB, free: 53.95 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008922/10.55, allocations: 0.9754 MB / 3.751 GB, free: 53.53 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007769/10.56, allocations: 0.5352 MB / 3.751 GB, free: 53.26 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002061/10.56, allocations: 0 / 3.751 GB, free: 53.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/10.56, allocations: 392.7 kB / 3.751 GB, free: 52.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/10.56, allocations: 1.013 MB / 3.752 GB, free: 52.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002378/10.56, allocations: 1.497 MB / 3.754 GB, free: 52.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01787/10.58, allocations: 3.308 MB / 3.757 GB, free: 52.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.659e-05/10.58, allocations: 5.562 kB / 3.757 GB, free: 52.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02248/10.6, allocations: 4.912 MB / 3.762 GB, free: 52.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001084/10.6, allocations: 5.176 MB / 3.767 GB, free: 46.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.475e-05/10.6, allocations: 14 kB / 3.767 GB, free: 46.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008417/10.6, allocations: 244.1 kB / 3.767 GB, free: 46.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/10.61, allocations: 0.5183 MB / 3.768 GB, free: 46.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/10.61, allocations: 2.519 MB / 3.77 GB, free: 44.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003478/10.61, allocations: 256.7 kB / 3.77 GB, free: 44.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000566/10.61, allocations: 101.3 kB / 3.771 GB, free: 44.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/10.61, allocations: 8.141 kB / 3.771 GB, free: 44.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02128/10.63, allocations: 4.574 MB / 3.775 GB, free: 44.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.792e-05/10.63, allocations: 16.34 kB / 3.775 GB, free: 44.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007164/10.63, allocations: 238.7 kB / 3.775 GB, free: 44.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/10.64, allocations: 0.5117 MB / 3.776 GB, free: 44.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001746/10.64, allocations: 2.526 MB / 3.778 GB, free: 42.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002621/10.64, allocations: 231.3 kB / 3.778 GB, free: 42.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/10.64, allocations: 104.3 kB / 3.779 GB, free: 42.53 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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.000661/10.64, allocations: 198.5 kB / 3.779 GB, free: 42.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005271/10.64, allocations: 188.2 kB / 3.779 GB, free: 42.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/10.66, allocations: 6.838 MB / 3.786 GB, free: 41.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.924e-05/10.66, allocations: 81.2 kB / 3.786 GB, free: 41.72 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/10.66, allocations: 0 / 3.786 GB, free: 41.72 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01094/10.67, allocations: 5.656 MB / 3.791 GB, free: 41.03 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01843/10.69, allocations: 9.257 MB / 3.8 GB, free: 40.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/10.69, allocations: 0 / 3.8 GB, free: 40.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/10.69, allocations: 359.9 kB / 3.801 GB, free: 40.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/10.69, allocations: 335.5 kB / 3.801 GB, free: 40.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004102/10.69, allocations: 41.09 kB / 3.801 GB, free: 40.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/10.69, allocations: 2.681 MB / 3.804 GB, free: 38.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.064e-05/10.69, allocations: 4.781 kB / 3.804 GB, free: 38.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01326/10.71, allocations: 6.401 MB / 3.81 GB, free: 37.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/10.71, allocations: 0.6948 MB / 3.811 GB, free: 37.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007512/10.71, allocations: 20.84 kB / 3.811 GB, free: 37.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002571/10.71, allocations: 158.9 kB / 3.811 GB, free: 37.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005328/10.71, allocations: 137.8 kB / 3.811 GB, free: 37.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002536/10.71, allocations: 69.14 kB / 3.811 GB, free: 37.43 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002304/10.71, allocations: 1.025 MB / 3.812 GB, free: 37.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.023e-06/10.71, allocations: 2.344 kB / 3.812 GB, free: 37.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0114/10.73, allocations: 2.609 MB / 3.814 GB, free: 37.19 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.01283/10.74, allocations: 2.976 MB / 3.817 GB, free: 36.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01014/10.75, allocations: 4.651 MB / 3.822 GB, free: 36.66 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/10.75, allocations: 2.406 kB / 3.822 GB, free: 36.66 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004173/10.75, allocations: 2.127 MB / 3.824 GB, free: 36.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005207/10.76, allocations: 0.779 MB / 3.825 GB, free: 36.56 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/10.77, allocations: 5.695 MB / 3.83 GB, free: 35.46 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/10.77, allocations: 2.17 MB / 3.832 GB, free: 34.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/10.77, allocations: 201.3 kB / 3.833 GB, free: 34.7 MB / 490.7 MB Notification: Performance of SimCode: time 2.182e-06/10.77, allocations: 3.969 kB / 3.833 GB, free: 34.7 MB / 490.7 MB Notification: Performance of Templates: time 0.4973/11.27, allocations: 112.9 MB / 3.943 GB, free: 60.41 MB / 490.7 MB