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: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 99.62 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.0009208/0.0009208, 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.382/1.382, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002334/0.002334, allocations: 266.8 kB / 291.2 MB, free: 2.023 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.8216/0.8216, allocations: 144.6 MB / 487 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 12.72 kB / 0.5684 GB, free: 38.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1278, allocations: 83.09 MB / 0.6495 GB, free: 3.656 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4): time 0.5266/0.6544, allocations: 297.6 MB / 0.9401 GB, free: 8.484 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.09719/0.7516, allocations: 63.25 MB / 1.002 GB, free: 9.137 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01622/0.7679, allocations: 349.6 kB / 1.002 GB, free: 8.793 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.01971/0.7877, allocations: 4.353 MB / 1.006 GB, free: 4.418 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.04726/0.835, allocations: 13.3 MB / 1.019 GB, free: 7.105 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.02748/0.8625, allocations: 8.504 MB / 1.028 GB, free: 14.71 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0416/0.9041, allocations: 20.28 MB / 1.048 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4656/1.37, allocations: 14.97 MB / 1.062 GB, free: 22.07 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02659/1.396, allocations: 12.1 MB / 1.074 GB, free: 22.07 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02572/1.422, allocations: 10.99 MB / 1.085 GB, free: 22.06 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.007027/1.429, allocations: 1.003 MB / 1.086 GB, free: 22.06 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0185/1.448, allocations: 4.051 MB / 1.09 GB, free: 22.05 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.008552/1.456, allocations: 4.128 MB / 1.094 GB, free: 22.05 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.008592/1.465, allocations: 3.003 MB / 1.097 GB, free: 22.02 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.02727/1.492, allocations: 19.71 MB / 1.116 GB, free: 20.68 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/1.492, allocations: 3.188 kB / 1.116 GB, free: 20.68 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.317e-06/1.492, allocations: 0.75 kB / 1.116 GB, free: 20.68 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0008609/1.493, allocations: 0 / 1.116 GB, free: 20.68 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.05133/1.544, allocations: 18.57 MB / 1.134 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/1.545, allocations: 13.28 kB / 1.134 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004596/1.549, allocations: 0.9252 MB / 1.135 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01354/1.563, allocations: 2.698 MB / 1.138 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0366/1.599, allocations: 17.9 MB / 1.155 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001164/1.601, allocations: 0.7341 MB / 1.156 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004209/1.605, allocations: 0.8036 MB / 1.157 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02887/1.634, allocations: 14.93 MB / 1.171 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/1.634, allocations: 14.14 kB / 1.171 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001185/1.635, allocations: 291 kB / 1.171 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001703/1.635, allocations: 268 kB / 1.172 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03264/1.668, allocations: 19.51 MB / 1.191 GB, free: 4.734 MB / 0.7481 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.1411/1.809, allocations: 78.84 MB / 1.268 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01723/1.826, allocations: 10.79 MB / 1.278 GB, free: 12.32 MB / 0.8262 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.05737/1.884, allocations: 30.03 MB / 1.308 GB, free: 5.73 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01513/1.899, allocations: 8.827 MB / 1.316 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02971/1.929, allocations: 9.7 MB / 1.326 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=435): time 3.262e-05/1.929, allocations: 0 / 1.326 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=630): time 1.172/3.1, allocations: 198.5 MB / 1.52 GB, free: 337.9 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2135:10-2135:88:writable] Error: Internal error function optimizeJacobianMatrix failed [/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2135:10-2135:88:writable] Error: Internal error function optimizeJacobianMatrix failed [/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/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]