Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 199.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.2 MB / 245 MB, free: 7.645 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009428/0.0009429, allocations: 99.98 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3524/0.3524, allocations: 45.22 MB / 394.7 MB, free: 31.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.0003262, allocations: 8 kB / 468.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.3904, allocations: 63.25 MB / 0.5192 GB, free: 43.64 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.393/7.783, allocations: 3.172 GB / 3.691 GB, free: 126 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/7.784, allocations: 83.92 kB / 3.691 GB, free: 126 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 10.86/18.65, allocations: 3.116 GB / 6.807 GB, free: 47.22 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.773e-06/18.65, allocations: 0 / 6.807 GB, free: 47.22 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002905/18.65, allocations: 67.92 kB / 6.807 GB, free: 47.15 MB / 0.573 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.01547/18.66, allocations: 3.908 MB / 6.811 GB, free: 43.59 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/18.66, allocations: 8.031 kB / 6.811 GB, free: 43.58 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001924/18.66, allocations: 312.2 kB / 6.811 GB, free: 43.28 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00657/18.67, allocations: 2.091 MB / 6.813 GB, free: 41.38 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002721/18.67, allocations: 219.2 kB / 6.813 GB, free: 41.15 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001177/18.67, allocations: 184 kB / 6.814 GB, free: 40.97 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007381/18.68, allocations: 3.336 MB / 6.817 GB, free: 37.46 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.819e-05/18.68, allocations: 7.938 kB / 6.817 GB, free: 37.45 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004265/18.68, allocations: 87.91 kB / 6.817 GB, free: 37.36 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002198/18.68, allocations: 199.8 kB / 6.817 GB, free: 37.17 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004764/18.68, allocations: 3.095 MB / 6.82 GB, free: 34.07 MB / 0.573 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.0162/18.7, allocations: 12.46 MB / 6.832 GB, free: 21.06 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/18.7, allocations: 2.293 MB / 6.835 GB, free: 18.75 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007308/18.71, allocations: 5.632 MB / 6.84 GB, free: 12.62 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/18.71, allocations: 67.75 kB / 6.84 GB, free: 12.54 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009602/18.71, allocations: 257.8 kB / 6.84 GB, free: 12.29 MB / 0.573 GB Notification: Performance of pre-optimization done (n=161): time 3.406e-06/18.71, allocations: 0 / 6.84 GB, free: 12.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=263): time 0.9066/19.62, allocations: 51.43 MB / 6.891 GB, free: 54.32 MB / 0.573 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1773/19.8, allocations: 50.92 MB / 6.94 GB, free: 48.47 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002941/19.8, allocations: 1.693 MB / 6.942 GB, free: 48.26 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006914/19.8, allocations: 71.36 kB / 6.942 GB, free: 48.23 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007524/19.8, allocations: 1.055 MB / 6.943 GB, free: 47.9 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001096/19.8, allocations: 0.8809 MB / 6.944 GB, free: 47.38 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004678/19.8, allocations: 55.47 kB / 6.944 GB, free: 47.38 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001626/19.8, allocations: 418.6 kB / 6.944 GB, free: 47.07 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003855/19.81, allocations: 2.205 MB / 6.947 GB, free: 47.06 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004573/19.81, allocations: 2.779 MB / 6.949 GB, free: 46.46 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006145/19.82, allocations: 2.632 MB / 6.952 GB, free: 46.41 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-05/19.82, allocations: 3.906 kB / 6.952 GB, free: 46.41 MB / 0.573 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01539/19.83, allocations: 7.544 MB / 6.959 GB, free: 46.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001337/19.83, allocations: 6.346 MB / 6.965 GB, free: 39.51 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.638e-05/19.83, allocations: 16.12 kB / 6.965 GB, free: 39.51 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04163/19.88, allocations: 11.77 MB / 6.977 GB, free: 39.36 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/19.88, allocations: 353.5 kB / 6.977 GB, free: 39.36 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/19.89, allocations: 8.725 MB / 6.986 GB, free: 38.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004137/19.9, allocations: 280.5 kB / 6.986 GB, free: 38.16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006711/19.9, allocations: 152.4 kB / 6.986 GB, free: 38.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/19.9, allocations: 4.219 kB / 6.986 GB, free: 38.14 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01334/19.91, allocations: 7.084 MB / 6.993 GB, free: 35.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.85e-05/19.91, allocations: 21.39 kB / 6.993 GB, free: 35.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02325/19.94, allocations: 7.837 MB / 7.001 GB, free: 34.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/19.94, allocations: 387.2 kB / 7.001 GB, free: 34.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/19.95, allocations: 8.213 MB / 7.009 GB, free: 31.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004066/19.96, allocations: 270.2 kB / 7.009 GB, free: 31.21 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007035/19.96, allocations: 157.5 kB / 7.01 GB, free: 31.18 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.002501/19.96, allocations: 0.7699 MB / 7.01 GB, free: 30.74 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/19.96, allocations: 250.4 kB / 7.011 GB, free: 30.61 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/19.98, allocations: 8.091 MB / 7.018 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.825e-05/19.98, allocations: 39.81 kB / 7.018 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/19.98, allocations: 0 / 7.018 GB, free: 27.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01247/19.99, allocations: 7.105 MB / 7.025 GB, free: 23.19 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02563/20.02, allocations: 14.03 MB / 7.039 GB, free: 11.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/20.02, allocations: 0 / 7.039 GB, free: 11.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008447/20.02, allocations: 200.2 kB / 7.039 GB, free: 11.65 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03978/20.06, allocations: 11.35 MB / 7.05 GB, free: 3.598 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000984/20.06, allocations: 87.23 kB / 7.05 GB, free: 3.527 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02284/20.08, allocations: 8.471 MB / 7.059 GB, free: 12.08 MB / 0.5886 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.5373/20.62, allocations: 59.73 MB / 7.117 GB, free: 63.41 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02053/20.64, allocations: 10.68 MB / 7.128 GB, free: 62.97 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/20.64, allocations: 0.8534 MB / 7.128 GB, free: 62.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009914/20.64, allocations: 54.45 kB / 7.128 GB, free: 62.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003651/20.65, allocations: 269.5 kB / 7.129 GB, free: 62.75 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000533/20.65, allocations: 197.9 kB / 7.129 GB, free: 62.74 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004132/20.65, allocations: 118.6 kB / 7.129 GB, free: 62.74 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002594/20.65, allocations: 1.275 MB / 7.13 GB, free: 62.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.51e-07/20.65, allocations: 1 kB / 7.13 GB, free: 62.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01087/20.66, allocations: 3.216 MB / 7.133 GB, free: 62.6 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.009134/20.67, allocations: 2.557 MB / 7.136 GB, free: 62.34 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02235/20.69, allocations: 9.244 MB / 7.145 GB, free: 62.13 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/20.69, allocations: 2.188 kB / 7.145 GB, free: 62.13 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008208/20.7, allocations: 3.268 MB / 7.148 GB, free: 62.05 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004459/20.7, allocations: 0.9255 MB / 7.149 GB, free: 62.04 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]