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.SeriesPipes1.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.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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.13/2.13, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.799e-05/1.807e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2703, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.533/6.803, allocations: 2.657 GB / 3.007 GB, free: 139.7 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/6.803, allocations: 73.64 kB / 3.007 GB, free: 139.7 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.531/10.33, allocations: 0.7905 GB / 3.798 GB, free: 35.45 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.823e-06/10.33, allocations: 5.281 kB / 3.798 GB, free: 35.45 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002593/10.34, allocations: 64.86 kB / 3.798 GB, free: 35.44 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.01463/10.35, allocations: 3.847 MB / 3.801 GB, free: 33.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/10.35, allocations: 8.781 kB / 3.801 GB, free: 33.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008549/10.36, allocations: 0.846 MB / 3.802 GB, free: 33.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006997/10.37, allocations: 2.096 MB / 3.804 GB, free: 33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/10.37, allocations: 94.91 kB / 3.804 GB, free: 33 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006685/10.37, allocations: 117.2 kB / 3.804 GB, free: 33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006159/10.37, allocations: 2.528 MB / 3.807 GB, free: 32.99 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0066/10.38, allocations: 2.787 MB / 3.81 GB, free: 32.45 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.49e-05/10.38, allocations: 6.875 kB / 3.81 GB, free: 32.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003341/10.38, allocations: 6.594 kB / 3.81 GB, free: 32.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002342/10.38, allocations: 166.2 kB / 3.81 GB, free: 32.44 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.1981/10.58, allocations: 78.65 MB / 3.887 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003647/10.58, allocations: 1.646 MB / 3.888 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002085/10.58, allocations: 0.9681 MB / 3.889 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3805/10.96, allocations: 17.45 MB / 3.906 GB, free: 64.52 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0029/10.97, allocations: 1.165 MB / 3.907 GB, free: 64.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 6.752e-06/10.97, allocations: 0 / 3.907 GB, free: 64.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.03136/11, allocations: 7.964 MB / 3.915 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/11, allocations: 385.6 kB / 3.916 GB, free: 62.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/11, allocations: 1.131 MB / 3.917 GB, free: 62.34 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004169/11, allocations: 31.08 kB / 3.917 GB, free: 62.31 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008884/11, allocations: 0.9726 MB / 3.918 GB, free: 61.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007121/11, allocations: 0.5435 MB / 3.918 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/11, allocations: 0 / 3.918 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000149/11, allocations: 401.6 kB / 3.919 GB, free: 61.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/11.01, allocations: 1.013 MB / 3.919 GB, free: 61.29 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002367/11.01, allocations: 1.497 MB / 3.921 GB, free: 60.75 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01811/11.03, allocations: 3.304 MB / 3.924 GB, free: 60.74 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.752e-05/11.03, allocations: 3.562 kB / 3.924 GB, free: 60.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02297/11.05, allocations: 4.894 MB / 3.929 GB, free: 60.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001082/11.05, allocations: 5.182 MB / 3.934 GB, free: 55.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.254e-05/11.05, allocations: 20.53 kB / 3.934 GB, free: 55.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008516/11.05, allocations: 243.8 kB / 3.934 GB, free: 55.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003177/11.05, allocations: 0.5143 MB / 3.935 GB, free: 55.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/11.06, allocations: 2.524 MB / 3.937 GB, free: 53.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003394/11.06, allocations: 265.9 kB / 3.937 GB, free: 53.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005589/11.06, allocations: 101 kB / 3.938 GB, free: 53.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/11.06, allocations: 4.344 kB / 3.938 GB, free: 53.09 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01961/11.08, allocations: 4.554 MB / 3.942 GB, free: 53.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-05/11.08, allocations: 16.5 kB / 3.942 GB, free: 53.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007985/11.08, allocations: 244.7 kB / 3.942 GB, free: 52.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003101/11.08, allocations: 0.5117 MB / 3.943 GB, free: 52.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/11.09, allocations: 2.521 MB / 3.945 GB, free: 50.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/11.09, allocations: 235.1 kB / 3.945 GB, free: 50.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003935/11.09, allocations: 100.8 kB / 3.946 GB, free: 50.89 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 (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.0007266/11.09, allocations: 207.8 kB / 3.946 GB, free: 50.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005656/11.09, allocations: 181.6 kB / 3.946 GB, free: 50.66 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/11.1, allocations: 6.832 MB / 3.953 GB, free: 50.09 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.974e-05/11.1, allocations: 76.89 kB / 3.953 GB, free: 50.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/11.1, allocations: 3.5 kB / 3.953 GB, free: 50.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01021/11.11, allocations: 5.649 MB / 3.958 GB, free: 49.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/11.13, allocations: 9.236 MB / 3.967 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.84e-05/11.13, allocations: 3.156 kB / 3.967 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/11.13, allocations: 360.5 kB / 3.968 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/11.14, allocations: 341.4 kB / 3.968 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003367/11.14, allocations: 36.72 kB / 3.968 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/11.14, allocations: 2.685 MB / 3.971 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.757e-06/11.14, allocations: 3.781 kB / 3.971 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/11.15, allocations: 6.407 MB / 3.977 GB, free: 46.12 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/11.15, allocations: 0.6937 MB / 3.977 GB, free: 45.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006257/11.15, allocations: 16.98 kB / 3.978 GB, free: 45.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/11.16, allocations: 167.6 kB / 3.978 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/11.16, allocations: 141 kB / 3.978 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/11.16, allocations: 62.75 kB / 3.978 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002007/11.16, allocations: 1.026 MB / 3.979 GB, free: 45.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.379e-06/11.16, allocations: 0 / 3.979 GB, free: 45.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01076/11.17, allocations: 2.631 MB / 3.981 GB, free: 45.57 MB / 0.5261 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.0123/11.18, allocations: 2.983 MB / 3.984 GB, free: 45.27 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009403/11.19, allocations: 4.657 MB / 3.989 GB, free: 45.03 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.034e-06/11.19, allocations: 5.484 kB / 3.989 GB, free: 45.03 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004412/11.2, allocations: 2.16 MB / 3.991 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005146/11.2, allocations: 0.7762 MB / 3.992 GB, free: 44.94 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/11.21, allocations: 5.707 MB / 3.997 GB, free: 43.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002233/11.22, allocations: 2.171 MB / 3.999 GB, free: 43.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/11.22, allocations: 199.5 kB / 4 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of SimCode: time 2.473e-06/11.22, allocations: 0 / 4 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of Templates: time 0.4947/11.71, allocations: 113.3 MB / 4.11 GB, free: 81.68 MB / 0.5417 GB