Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 177.1 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009025/0.0009024, allocations: 102.5 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3528/0.3528, allocations: 44.21 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003241/0.0003241, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3735, allocations: 61.89 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.967/8.34, allocations: 3.171 GB / 3.68 GB, free: 93.43 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/8.341, allocations: 82.22 kB / 3.68 GB, free: 93.35 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 10.78/19.12, allocations: 3.11 GB / 6.79 GB, free: 46.96 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.763e-06/19.12, allocations: 0 / 6.79 GB, free: 46.96 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001773/19.12, allocations: 63.02 kB / 6.79 GB, free: 46.95 MB / 0.5573 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.01357/19.14, allocations: 3.9 MB / 6.794 GB, free: 45 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/19.14, allocations: 9.844 kB / 6.794 GB, free: 45 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/19.14, allocations: 313.4 kB / 6.794 GB, free: 44.86 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005175/19.15, allocations: 2.088 MB / 6.796 GB, free: 44.39 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/19.15, allocations: 222.9 kB / 6.796 GB, free: 44.32 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003788/19.15, allocations: 190.3 kB / 6.797 GB, free: 44.32 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005017/19.15, allocations: 3.347 MB / 6.8 GB, free: 43.83 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.262e-05/19.15, allocations: 7.469 kB / 6.8 GB, free: 43.83 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002662/19.15, allocations: 84.03 kB / 6.8 GB, free: 43.83 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00024/19.15, allocations: 208.5 kB / 6.8 GB, free: 43.82 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004687/19.16, allocations: 3.08 MB / 6.803 GB, free: 43.81 MB / 0.5573 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.01707/19.17, allocations: 12.47 MB / 6.815 GB, free: 38.68 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/19.18, allocations: 2.284 MB / 6.818 GB, free: 38.53 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008029/19.18, allocations: 5.643 MB / 6.823 GB, free: 35.71 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/19.18, allocations: 56.19 kB / 6.823 GB, free: 35.67 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001218/19.19, allocations: 255 kB / 6.823 GB, free: 35.57 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=161): time 4.89e-06/19.19, allocations: 0 / 6.823 GB, free: 35.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263): time 0.5405/19.73, allocations: 52.19 MB / 6.874 GB, free: 23.57 MB / 0.5573 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.5792/20.31, allocations: 51.82 MB / 6.925 GB, free: 54.23 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002603/20.31, allocations: 1.689 MB / 6.927 GB, free: 54.04 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007152/20.31, allocations: 64.89 kB / 6.927 GB, free: 54 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007289/20.31, allocations: 1.058 MB / 6.928 GB, free: 53.91 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008896/20.31, allocations: 0.886 MB / 6.929 GB, free: 53.46 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/20.31, allocations: 55.66 kB / 6.929 GB, free: 53.46 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001379/20.31, allocations: 425.2 kB / 6.929 GB, free: 53.16 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003636/20.31, allocations: 2.201 MB / 6.931 GB, free: 53.15 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003907/20.32, allocations: 2.776 MB / 6.934 GB, free: 52.54 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005246/20.32, allocations: 2.651 MB / 6.936 GB, free: 52.5 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-05/20.32, allocations: 11.23 kB / 6.936 GB, free: 52.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01417/20.34, allocations: 7.562 MB / 6.944 GB, free: 52.24 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001247/20.34, allocations: 6.344 MB / 6.95 GB, free: 45.64 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.587e-05/20.34, allocations: 18.44 kB / 6.95 GB, free: 45.64 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04674/20.39, allocations: 12.2 MB / 6.962 GB, free: 45.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/20.39, allocations: 347.8 kB / 6.962 GB, free: 45.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02128/20.41, allocations: 8.747 MB / 6.971 GB, free: 44.39 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005327/20.41, allocations: 277.2 kB / 6.971 GB, free: 44.38 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001269/20.42, allocations: 153.4 kB / 6.971 GB, free: 44.38 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/20.42, allocations: 6.562 kB / 6.971 GB, free: 44.38 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0168/20.43, allocations: 7.105 MB / 6.978 GB, free: 44.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.375e-05/20.43, allocations: 13.94 kB / 6.978 GB, free: 44.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02638/20.46, allocations: 7.903 MB / 6.986 GB, free: 44.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/20.46, allocations: 392.4 kB / 6.986 GB, free: 44.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01701/20.48, allocations: 8.234 MB / 6.994 GB, free: 43.05 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004528/20.48, allocations: 274.5 kB / 6.995 GB, free: 43.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009468/20.48, allocations: 148.8 kB / 6.995 GB, free: 43.04 MB / 0.573 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.002731/20.49, allocations: 0.7679 MB / 6.996 GB, free: 42.84 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/20.49, allocations: 248.6 kB / 6.996 GB, free: 42.72 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01815/20.51, allocations: 8.112 MB / 7.004 GB, free: 42.49 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/20.51, allocations: 29.88 kB / 7.004 GB, free: 42.49 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/20.51, allocations: 4.562 kB / 7.004 GB, free: 42.49 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01382/20.52, allocations: 7.138 MB / 7.011 GB, free: 42.02 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0276/20.55, allocations: 14.05 MB / 7.024 GB, free: 39.72 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/20.55, allocations: 0 / 7.024 GB, free: 39.72 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008962/20.55, allocations: 199.9 kB / 7.025 GB, free: 39.71 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04482/20.59, allocations: 11.78 MB / 7.036 GB, free: 38.52 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007936/20.59, allocations: 88.98 kB / 7.036 GB, free: 38.48 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01558/20.61, allocations: 8.454 MB / 7.044 GB, free: 34.99 MB / 0.573 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.2216/20.83, allocations: 60.64 MB / 7.104 GB, free: 13.4 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01957/20.85, allocations: 10.71 MB / 7.114 GB, free: 4.215 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002586/20.85, allocations: 0.8584 MB / 7.115 GB, free: 3.477 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008215/20.85, allocations: 54.69 kB / 7.115 GB, free: 3.426 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003299/20.86, allocations: 263.2 kB / 7.115 GB, free: 3.242 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004357/20.86, allocations: 202.4 kB / 7.115 GB, free: 3.121 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003401/20.86, allocations: 115.5 kB / 7.116 GB, free: 3.023 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002204/20.86, allocations: 1.277 MB / 7.117 GB, free: 1.941 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.3e-07/20.86, allocations: 2.297 kB / 7.117 GB, free: 1.941 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01201/20.87, allocations: 3.281 MB / 7.12 GB, free: 15.23 MB / 0.5886 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.01131/20.88, allocations: 2.543 MB / 7.122 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02562/20.91, allocations: 9.231 MB / 7.131 GB, free: 5.992 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/20.91, allocations: 4 kB / 7.131 GB, free: 5.988 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009475/20.92, allocations: 3.27 MB / 7.135 GB, free: 2.758 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005064/20.92, allocations: 0.9272 MB / 7.136 GB, free: 1.871 MB / 0.5886 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]