Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.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.Simplified5,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified5",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.0009592/0.0009592, allocations: 100.1 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.0009738/0.0009739, allocations: 177.3 kB / 15.95 MB, free: 216 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.3/1.3, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001795/0.001795, allocations: 270.7 kB / 291.2 MB, free: 1.984 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.7963/0.7963, allocations: 144.6 MB / 487 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003902/0.0003903, allocations: 11.72 kB / 0.5684 GB, free: 38.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1251, allocations: 83.09 MB / 0.6495 GB, free: 3.453 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5): time 0.5938/0.719, allocations: 297.6 MB / 0.9401 GB, free: 8.355 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.09646/0.8155, allocations: 63.28 MB / 1.002 GB, free: 8.984 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0153/0.8309, allocations: 341.6 kB / 1.002 GB, free: 8.648 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.01886/0.8498, allocations: 4.349 MB / 1.006 GB, free: 4.277 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.04007/0.8899, allocations: 13.3 MB / 1.019 GB, free: 6.965 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.02366/0.9136, allocations: 8.496 MB / 1.028 GB, free: 14.57 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.02989/0.9435, allocations: 17.55 MB / 1.045 GB, free: 13 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4222/1.366, allocations: 14.14 MB / 1.059 GB, free: 22.85 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02581/1.391, allocations: 11.24 MB / 1.07 GB, free: 22.85 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02766/1.419, allocations: 10.42 MB / 1.08 GB, free: 22.85 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.008181/1.427, allocations: 0.9695 MB / 1.081 GB, free: 22.85 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01936/1.447, allocations: 3.551 MB / 1.084 GB, free: 22.85 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.01037/1.457, allocations: 3.91 MB / 1.088 GB, free: 22.85 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.01069/1.468, allocations: 2.691 MB / 1.091 GB, free: 22.82 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.02986/1.498, allocations: 17.83 MB / 1.108 GB, free: 21.61 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/1.498, allocations: 0 / 1.108 GB, free: 21.61 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.695e-06/1.498, allocations: 0 / 1.108 GB, free: 21.61 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0008345/1.499, allocations: 2.25 kB / 1.108 GB, free: 21.61 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: 1549 * Number of variables: 1549 Notification: Performance of Generate backend data structure: time 0.0476/1.546, allocations: 17.48 MB / 1.125 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/1.546, allocations: 9.719 kB / 1.125 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005034/1.551, allocations: 0.8001 MB / 1.126 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01545/1.567, allocations: 2.763 MB / 1.129 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03721/1.604, allocations: 16.7 MB / 1.145 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001991/1.606, allocations: 0.7951 MB / 1.146 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004934/1.611, allocations: 0.7069 MB / 1.146 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.034/1.645, allocations: 14.07 MB / 1.16 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002455/1.645, allocations: 10.86 kB / 1.16 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003266/1.649, allocations: 247.8 kB / 1.16 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001887/1.649, allocations: 225 kB / 1.161 GB, free: 7 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0378/1.687, allocations: 19.16 MB / 1.179 GB, free: 13.51 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.1277/1.815, allocations: 74.64 MB / 1.252 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01837/1.833, allocations: 10.8 MB / 1.263 GB, free: 8.301 MB / 0.8106 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.06223/1.895, allocations: 29.07 MB / 1.291 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01556/1.911, allocations: 8.885 MB / 1.3 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02949/1.94, allocations: 9.894 MB / 1.31 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=402): time 3.441e-05/1.94, allocations: 1.969 kB / 1.31 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of matching and sorting (n=597): time 1.351/3.292, allocations: 214.9 MB / 1.519 GB, free: 339.6 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: 207 * 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 (707): * Single equations (assignments): 691 * 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 {(31,84.4%) 40} * Non-linear torn systems: 2 {8 80,8 80} 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: 11 ($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,heater.outCon.T) * 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 (509): * Single equations (assignments): 487 * 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 {(31,84.4%) 40} * 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]