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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 1.919/1.919, allocations: 209.3 MB / 224.9 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.0004368, allocations: 16 kB / 282.6 MB, free: 9.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2813, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.371/6.653, allocations: 2.547 GB / 2.871 GB, free: 103.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/6.653, allocations: 87.91 kB / 2.871 GB, free: 103.1 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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 3.483/10.14, allocations: 0.7799 GB / 3.651 GB, free: 26.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.466e-06/10.14, allocations: 0 / 3.651 GB, free: 26.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002867/10.14, allocations: 67.62 kB / 3.651 GB, free: 26.73 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.0158/10.15, allocations: 4.017 MB / 3.655 GB, free: 24.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/10.15, allocations: 6.969 kB / 3.655 GB, free: 24.74 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008086/10.16, allocations: 0.8206 MB / 3.656 GB, free: 24.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007396/10.17, allocations: 2.1 MB / 3.658 GB, free: 24.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/10.17, allocations: 176.7 kB / 3.658 GB, free: 24.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008509/10.17, allocations: 205 kB / 3.658 GB, free: 24.09 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/10.18, allocations: 3.579 MB / 3.662 GB, free: 23.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.966e-05/10.18, allocations: 3.656 kB / 3.662 GB, free: 23.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004131/10.18, allocations: 93.16 kB / 3.662 GB, free: 23.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002408/10.18, allocations: 160.5 kB / 3.662 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0115/10.19, allocations: 3.291 MB / 3.665 GB, free: 22.02 MB / 458.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.02428/10.22, allocations: 15.04 MB / 3.68 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00776/10.22, allocations: 2.314 MB / 3.682 GB, free: 9.957 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04087/10.27, allocations: 18.78 MB / 3.7 GB, free: 8.234 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006243/10.27, allocations: 1.632 MB / 3.702 GB, free: 7.004 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 6.252e-06/10.27, allocations: 0 / 3.702 GB, free: 7.004 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.3559/10.63, allocations: 8.866 MB / 3.711 GB, free: 42.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/10.63, allocations: 278.9 kB / 3.711 GB, free: 42.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/10.63, allocations: 1.415 MB / 3.712 GB, free: 42.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000447/10.63, allocations: 57.8 kB / 3.712 GB, free: 42.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008317/10.63, allocations: 0.9211 MB / 3.713 GB, free: 41.83 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007657/10.63, allocations: 0.5823 MB / 3.714 GB, free: 41.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/10.63, allocations: 43.53 kB / 3.714 GB, free: 41.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/10.63, allocations: 395 kB / 3.714 GB, free: 41.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003375/10.64, allocations: 1.141 MB / 3.715 GB, free: 41.22 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/10.64, allocations: 1.643 MB / 3.717 GB, free: 40.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/10.64, allocations: 1.376 MB / 3.718 GB, free: 40.62 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.784e-05/10.64, allocations: 2.906 kB / 3.718 GB, free: 40.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.009843/10.65, allocations: 3.221 MB / 3.722 GB, free: 40.44 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001096/10.66, allocations: 5.176 MB / 3.727 GB, free: 35.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.94e-05/10.66, allocations: 19.88 kB / 3.727 GB, free: 35.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/10.66, allocations: 278.2 kB / 3.727 GB, free: 35.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/10.66, allocations: 0.5152 MB / 3.727 GB, free: 35.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/10.66, allocations: 2.498 MB / 3.73 GB, free: 32.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003216/10.67, allocations: 262.4 kB / 3.73 GB, free: 32.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005122/10.67, allocations: 102.3 kB / 3.73 GB, free: 32.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/10.67, allocations: 7.906 kB / 3.73 GB, free: 32.95 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008628/10.67, allocations: 3.075 MB / 3.733 GB, free: 32.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.759e-05/10.67, allocations: 14.53 kB / 3.733 GB, free: 32.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/10.68, allocations: 275.1 kB / 3.733 GB, free: 32.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003133/10.68, allocations: 0.5088 MB / 3.734 GB, free: 32.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/10.68, allocations: 2.499 MB / 3.736 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/10.68, allocations: 257.7 kB / 3.737 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003407/10.68, allocations: 103.2 kB / 3.737 GB, free: 30.73 MB / 474.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 (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.002025/10.69, allocations: 0.7308 MB / 3.737 GB, free: 30.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005966/10.69, allocations: 201.8 kB / 3.738 GB, free: 30.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/10.7, allocations: 7.77 MB / 3.745 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.418e-05/10.7, allocations: 94.81 kB / 3.745 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/10.7, allocations: 3.953 kB / 3.745 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01176/10.71, allocations: 6.674 MB / 3.752 GB, free: 28.91 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02039/10.73, allocations: 10.91 MB / 3.762 GB, free: 28.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/10.73, allocations: 3.094 kB / 3.762 GB, free: 28.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/10.74, allocations: 398.6 kB / 3.763 GB, free: 28.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002121/10.74, allocations: 381.3 kB / 3.763 GB, free: 28.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004815/10.74, allocations: 66.5 kB / 3.763 GB, free: 28.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/10.74, allocations: 2.575 MB / 3.766 GB, free: 26.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.123e-06/10.74, allocations: 2.344 kB / 3.766 GB, free: 26.06 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/10.75, allocations: 7.211 MB / 3.773 GB, free: 25.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002162/10.76, allocations: 0.7506 MB / 3.774 GB, free: 25.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007999/10.76, allocations: 51.23 kB / 3.774 GB, free: 25.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002742/10.76, allocations: 190.3 kB / 3.774 GB, free: 25.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005375/10.76, allocations: 153.2 kB / 3.774 GB, free: 25.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/10.76, allocations: 65.94 kB / 3.774 GB, free: 25.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002485/10.76, allocations: 1.188 MB / 3.775 GB, free: 24.94 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.61e-07/10.76, allocations: 0 / 3.775 GB, free: 24.94 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01148/10.78, allocations: 2.748 MB / 3.778 GB, free: 24.82 MB / 474.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.01241/10.79, allocations: 2.817 MB / 3.781 GB, free: 24.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01269/10.8, allocations: 5.23 MB / 3.786 GB, free: 24.27 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/10.8, allocations: 0 / 3.786 GB, free: 24.27 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004882/10.81, allocations: 2.416 MB / 3.788 GB, free: 24.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005352/10.81, allocations: 0.8722 MB / 3.789 GB, free: 24.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6426/11.45, allocations: 128.7 MB / 3.915 GB, free: 52.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/11.46, allocations: 2.251 MB / 3.917 GB, free: 51.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/11.46, allocations: 209.2 kB / 3.917 GB, free: 51.36 MB / 490.7 MB Notification: Performance of SimCode: time 1.704e-06/11.46, allocations: 0 / 3.917 GB, free: 51.36 MB / 490.7 MB Notification: Performance of Templates: time 0.1985/11.66, allocations: 117.2 MB / 4.031 GB, free: 13.16 MB / 490.7 MB