Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004093/0.004099, allocations: 361.2 kB / 15.95 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.353/4.353, allocations: 388.9 MB / 405.6 MB, free: 9.668 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003645/0.003645, allocations: 235.5 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5297/0.5297, allocations: 80.02 MB / 0.5627 GB, free: 19.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.000476, allocations: 20 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1052, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.518/8.623, allocations: 2.67 GB / 3.35 GB, free: 112.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/8.624, allocations: 88.22 kB / 3.35 GB, free: 112.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.285/13.91, allocations: 0.9733 GB / 4.324 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.246e-06/13.91, allocations: 0 / 4.324 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004174/13.91, allocations: 72.98 kB / 4.324 GB, free: 35.61 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.02269/13.93, allocations: 4.686 MB / 4.328 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/13.93, allocations: 9.859 kB / 4.328 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01176/13.94, allocations: 1.024 MB / 4.329 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0257/13.97, allocations: 8.485 MB / 4.338 GB, free: 32.66 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004659/13.97, allocations: 282.8 kB / 4.338 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/13.97, allocations: 241.8 kB / 4.338 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01553/13.99, allocations: 4.501 MB / 4.342 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.772e-05/13.99, allocations: 18.69 kB / 4.342 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005784/13.99, allocations: 111.2 kB / 4.343 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004009/13.99, allocations: 216.5 kB / 4.343 GB, free: 31.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/14, allocations: 4.187 MB / 4.347 GB, free: 31.94 MB / 0.5261 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.05326/14.06, allocations: 19.01 MB / 4.365 GB, free: 21 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01699/14.08, allocations: 2.774 MB / 4.368 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006762/14.08, allocations: 1.42 MB / 4.37 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07792/14.16, allocations: 16.99 MB / 4.386 GB, free: 26.42 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.94e-05/14.16, allocations: 61.33 kB / 4.386 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00256/14.16, allocations: 363.5 kB / 4.387 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=181): time 8.005e-06/14.16, allocations: 0 / 4.387 GB, free: 26.27 MB / 0.5417 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: tank.medium.h 3: radiator.mediums[1].h 4: pipe.mediums[2].h 5: pipe.mediums[2].p 6: pipe.mediums[1].p 7: pipe.mediums[1].h 8: heater.mediums[1].h 9: radiator.mediums[1].p 10: pump.medium.h 11: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 1.289/15.45, allocations: 71.16 MB / 4.456 GB, free: 12.21 MB / 0.5417 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of inlineWhenForInitialization (initialization): time 0.08364/15.54, allocations: 10.29 MB / 4.466 GB, free: 5.09 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004162/15.54, allocations: 1.896 MB / 4.468 GB, free: 3.953 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/15.54, allocations: 75.52 kB / 4.468 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001285/15.54, allocations: 1.164 MB / 4.469 GB, free: 3.27 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002091/15.54, allocations: 0.9449 MB / 4.47 GB, free: 2.539 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005802/15.55, allocations: 58.56 kB / 4.47 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002896/15.55, allocations: 421.7 kB / 4.471 GB, free: 2.188 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009652/15.56, allocations: 2.794 MB / 4.473 GB, free: 0.8281 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01509/15.57, allocations: 3.639 MB / 4.477 GB, free: 15.31 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/15.58, allocations: 3.216 MB / 4.48 GB, free: 13.66 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.553e-05/15.58, allocations: 4 kB / 4.48 GB, free: 13.66 MB / 0.5574 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03381/15.62, allocations: 9.364 MB / 4.489 GB, free: 8.707 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004472/15.62, allocations: 0.5291 MB / 4.49 GB, free: 8.027 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/15.62, allocations: 20.75 kB / 4.49 GB, free: 8.008 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6226/16.24, allocations: 16.84 MB / 4.506 GB, free: 63.24 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/16.24, allocations: 376.6 kB / 4.506 GB, free: 63.24 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04002/16.28, allocations: 10.95 MB / 4.517 GB, free: 62.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00766/16.29, allocations: 387.6 kB / 4.518 GB, free: 62.16 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/16.29, allocations: 179.8 kB / 4.518 GB, free: 62.16 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/16.29, allocations: 6.875 kB / 4.518 GB, free: 62.16 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03114/16.32, allocations: 8.661 MB / 4.526 GB, free: 62.05 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.17e-05/16.32, allocations: 16.36 kB / 4.526 GB, free: 62.05 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0568/16.38, allocations: 9.044 MB / 4.535 GB, free: 62 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00391/16.38, allocations: 441.7 kB / 4.535 GB, free: 62 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03476/16.42, allocations: 9.883 MB / 4.545 GB, free: 60.92 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007478/16.43, allocations: 394.2 kB / 4.545 GB, free: 60.92 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/16.43, allocations: 171.1 kB / 4.546 GB, free: 60.92 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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 {15 79,17 85} Notification: Performance of prepare postOptimizeDAE: time 0.003529/16.43, allocations: 0.8756 MB / 4.546 GB, free: 60.73 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/16.43, allocations: 252.1 kB / 4.547 GB, free: 60.73 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04458/16.48, allocations: 17.57 MB / 4.564 GB, free: 60.18 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001683/16.48, allocations: 117.8 kB / 4.564 GB, free: 60.18 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/16.48, allocations: 1.969 kB / 4.564 GB, free: 60.18 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03786/16.52, allocations: 15.75 MB / 4.579 GB, free: 59.33 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0856/16.6, allocations: 27.39 MB / 4.606 GB, free: 57.32 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.337e-05/16.6, allocations: 6.797 kB / 4.606 GB, free: 57.32 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/16.6, allocations: 235.5 kB / 4.606 GB, free: 57.31 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1332/16.74, allocations: 25.65 MB / 4.631 GB, free: 54.75 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000969/16.74, allocations: 105.9 kB / 4.631 GB, free: 54.71 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03915/16.78, allocations: 15.86 MB / 4.647 GB, free: 45.03 MB / 0.5574 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08069/16.86, allocations: 13.98 MB / 4.661 GB, free: 34.62 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05424/16.91, allocations: 22.55 MB / 4.683 GB, free: 14.83 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004006/16.92, allocations: 1.141 MB / 4.684 GB, free: 13.9 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00167/16.92, allocations: 60 kB / 4.684 GB, free: 13.84 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007397/16.93, allocations: 427 kB / 4.684 GB, free: 13.56 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001423/16.93, allocations: 260.7 kB / 4.684 GB, free: 13.4 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007488/16.93, allocations: 135.5 kB / 4.685 GB, free: 13.29 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003043/16.93, allocations: 1.333 MB / 4.686 GB, free: 12.16 MB / 0.5574 GB Notification: Performance of sort global known variables: time 7.72e-07/16.93, allocations: 4 kB / 4.686 GB, free: 12.16 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02202/16.95, allocations: 4.432 MB / 4.69 GB, free: 8.352 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse36.region3boundary,$cse37.region3boundary,$cse38.phase,$cse38.region,$cse48.phase,$cse48.region,$cse49.phase,$cse49.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.region3boundary,$cse55.region3boundary,$cse56.phase,$cse56.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 82,19 121} Notification: Performance of Backend phase and start with SimCode phase: time 0.02696/16.98, allocations: 4.218 MB / 4.694 GB, free: 5.797 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.05923/17.04, allocations: 12.68 MB / 4.707 GB, free: 11.91 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.569e-05/17.04, allocations: 4.125 kB / 4.707 GB, free: 11.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.5016/17.54, allocations: 7.128 MB / 4.714 GB, free: 77.04 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01223/17.55, allocations: 1.13 MB / 4.715 GB, free: 77.02 MB / 0.573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4548:9-4548:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]