Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 183.3 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 86.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2202/0.2202, allocations: 43.56 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003493, allocations: 8 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.138, allocations: 58.86 MB / 490.2 MB, free: 8.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.597/8.735, allocations: 3.164 GB / 3.643 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003712/8.735, allocations: 90.02 kB / 3.643 GB, free: 72.18 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 11.01/19.74, allocations: 3.099 GB / 6.742 GB, free: 27.46 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.364e-06/19.74, allocations: 0 / 6.742 GB, free: 27.46 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0004209/19.74, allocations: 71.92 kB / 6.742 GB, free: 27.39 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.0172/19.76, allocations: 3.901 MB / 6.745 GB, free: 23.43 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/19.76, allocations: 8.031 kB / 6.745 GB, free: 23.42 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002132/19.76, allocations: 316.8 kB / 6.746 GB, free: 23.11 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006877/19.77, allocations: 2.094 MB / 6.748 GB, free: 20.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002555/19.77, allocations: 211.2 kB / 6.748 GB, free: 20.74 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/19.77, allocations: 199.9 kB / 6.748 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006281/19.78, allocations: 3.324 MB / 6.751 GB, free: 17.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.305e-05/19.78, allocations: 7.938 kB / 6.751 GB, free: 17.03 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002702/19.78, allocations: 87.97 kB / 6.752 GB, free: 16.95 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002038/19.78, allocations: 203.7 kB / 6.752 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004307/19.78, allocations: 3.087 MB / 6.755 GB, free: 13.66 MB / 0.5417 GB 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.01603/19.8, allocations: 12.47 MB / 6.767 GB, free: 0.6328 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3348/20.13, allocations: 2.285 MB / 6.769 GB, free: 46.21 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009151/20.14, allocations: 5.645 MB / 6.775 GB, free: 43.53 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/20.14, allocations: 50.59 kB / 6.775 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001167/20.14, allocations: 256.2 kB / 6.775 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=161): time 5.51e-06/20.14, allocations: 0 / 6.775 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263): time 0.5632/20.71, allocations: 52.19 MB / 6.826 GB, free: 40.37 MB / 0.5417 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1816/20.89, allocations: 51.83 MB / 6.877 GB, free: 34.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003656/20.89, allocations: 1.689 MB / 6.878 GB, free: 34.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008323/20.89, allocations: 72.27 kB / 6.878 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009633/20.89, allocations: 1.057 MB / 6.879 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001345/20.89, allocations: 0.8781 MB / 6.88 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005616/20.9, allocations: 56.84 kB / 6.88 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002068/20.9, allocations: 419.3 kB / 6.881 GB, free: 33.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004424/20.9, allocations: 2.211 MB / 6.883 GB, free: 33 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004439/20.9, allocations: 2.784 MB / 6.885 GB, free: 32.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005488/20.91, allocations: 2.644 MB / 6.888 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/20.91, allocations: 7.031 kB / 6.888 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01558/20.93, allocations: 7.557 MB / 6.895 GB, free: 32.09 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001624/20.93, allocations: 6.349 MB / 6.902 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.931e-05/20.93, allocations: 20.56 kB / 6.902 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04787/20.98, allocations: 12.18 MB / 6.914 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/20.98, allocations: 344.4 kB / 6.914 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01784/20.99, allocations: 8.751 MB / 6.922 GB, free: 21.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004561/21, allocations: 283.7 kB / 6.923 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000795/21, allocations: 154.2 kB / 6.923 GB, free: 21.78 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/21, allocations: 7.219 kB / 6.923 GB, free: 21.78 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01335/21.01, allocations: 7.108 MB / 6.93 GB, free: 19.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.62e-05/21.01, allocations: 14.31 kB / 6.93 GB, free: 19.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02394/21.04, allocations: 7.898 MB / 6.938 GB, free: 16.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/21.04, allocations: 389.2 kB / 6.938 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/21.05, allocations: 8.233 MB / 6.946 GB, free: 8.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003989/21.06, allocations: 273.2 kB / 6.946 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000656/21.06, allocations: 150.1 kB / 6.946 GB, free: 8.512 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.002272/21.06, allocations: 0.778 MB / 6.947 GB, free: 7.832 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008051/21.06, allocations: 245 kB / 6.947 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/21.08, allocations: 8.108 MB / 6.955 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/21.08, allocations: 31.94 kB / 6.955 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/21.08, allocations: 0 / 6.955 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02078/21.1, allocations: 7.632 MB / 6.963 GB, free: 12.13 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3602/21.46, allocations: 14.05 MB / 6.976 GB, free: 56.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.16e-05/21.46, allocations: 1.312 kB / 6.976 GB, free: 56.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/21.46, allocations: 195.4 kB / 6.977 GB, free: 56.93 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04853/21.51, allocations: 11.77 MB / 6.988 GB, free: 56.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009205/21.51, allocations: 83.77 kB / 6.988 GB, free: 56.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01685/21.53, allocations: 8.46 MB / 6.996 GB, free: 55.7 MB / 0.5573 GB Error: Jacobian StateSetJac10 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2282/21.75, allocations: 60.64 MB / 7.056 GB, free: 50.25 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01976/21.77, allocations: 10.7 MB / 7.066 GB, free: 49.71 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002777/21.78, allocations: 0.8632 MB / 7.067 GB, free: 49.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001/21.78, allocations: 50.91 kB / 7.067 GB, free: 49.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003567/21.78, allocations: 262.1 kB / 7.067 GB, free: 49.48 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005068/21.78, allocations: 198.1 kB / 7.067 GB, free: 49.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004158/21.78, allocations: 114.6 kB / 7.068 GB, free: 49.47 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002387/21.78, allocations: 1.277 MB / 7.069 GB, free: 49.33 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.753e-06/21.78, allocations: 3.812 kB / 7.069 GB, free: 49.33 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01275/21.8, allocations: 3.2 MB / 7.072 GB, free: 49.31 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 78,19 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.01186/21.81, allocations: 2.547 MB / 7.074 GB, free: 49.04 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02595/21.84, allocations: 9.252 MB / 7.083 GB, free: 48.82 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/21.84, allocations: 0.5625 kB / 7.083 GB, free: 48.82 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009562/21.84, allocations: 3.266 MB / 7.087 GB, free: 48.74 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005015/21.85, allocations: 0.917 MB / 7.088 GB, free: 48.7 MB / 0.5573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]