Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.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.001592/0.001592, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001504/0.001504, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.8932/0.8932, allocations: 145 MB / 458.2 MB, free: 15.3 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_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",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.001958/0.001958, allocations: 62.73 kB / 0.6338 GB, free: 6.762 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1648, allocations: 87.9 MB / 0.7197 GB, free: 14.89 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001632/0.1664, allocations: 0.5056 MB / 0.7202 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002321/0.1687, allocations: 1.607 MB / 0.7217 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.53e-05/0.1688, allocations: 7.938 kB / 0.7217 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.1689, allocations: 15.92 kB / 0.7217 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.43e-05/0.1689, allocations: 15.92 kB / 0.7218 GB, free: 12.72 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.0008713/0.1698, allocations: 267.2 kB / 0.722 GB, free: 12.46 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.969e-05/0.1699, allocations: 19.97 kB / 0.722 GB, free: 12.44 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.373e-05/0.1699, allocations: 4 kB / 0.722 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.925e-05/0.1699, allocations: 11.98 kB / 0.722 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.596e-05/0.17, allocations: 27.91 kB / 0.7221 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.17, allocations: 0 / 0.7221 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007327/0.1707, allocations: 463.2 kB / 0.7225 GB, free: 11.94 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.208e-05/0.1708, allocations: 23.92 kB / 0.7225 GB, free: 11.92 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.1708, allocations: 11.88 kB / 0.7225 GB, free: 11.91 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004312/0.1712, allocations: 287.2 kB / 0.7228 GB, free: 11.62 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1712, allocations: 0 / 0.7228 GB, free: 11.62 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1712, allocations: 0 / 0.7228 GB, free: 11.62 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.1712, allocations: 0 / 0.7228 GB, free: 11.62 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.000424/0.1716, allocations: 333.5 kB / 0.7231 GB, free: 11.27 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1717, allocations: 16.03 kB / 0.7232 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.354e-05/0.1717, allocations: 192 / 0.7232 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.078e-05/0.1717, allocations: 34.75 kB / 0.7232 GB, free: 11.21 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.1717, allocations: 12.83 kB / 0.7232 GB, free: 11.2 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.1719, allocations: 126.4 kB / 0.7233 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.709e-06/0.1719, allocations: 4.375 kB / 0.7233 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.1719, allocations: 384 / 0.7233 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.247e-05/0.172, allocations: 41.62 kB / 0.7234 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.172, allocations: 3.984 kB / 0.7234 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-06/0.172, allocations: 0 / 0.7234 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.172, allocations: 0 / 0.7234 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.889e-05/0.1721, allocations: 20 kB / 0.7234 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001777/0.1722, allocations: 152.7 kB / 0.7235 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.714e-05/0.1723, allocations: 22.58 kB / 0.7236 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.483e-05/0.1723, allocations: 16.91 kB / 0.7236 GB, free: 10.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.1723, allocations: 11.94 kB / 0.7236 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.1724, allocations: 30.56 kB / 0.7236 GB, free: 10.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1724, allocations: 0 / 0.7236 GB, free: 10.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.1725, allocations: 69.56 kB / 0.7237 GB, free: 10.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.1726, allocations: 51.41 kB / 0.7237 GB, free: 10.55 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.1727, allocations: 173.5 kB / 0.7239 GB, free: 10.37 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1727, allocations: 29.7 kB / 0.7239 GB, free: 10.34 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.1728, allocations: 92.09 kB / 0.724 GB, free: 10.24 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-06/0.1728, allocations: 4 kB / 0.724 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.1729, allocations: 29.7 kB / 0.724 GB, free: 10.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.173, allocations: 322.8 kB / 0.7244 GB, free: 9.879 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.414e-05/0.1731, allocations: 35.98 kB / 0.7244 GB, free: 9.844 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.401e-05/0.1731, allocations: 35.98 kB / 0.7244 GB, free: 9.809 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.664e-05/0.1732, allocations: 68.83 kB / 0.7245 GB, free: 9.738 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1732, allocations: 0 / 0.7245 GB, free: 9.738 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000167/0.1734, allocations: 129.5 kB / 0.7246 GB, free: 9.605 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.1734, allocations: 8.062 kB / 0.7246 GB, free: 9.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.1734, allocations: 7.922 kB / 0.7246 GB, free: 9.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.1734, allocations: 0 / 0.7246 GB, free: 9.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.017e-05/0.1734, allocations: 4 kB / 0.7246 GB, free: 9.586 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1734, allocations: 0 / 0.7246 GB, free: 9.586 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.582e-05/0.1734, allocations: 7.891 kB / 0.7246 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1735, allocations: 4 kB / 0.7246 GB, free: 9.574 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001456/0.1736, allocations: 125 kB / 0.7248 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/0.1736, allocations: 11.89 kB / 0.7248 GB, free: 9.434 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.1737, allocations: 65.48 kB / 0.7248 GB, free: 9.359 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1737, allocations: 3.938 kB / 0.7248 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1737, allocations: 0 / 0.7248 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1737, allocations: 0 / 0.7248 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.1739, allocations: 136.8 kB / 0.725 GB, free: 9.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.1739, allocations: 7.875 kB / 0.725 GB, free: 9.172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-06/0.1739, allocations: 0 / 0.725 GB, free: 9.172 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1739, allocations: 0 / 0.725 GB, free: 9.172 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.1739, allocations: 7.984 kB / 0.725 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1739, allocations: 0 / 0.725 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1739, allocations: 0 / 0.725 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.726e-05/0.174, allocations: 77.14 kB / 0.7251 GB, free: 9.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.174, allocations: 15.83 kB / 0.7251 GB, free: 9.055 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.174, allocations: 4 kB / 0.7251 GB, free: 9.051 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.178e-05/0.174, allocations: 0 / 0.7251 GB, free: 9.051 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.323e-05/0.174, allocations: 4 kB / 0.7251 GB, free: 9.047 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.174, allocations: 4 kB / 0.7251 GB, free: 9.043 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.993e-05/0.1741, allocations: 119.2 kB / 0.7252 GB, free: 8.926 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1741, allocations: 4 kB / 0.7252 GB, free: 8.922 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003257/0.1744, allocations: 91.73 kB / 0.7253 GB, free: 8.832 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.0008415/0.1753, allocations: 0.7441 MB / 0.726 GB, free: 8.086 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001637/0.1755, allocations: 93.67 kB / 0.7261 GB, free: 7.988 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1755, allocations: 0 / 0.7261 GB, free: 7.988 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.116e-05/0.1755, allocations: 15.94 kB / 0.7261 GB, free: 7.973 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.1756, allocations: 4.156 kB / 0.7261 GB, free: 7.969 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.1771, allocations: 1.545 MB / 0.7276 GB, free: 6.344 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.17e-05/0.1772, allocations: 83.02 kB / 0.7277 GB, free: 6.242 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.926e-05/0.1772, allocations: 3.984 kB / 0.7277 GB, free: 6.238 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.204e-05/0.1772, allocations: 15.44 kB / 0.7277 GB, free: 6.223 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.1772, allocations: 0 / 0.7277 GB, free: 6.223 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.2016, allocations: 3.685 MB / 0.7313 GB, free: 2.699 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.56, allocations: 9.938 kB / 0.7313 GB, free: 2.691 MB / 0.545 GB " [Timeout remaining time 648] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.299670923035592] Failed to read output from testmodel.py, exit status != 0: 11.724156375043094 11.743040028 11.568717637 Calling exit ...