Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003686/0.003692, allocations: 349.2 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.338/3.338, allocations: 341.5 MB / 358.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003488/0.003488, allocations: 218.1 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4512/0.4512, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000468/0.0004682, allocations: 8 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08463, allocations: 48.7 MB / 0.6067 GB, free: 4.645 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.942/8.027, allocations: 2.548 GB / 3.154 GB, free: 88.33 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/8.027, allocations: 89.78 kB / 3.154 GB, free: 88.33 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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 4.927/12.95, allocations: 0.8037 GB / 3.958 GB, free: 13.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.286e-06/12.95, allocations: 0 / 3.958 GB, free: 13.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004313/12.95, allocations: 62.22 kB / 3.958 GB, free: 13.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.026/12.98, allocations: 4.019 MB / 3.962 GB, free: 10.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/12.98, allocations: 8.031 kB / 3.962 GB, free: 10.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/12.99, allocations: 0.8232 MB / 3.963 GB, free: 9.43 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05423/13.05, allocations: 13.3 MB / 3.976 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003862/13.05, allocations: 171.7 kB / 3.976 GB, free: 12.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/13.05, allocations: 199.9 kB / 3.976 GB, free: 12.41 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/13.06, allocations: 3.6 MB / 3.98 GB, free: 8.637 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.889e-05/13.06, allocations: 7.938 kB / 3.98 GB, free: 8.629 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000431/13.07, allocations: 87.97 kB / 3.98 GB, free: 8.543 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003548/13.07, allocations: 159.5 kB / 3.98 GB, free: 8.387 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/13.08, allocations: 3.281 MB / 3.983 GB, free: 5.102 MB / 474.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.4676/13.55, allocations: 15.01 MB / 3.998 GB, free: 24.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/13.56, allocations: 2.297 MB / 4 GB, free: 24.19 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003864/13.56, allocations: 1.139 MB / 4.001 GB, free: 24.18 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05806/13.62, allocations: 18.79 MB / 4.02 GB, free: 12.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007316/13.63, allocations: 1.635 MB / 4.021 GB, free: 12.37 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 6.482e-06/13.63, allocations: 1.562 kB / 4.021 GB, free: 12.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.0385/13.67, allocations: 8.095 MB / 4.029 GB, free: 27.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/13.67, allocations: 282.7 kB / 4.029 GB, free: 27.24 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003883/13.67, allocations: 1.59 MB / 4.031 GB, free: 27.06 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006364/13.67, allocations: 55.33 kB / 4.031 GB, free: 27.03 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/13.67, allocations: 0.9831 MB / 4.032 GB, free: 26.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/13.67, allocations: 0.5751 MB / 4.032 GB, free: 26.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/13.67, allocations: 40.16 kB / 4.032 GB, free: 26.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002674/13.67, allocations: 387.7 kB / 4.033 GB, free: 26.12 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004142/13.68, allocations: 1.145 MB / 4.034 GB, free: 26.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004733/13.68, allocations: 1.651 MB / 4.036 GB, free: 25.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004763/13.69, allocations: 1.376 MB / 4.037 GB, free: 25.51 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.683e-05/13.69, allocations: 2.375 kB / 4.037 GB, free: 25.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01456/13.7, allocations: 3.954 MB / 4.041 GB, free: 25.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004297/13.7, allocations: 0.5068 MB / 4.041 GB, free: 24.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.375e-05/13.7, allocations: 12.41 kB / 4.041 GB, free: 24.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02587/13.73, allocations: 2.925 MB / 4.044 GB, free: 24.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/13.73, allocations: 313.3 kB / 4.044 GB, free: 24.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/13.74, allocations: 3.502 MB / 4.048 GB, free: 24.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004392/13.75, allocations: 257.6 kB / 4.048 GB, free: 24.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007464/13.75, allocations: 105.5 kB / 4.048 GB, free: 24.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/13.75, allocations: 5.844 kB / 4.048 GB, free: 24.11 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01232/13.76, allocations: 3.54 MB / 4.052 GB, free: 24.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.845e-05/13.76, allocations: 14.09 kB / 4.052 GB, free: 24.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/13.77, allocations: 1.77 MB / 4.053 GB, free: 24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/13.78, allocations: 355.4 kB / 4.054 GB, free: 24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007456/13.78, allocations: 2.756 MB / 4.056 GB, free: 23.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003787/13.79, allocations: 259.4 kB / 4.057 GB, free: 23.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005636/13.79, allocations: 100.2 kB / 4.057 GB, free: 23.44 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,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 (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.002367/13.79, allocations: 0.722 MB / 4.058 GB, free: 23.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007052/13.79, allocations: 202.9 kB / 4.058 GB, free: 23.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02268/13.81, allocations: 7.758 MB / 4.065 GB, free: 22.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/13.81, allocations: 96.34 kB / 4.065 GB, free: 22.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/13.81, allocations: 3.953 kB / 4.065 GB, free: 22.44 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01432/13.83, allocations: 6.678 MB / 4.072 GB, free: 21.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02372/13.85, allocations: 10.91 MB / 4.083 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/13.85, allocations: 4.297 kB / 4.083 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003418/13.86, allocations: 405.3 kB / 4.083 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002468/13.86, allocations: 378.3 kB / 4.083 GB, free: 20.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005804/13.86, allocations: 61.3 kB / 4.083 GB, free: 20.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/13.86, allocations: 2.577 MB / 4.086 GB, free: 18.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/13.86, allocations: 4.625 kB / 4.086 GB, free: 18.81 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/13.88, allocations: 7.225 MB / 4.093 GB, free: 18.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002399/13.88, allocations: 0.7374 MB / 4.094 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008064/13.88, allocations: 51.41 kB / 4.094 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003226/13.88, allocations: 194 kB / 4.094 GB, free: 17.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006001/13.88, allocations: 146.2 kB / 4.094 GB, free: 17.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002547/13.88, allocations: 67.06 kB / 4.094 GB, free: 17.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002741/13.89, allocations: 1.171 MB / 4.095 GB, free: 17.69 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.52e-07/13.89, allocations: 2.125 kB / 4.095 GB, free: 17.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01366/13.9, allocations: 2.636 MB / 4.098 GB, free: 17.57 MB / 490.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.01498/13.92, allocations: 2.659 MB / 4.1 GB, free: 17.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01528/13.93, allocations: 5.322 MB / 4.106 GB, free: 16.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/13.93, allocations: 1.75 kB / 4.106 GB, free: 16.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005432/13.94, allocations: 2.416 MB / 4.108 GB, free: 16.89 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008185/13.95, allocations: 0.8964 MB / 4.109 GB, free: 16.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6584/14.6, allocations: 82.45 MB / 4.189 GB, free: 59.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/14.61, allocations: 2.305 MB / 4.192 GB, free: 58.62 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005642/14.61, allocations: 1.725 MB / 4.193 GB, free: 58.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009879/14.61, allocations: 174.5 kB / 4.193 GB, free: 58.59 MB / 0.4948 GB Notification: Performance of SimCode: time 1.142e-06/14.61, allocations: 0 / 4.193 GB, free: 58.59 MB / 0.4948 GB Notification: Performance of Templates: time 0.2125/14.83, allocations: 92.44 MB / 4.284 GB, free: 54.21 MB / 0.4948 GB