Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008935/0.0008935, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008369/0.000837, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001723/0.001723, allocations: 267.2 kB / 291.2 MB, free: 1.875 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7248/0.7248, allocations: 144.6 MB / 487 MB, free: 7.215 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.0003629, allocations: 16.27 kB / 0.5683 GB, free: 38.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1171, allocations: 83.08 MB / 0.6494 GB, free: 3.781 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4): time 0.4722/0.5893, allocations: 297.6 MB / 0.94 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.07411/0.6635, allocations: 63.26 MB / 1.002 GB, free: 9.246 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01051/0.674, allocations: 345.6 kB / 1.002 GB, free: 8.906 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.01283/0.6869, allocations: 4.353 MB / 1.006 GB, free: 4.531 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.03493/0.7218, allocations: 13.3 MB / 1.019 GB, free: 7.219 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.02251/0.7443, allocations: 8.498 MB / 1.028 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.03073/0.7751, allocations: 20.28 MB / 1.047 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.6339/1.409, allocations: 14.98 MB / 1.062 GB, free: 22.62 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02412/1.433, allocations: 12.09 MB / 1.074 GB, free: 22.62 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02089/1.454, allocations: 11 MB / 1.085 GB, free: 22.61 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.005376/1.46, allocations: 1.001 MB / 1.086 GB, free: 22.61 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01518/1.475, allocations: 4.058 MB / 1.09 GB, free: 22.61 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.006883/1.482, allocations: 4.122 MB / 1.094 GB, free: 22.61 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.006867/1.488, allocations: 2.999 MB / 1.097 GB, free: 22.57 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.02129/1.51, allocations: 19.7 MB / 1.116 GB, free: 21.23 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/1.51, allocations: 0 / 1.116 GB, free: 21.23 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.195e-06/1.51, allocations: 2.625 kB / 1.116 GB, free: 21.23 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0006183/1.51, allocations: 3.375 kB / 1.116 GB, free: 21.23 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1803 * Number of variables: 1803 Notification: Performance of Generate backend data structure: time 0.03944/1.55, allocations: 18.57 MB / 1.134 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/1.55, allocations: 7.281 kB / 1.134 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/1.563, allocations: 2.698 MB / 1.137 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03009/1.594, allocations: 17.91 MB / 1.154 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009011/1.594, allocations: 0.7365 MB / 1.155 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002116/1.597, allocations: 0.8 MB / 1.156 GB, free: 7.496 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01947/1.616, allocations: 14.93 MB / 1.17 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/1.616, allocations: 23.48 kB / 1.17 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001009/1.617, allocations: 290.3 kB / 1.17 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/1.617, allocations: 265.8 kB / 1.171 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0246/1.642, allocations: 19.51 MB / 1.19 GB, free: 5.953 MB / 0.7482 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.101/1.743, allocations: 78.83 MB / 1.267 GB, free: 3.582 MB / 0.8107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01347/1.757, allocations: 10.79 MB / 1.277 GB, free: 13.54 MB / 0.8263 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 evalFunc (simulation): time 0.044/1.801, allocations: 30.04 MB / 1.307 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01059/1.811, allocations: 8.825 MB / 1.315 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02367/1.835, allocations: 9.694 MB / 1.325 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=435): time 1.323e-05/1.835, allocations: 0 / 1.325 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=630): time 1.022/2.856, allocations: 198.5 MB / 1.518 GB, free: 339.2 MB / 0.9044 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! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2135:10-2135:88:writable] Error: Internal error function optimizeJacobianMatrix failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2052:9-2052:79:writable] Error: Internal error function createJacobian failed [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Actuators/BaseClasses/ValveParameters.mo:26:3-31:115:writable] Warning: Parameter valNorth.res3.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-9:76:writable] Warning: Parameter valNorth.res3.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Actuators/BaseClasses/ValveParameters.mo:26:3-31:115:writable] Warning: Parameter valNorth.res1.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-9:76:writable] Warning: Parameter valNorth.res1.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Actuators/BaseClasses/ValveParameters.mo:26:3-31:115:writable] Warning: Parameter valSouth.res3.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-9:76:writable] Warning: Parameter valSouth.res3.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Actuators/BaseClasses/ValveParameters.mo:26:3-31:115:writable] Warning: Parameter valSouth.res1.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-9:76:writable] Warning: Parameter valSouth.res1.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,stepPump.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,pumpHea.stage,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (794): * Single equations (assignments): 778 * Array equations: 6 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 2 {8 80,10 78} 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. 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! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2135:10-2135:88:writable] Error: Internal error function optimizeJacobianMatrix failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2052:9-2052:79:writable] Error: Internal error function createJacobian failed Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 16 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],valSouth.res1.filter.s[1],valSouth.res3.filter.s[1],valSouth.vol.dynBal.U,valNorth.res1.filter.s[1],valNorth.res3.filter.s[1],valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,stepPump.y,stepPump.pulseStart,pumpHea.stage,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (545): * Single equations (assignments): 523 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 3 {12 76,12 93,1 1} [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497: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]