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.001295/0.001295, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001503/0.001503, allocations: 213.4 kB / 22.25 MB, free: 4.855 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.805 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.9239/0.9239, allocations: 145 MB / 457.4 MB, free: 15.32 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.002051/0.002051, allocations: 70.88 kB / 0.6331 GB, free: 6.773 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1765, allocations: 87.89 MB / 0.7189 GB, free: 14.9 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001667/0.1782, allocations: 0.5018 MB / 0.7194 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002436/0.1806, allocations: 1.611 MB / 0.721 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.013e-05/0.1806, allocations: 3.938 kB / 0.721 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.1808, allocations: 15.97 kB / 0.721 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.132e-05/0.1808, allocations: 15.92 kB / 0.721 GB, free: 12.73 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.0009289/0.1817, allocations: 263.2 kB / 0.7212 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.049e-05/0.1818, allocations: 23.91 kB / 0.7213 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.1819, allocations: 0 / 0.7213 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.318e-05/0.1819, allocations: 15.98 kB / 0.7213 GB, free: 12.44 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.69e-05/0.1819, allocations: 15.92 kB / 0.7213 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.1819, allocations: 0 / 0.7213 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007149/0.1827, allocations: 435.2 kB / 0.7217 GB, free: 12 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.715e-05/0.1827, allocations: 15.92 kB / 0.7217 GB, free: 11.98 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.1828, allocations: 15.88 kB / 0.7217 GB, free: 11.96 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004347/0.1832, allocations: 291.2 kB / 0.722 GB, free: 11.68 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1832, allocations: 0 / 0.722 GB, free: 11.68 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1832, allocations: 0 / 0.722 GB, free: 11.68 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.1832, allocations: 3.938 kB / 0.722 GB, free: 11.68 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.0004698/0.1837, allocations: 337.5 kB / 0.7223 GB, free: 11.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1837, allocations: 8.031 kB / 0.7224 GB, free: 11.31 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.452e-05/0.1838, allocations: 30.75 kB / 0.7224 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.1838, allocations: 8.891 kB / 0.7224 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.184, allocations: 123.2 kB / 0.7225 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.184, allocations: 4.375 kB / 0.7225 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.184, allocations: 8.359 kB / 0.7225 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.1841, allocations: 41.81 kB / 0.7226 GB, free: 11.06 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1841, allocations: 4 kB / 0.7226 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.1841, allocations: 0 / 0.7226 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1841, allocations: 0 / 0.7226 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.546e-05/0.1842, allocations: 15.98 kB / 0.7226 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.1844, allocations: 144.7 kB / 0.7227 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.977e-05/0.1844, allocations: 30.56 kB / 0.7227 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.513e-05/0.1845, allocations: 12.92 kB / 0.7228 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.1845, allocations: 11.98 kB / 0.7228 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.1846, allocations: 42.5 kB / 0.7228 GB, free: 10.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.1846, allocations: 0 / 0.7228 GB, free: 10.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1847, allocations: 61.58 kB / 0.7229 GB, free: 10.67 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.1848, allocations: 51.41 kB / 0.7229 GB, free: 10.61 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.1849, allocations: 168.9 kB / 0.7231 GB, free: 10.44 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.185, allocations: 33.64 kB / 0.7231 GB, free: 10.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.185, allocations: 96.08 kB / 0.7232 GB, free: 10.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.257e-06/0.185, allocations: 0 / 0.7232 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.1851, allocations: 21.72 kB / 0.7232 GB, free: 10.27 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1852, allocations: 322.8 kB / 0.7235 GB, free: 9.949 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.866e-05/0.1853, allocations: 44.11 kB / 0.7236 GB, free: 9.906 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.553e-05/0.1853, allocations: 35.98 kB / 0.7236 GB, free: 9.871 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.929e-05/0.1854, allocations: 68.83 kB / 0.7237 GB, free: 9.801 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1854, allocations: 0 / 0.7237 GB, free: 9.801 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001593/0.1856, allocations: 137.5 kB / 0.7238 GB, free: 9.66 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1856, allocations: 4 kB / 0.7238 GB, free: 9.656 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.1856, allocations: 4 kB / 0.7238 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1856, allocations: 0 / 0.7238 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.165e-05/0.1856, allocations: 0 / 0.7238 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1856, allocations: 0 / 0.7238 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.924e-05/0.1857, allocations: 15.83 kB / 0.7238 GB, free: 9.637 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1857, allocations: 4.062 kB / 0.7238 GB, free: 9.633 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.0001612/0.1858, allocations: 125.8 kB / 0.724 GB, free: 9.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.1859, allocations: 7.891 kB / 0.724 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.186, allocations: 57.48 kB / 0.724 GB, free: 9.426 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.186, allocations: 3.938 kB / 0.724 GB, free: 9.422 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.186, allocations: 3.938 kB / 0.724 GB, free: 9.418 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.186, allocations: 0 / 0.724 GB, free: 9.418 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.1861, allocations: 148.7 kB / 0.7242 GB, free: 9.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1861, allocations: 0 / 0.7242 GB, free: 9.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.952e-06/0.1861, allocations: 7.969 kB / 0.7242 GB, free: 9.223 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1861, allocations: 0 / 0.7242 GB, free: 9.223 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-06/0.1861, allocations: 0 / 0.7242 GB, free: 9.223 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1861, allocations: 0 / 0.7242 GB, free: 9.223 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1861, allocations: 4 kB / 0.7242 GB, free: 9.219 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.821e-05/0.1862, allocations: 77.11 kB / 0.7242 GB, free: 9.125 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.1862, allocations: 7.891 kB / 0.7243 GB, free: 9.117 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.1863, allocations: 11.98 kB / 0.7243 GB, free: 9.105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.1863, allocations: 0 / 0.7243 GB, free: 9.105 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-06/0.1863, allocations: 0 / 0.7243 GB, free: 9.105 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.1863, allocations: 4.031 kB / 0.7243 GB, free: 9.102 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.711e-05/0.1864, allocations: 130.2 kB / 0.7244 GB, free: 8.977 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.1864, allocations: 0 / 0.7244 GB, free: 8.977 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003143/0.1867, allocations: 83.8 kB / 0.7245 GB, free: 8.895 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.0008541/0.1875, allocations: 0.7617 MB / 0.7252 GB, free: 8.129 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001779/0.1877, allocations: 89.67 kB / 0.7253 GB, free: 8.035 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1877, allocations: 0 / 0.7253 GB, free: 8.035 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.125e-05/0.1877, allocations: 15.92 kB / 0.7253 GB, free: 8.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.1879, allocations: 4 kB / 0.7253 GB, free: 8.016 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.1895, allocations: 1.538 MB / 0.7268 GB, free: 6.398 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.219e-05/0.1895, allocations: 87 kB / 0.7269 GB, free: 6.293 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.741e-05/0.1896, allocations: 0 / 0.7269 GB, free: 6.293 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.1896, allocations: 23.58 kB / 0.7269 GB, free: 6.27 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/0.1896, allocations: 0 / 0.7269 GB, free: 6.27 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03869/0.2283, allocations: 4.005 MB / 0.7308 GB, free: 2.402 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.33, allocations: 10.31 kB / 0.7309 GB, free: 2.398 MB / 0.545 GB " [Timeout remaining time 649] (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.017109080217779] Failed to read output from testmodel.py, exit status != 0: 11.439537086058408 11.469031858 11.280911767 Calling exit ...