Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 106.6 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002315/0.002315, allocations: 223.9 kB / 22.26 MB, free: 5.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo): time 0.9157/0.9157, allocations: 145 MB / 457.4 MB, free: 15.52 MB / 366.1 MB " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BuildSysPro requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 64.38 kB / 0.6331 GB, free: 7.328 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1948, allocations: 87.88 MB / 0.719 GB, free: 15.46 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00195/0.1967, allocations: 0.5166 MB / 0.7195 GB, free: 14.95 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1994, allocations: 1.693 MB / 0.7211 GB, free: 13.23 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.295e-05/0.1994, allocations: 0 / 0.7211 GB, free: 13.23 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.1996, allocations: 59.84 kB / 0.7212 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.578e-05/0.1997, allocations: 39.88 kB / 0.7212 GB, free: 13.14 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/IBPSA/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.2008, allocations: 266.7 kB / 0.7215 GB, free: 12.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.585e-05/0.2009, allocations: 31.97 kB / 0.7215 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.903e-05/0.2009, allocations: 11.92 kB / 0.7215 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.912e-05/0.201, allocations: 19.97 kB / 0.7215 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.482e-05/0.2011, allocations: 43.89 kB / 0.7216 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.2011, allocations: 0 / 0.7216 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009182/0.202, allocations: 467.2 kB / 0.722 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.584e-05/0.2021, allocations: 27.92 kB / 0.722 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.803e-05/0.2021, allocations: 27.69 kB / 0.7221 GB, free: 12.26 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005933/0.2027, allocations: 303.1 kB / 0.7224 GB, free: 11.96 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2027, allocations: 4 kB / 0.7224 GB, free: 11.96 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2027, allocations: 0 / 0.7224 GB, free: 11.96 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.2027, allocations: 0 / 0.7224 GB, free: 11.96 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005531/0.2033, allocations: 361.3 kB / 0.7227 GB, free: 11.58 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.2033, allocations: 8.031 kB / 0.7227 GB, free: 11.57 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.596e-05/0.2033, allocations: 34.75 kB / 0.7227 GB, free: 11.53 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.2034, allocations: 8.875 kB / 0.7228 GB, free: 11.52 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.2035, allocations: 127 kB / 0.7229 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-06/0.2036, allocations: 384 / 0.7229 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.2036, allocations: 384 / 0.7229 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.2037, allocations: 57.75 kB / 0.7229 GB, free: 11.31 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2037, allocations: 4 kB / 0.7229 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.2037, allocations: 0 / 0.7229 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2037, allocations: 0 / 0.7229 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.997e-05/0.2037, allocations: 23.92 kB / 0.723 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/0.2039, allocations: 156.7 kB / 0.7231 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 6.396e-05/0.204, allocations: 30.56 kB / 0.7231 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.64e-05/0.204, allocations: 16.92 kB / 0.7231 GB, free: 11.03 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.649e-05/0.2041, allocations: 4 kB / 0.7232 GB, free: 11.02 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.2041, allocations: 42.42 kB / 0.7232 GB, free: 10.97 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.2041, allocations: 0 / 0.7232 GB, free: 10.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.000167/0.2043, allocations: 65.64 kB / 0.7233 GB, free: 10.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.2043, allocations: 55.41 kB / 0.7233 GB, free: 10.84 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.2046, allocations: 218.6 kB / 0.7235 GB, free: 10.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.2046, allocations: 25.83 kB / 0.7235 GB, free: 10.58 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.508e-05/0.2046, allocations: 116.1 kB / 0.7237 GB, free: 10.46 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.428e-06/0.2047, allocations: 0 / 0.7237 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.2047, allocations: 29.7 kB / 0.7237 GB, free: 10.43 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2049, allocations: 322.8 kB / 0.724 GB, free: 10.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.558e-05/0.2049, allocations: 55.98 kB / 0.724 GB, free: 10.05 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.158e-05/0.205, allocations: 51.97 kB / 0.7241 GB, free: 9.996 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.2051, allocations: 92.72 kB / 0.7242 GB, free: 9.902 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2051, allocations: 0 / 0.7242 GB, free: 9.902 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002071/0.2053, allocations: 165.6 kB / 0.7243 GB, free: 9.734 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2053, allocations: 5.719 kB / 0.7243 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.2054, allocations: 3.984 kB / 0.7243 GB, free: 9.727 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2054, allocations: 4 kB / 0.7244 GB, free: 9.723 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.214e-05/0.2054, allocations: 3.938 kB / 0.7244 GB, free: 9.719 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2054, allocations: 0 / 0.7244 GB, free: 9.719 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.338e-05/0.2054, allocations: 11.84 kB / 0.7244 GB, free: 9.707 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.2054, allocations: 4 kB / 0.7244 GB, free: 9.703 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.2056, allocations: 136.2 kB / 0.7245 GB, free: 9.562 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.2056, allocations: 15.88 kB / 0.7245 GB, free: 9.547 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.2058, allocations: 62.12 kB / 0.7246 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2058, allocations: 0 / 0.7246 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2058, allocations: 0 / 0.7246 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2058, allocations: 0 / 0.7246 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.2059, allocations: 160.7 kB / 0.7247 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2059, allocations: 0 / 0.7247 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.004e-06/0.2059, allocations: 3.938 kB / 0.7247 GB, free: 9.273 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2059, allocations: 0 / 0.7247 GB, free: 9.273 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.2059, allocations: 4.031 kB / 0.7247 GB, free: 9.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2059, allocations: 0 / 0.7247 GB, free: 9.27 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2059, allocations: 4 kB / 0.7247 GB, free: 9.266 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.206, allocations: 81.02 kB / 0.7248 GB, free: 9.168 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.961e-05/0.206, allocations: 19.78 kB / 0.7248 GB, free: 9.148 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.2061, allocations: 7.922 kB / 0.7248 GB, free: 9.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.541e-05/0.2061, allocations: 4 kB / 0.7248 GB, free: 9.137 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.459e-05/0.2061, allocations: 12.02 kB / 0.7249 GB, free: 9.125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.2061, allocations: 0 / 0.7249 GB, free: 9.125 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001517/0.2062, allocations: 144.4 kB / 0.725 GB, free: 8.984 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2062, allocations: 4 kB / 0.725 GB, free: 8.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003467/0.2066, allocations: 83.81 kB / 0.7251 GB, free: 8.898 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009055/0.2075, allocations: 0.7377 MB / 0.7258 GB, free: 8.148 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002132/0.2077, allocations: 117.6 kB / 0.7259 GB, free: 8.027 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2077, allocations: 3.938 kB / 0.7259 GB, free: 8.023 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.312e-05/0.2077, allocations: 15.98 kB / 0.7259 GB, free: 8.008 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.2079, allocations: 11.88 kB / 0.7259 GB, free: 7.996 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.2101, allocations: 1.813 MB / 0.7277 GB, free: 6.098 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.2105, allocations: 0.7117 MB / 0.7284 GB, free: 5.359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.01e-05/0.2106, allocations: 0 / 0.7284 GB, free: 5.359 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.2106, allocations: 31.42 kB / 0.7284 GB, free: 5.332 MB / 0.545 GB Notification: Performance of SimCode: time 4.91e-07/0.2106, allocations: 3.938 kB / 0.7284 GB, free: 5.328 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03379/0.2444, allocations: 3.998 MB / 0.7323 GB, free: 1.477 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.21, allocations: 8.062 kB / 0.7324 GB, free: 1.469 MB / 0.545 GB " [Timeout remaining time 649] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.87201301380992] Failed to read output from testmodel.py, exit status != 0: 11.316915692063048 11.341104342 11.133697681 Calling exit ...