Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.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.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.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002727/0.002732, allocations: 348.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.679/3.679, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003567/0.003567, allocations: 222.1 kB / 397.9 MB, free: 4.984 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.485/0.485, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005108/0.0005111, allocations: 8 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1034, allocations: 48.71 MB / 0.6067 GB, free: 4.656 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.402/8.505, allocations: 2.56 GB / 3.166 GB, free: 94.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/8.506, allocations: 87.09 kB / 3.166 GB, free: 94.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.132/13.64, allocations: 0.9543 GB / 4.121 GB, free: 22.39 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.365e-06/13.64, allocations: 0 / 4.121 GB, free: 22.39 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003794/13.64, allocations: 76.62 kB / 4.121 GB, free: 22.37 MB / 474.7 MB 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.02336/13.66, allocations: 4.569 MB / 4.125 GB, free: 18 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/13.66, allocations: 12.03 kB / 4.125 GB, free: 17.99 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01223/13.67, allocations: 0.9719 MB / 4.126 GB, free: 17.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02672/13.7, allocations: 8.367 MB / 4.134 GB, free: 9.156 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000496/13.7, allocations: 292.2 kB / 4.135 GB, free: 8.867 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001394/13.7, allocations: 236.2 kB / 4.135 GB, free: 8.645 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01784/13.72, allocations: 4.503 MB / 4.139 GB, free: 3.945 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/13.72, allocations: 7.938 kB / 4.139 GB, free: 3.938 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001325/13.72, allocations: 110.5 kB / 4.139 GB, free: 3.84 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004123/13.72, allocations: 220.7 kB / 4.14 GB, free: 3.621 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/13.74, allocations: 4.18 MB / 4.144 GB, free: 15.43 MB / 490.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.4549/14.19, allocations: 19.03 MB / 4.162 GB, free: 32.56 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/14.21, allocations: 2.769 MB / 4.165 GB, free: 32.54 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004848/14.21, allocations: 1.42 MB / 4.166 GB, free: 32.53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05869/14.27, allocations: 16.99 MB / 4.183 GB, free: 22.03 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.605e-05/14.27, allocations: 59.91 kB / 4.183 GB, free: 21.99 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002675/14.27, allocations: 356.5 kB / 4.183 GB, free: 21.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 7.184e-06/14.27, allocations: 0 / 4.183 GB, free: 21.99 MB / 490.7 MB 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.194/15.47, allocations: 71.15 MB / 4.253 GB, free: 17.3 MB / 490.7 MB 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.08118/15.55, allocations: 10.28 MB / 4.263 GB, free: 16.22 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003859/15.55, allocations: 1.897 MB / 4.265 GB, free: 15.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001013/15.55, allocations: 72.02 kB / 4.265 GB, free: 15.96 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/15.55, allocations: 1.174 MB / 4.266 GB, free: 15.58 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/15.56, allocations: 0.9374 MB / 4.267 GB, free: 15.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005545/15.56, allocations: 63.34 kB / 4.267 GB, free: 15.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/15.56, allocations: 420.9 kB / 4.267 GB, free: 14.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008979/15.56, allocations: 2.793 MB / 4.27 GB, free: 14.77 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009793/15.57, allocations: 3.372 MB / 4.273 GB, free: 14.16 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/15.59, allocations: 3.219 MB / 4.277 GB, free: 14.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.731e-05/15.59, allocations: 10.3 kB / 4.277 GB, free: 14.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03316/15.62, allocations: 9.364 MB / 4.286 GB, free: 10.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003443/15.62, allocations: 0.5247 MB / 4.286 GB, free: 9.738 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.762e-05/15.62, allocations: 16 kB / 4.286 GB, free: 9.723 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1231/15.74, allocations: 16.59 MB / 4.302 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/15.75, allocations: 384.1 kB / 4.303 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04035/15.79, allocations: 10.95 MB / 4.313 GB, free: 9.422 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008016/15.8, allocations: 392 kB / 4.314 GB, free: 9.184 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001354/15.8, allocations: 178.5 kB / 4.314 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/15.8, allocations: 8 kB / 4.314 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03619/15.83, allocations: 8.657 MB / 4.322 GB, free: 4.617 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/15.83, allocations: 20.89 kB / 4.323 GB, free: 4.598 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09473/15.93, allocations: 9.334 MB / 4.332 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006098/15.93, allocations: 446.7 kB / 4.332 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05462/15.99, allocations: 9.889 MB / 4.342 GB, free: 9.891 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01049/16, allocations: 386.7 kB / 4.342 GB, free: 9.656 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001766/16, allocations: 169.9 kB / 4.342 GB, free: 9.539 MB / 0.5105 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.004865/16.01, allocations: 0.8734 MB / 4.343 GB, free: 9.066 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001741/16.01, allocations: 256.8 kB / 4.343 GB, free: 8.812 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.547/16.55, allocations: 17.7 MB / 4.361 GB, free: 64.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001627/16.56, allocations: 116.9 kB / 4.361 GB, free: 64.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/16.56, allocations: 5.797 kB / 4.361 GB, free: 64.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03972/16.59, allocations: 15.75 MB / 4.376 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08047/16.68, allocations: 27.4 MB / 4.403 GB, free: 62.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-05/16.68, allocations: 3.469 kB / 4.403 GB, free: 62.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002299/16.68, allocations: 236.8 kB / 4.403 GB, free: 62.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1286/16.81, allocations: 25.65 MB / 4.428 GB, free: 61.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001002/16.81, allocations: 105.3 kB / 4.428 GB, free: 61.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0396/16.85, allocations: 15.87 MB / 4.444 GB, free: 60.77 MB / 0.5105 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.08246/16.93, allocations: 13.98 MB / 4.457 GB, free: 59.88 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05441/16.98, allocations: 22.56 MB / 4.479 GB, free: 50.15 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00394/16.99, allocations: 1.143 MB / 4.481 GB, free: 49.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/16.99, allocations: 60 kB / 4.481 GB, free: 49.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0071/17, allocations: 417.7 kB / 4.481 GB, free: 48.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/17, allocations: 262.8 kB / 4.481 GB, free: 48.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000587/17, allocations: 135.2 kB / 4.481 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00288/17, allocations: 1.338 MB / 4.483 GB, free: 47.48 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/17, allocations: 0 / 4.483 GB, free: 47.48 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02083/17.02, allocations: 4.407 MB / 4.487 GB, free: 43.7 MB / 0.5105 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.02615/17.05, allocations: 4.215 MB / 4.491 GB, free: 41.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05017/17.1, allocations: 12.47 MB / 4.503 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/17.1, allocations: 0 / 4.503 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02042/17.12, allocations: 5.881 MB / 4.509 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01054/17.13, allocations: 1.119 MB / 4.51 GB, free: 24.88 MB / 0.5105 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]