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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 107.5 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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.6.0-master/package.mo): time 0.8954/0.8954, allocations: 145.2 MB / 447.9 MB, free: 6.324 MB / 350.1 MB " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-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(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: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 70.95 kB / 0.6199 GB, free: 1.379 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1793, allocations: 86.64 MB / 0.7045 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001844/0.1811, allocations: 0.5087 MB / 0.705 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00271/0.1838, allocations: 1.634 MB / 0.7066 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.591e-05/0.1839, allocations: 0 / 0.7066 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.184, allocations: 19.91 kB / 0.7067 GB, free: 8.516 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.583e-05/0.1841, allocations: 7.984 kB / 0.7067 GB, free: 8.508 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.6.0-master/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.0009916/0.185, allocations: 243.3 kB / 0.7069 GB, free: 8.27 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.828e-05/0.1851, allocations: 27.91 kB / 0.7069 GB, free: 8.242 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.286e-05/0.1852, allocations: 4 kB / 0.7069 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.713e-05/0.1852, allocations: 19.92 kB / 0.7069 GB, free: 8.219 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.562e-05/0.1852, allocations: 19.91 kB / 0.707 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.1853, allocations: 0 / 0.707 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006328/0.1859, allocations: 363.4 kB / 0.7073 GB, free: 7.844 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.48e-05/0.1859, allocations: 11.98 kB / 0.7073 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.109e-05/0.186, allocations: 19.81 kB / 0.7073 GB, free: 7.812 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.1864, allocations: 287.4 kB / 0.7076 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1864, allocations: 4 kB / 0.7076 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.014e-06/0.1864, allocations: 0 / 0.7076 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.1864, allocations: 4 kB / 0.7076 GB, free: 7.523 MB / 0.5294 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.0005858/0.187, allocations: 398.7 kB / 0.708 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1871, allocations: 16.02 kB / 0.708 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.1871, allocations: 30.75 kB / 0.708 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.1871, allocations: 8.891 kB / 0.7081 GB, free: 7.023 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1874, allocations: 181.2 kB / 0.7082 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.1874, allocations: 12.31 kB / 0.7082 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.1874, allocations: 4.359 kB / 0.7082 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.1875, allocations: 41.83 kB / 0.7083 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1875, allocations: 0 / 0.7083 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.1875, allocations: 0 / 0.7083 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1875, allocations: 0 / 0.7083 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.204e-05/0.1876, allocations: 15.98 kB / 0.7083 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002189/0.1878, allocations: 173.6 kB / 0.7085 GB, free: 6.512 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.426e-05/0.1878, allocations: 30.5 kB / 0.7085 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.927e-05/0.1879, allocations: 20.91 kB / 0.7085 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.1879, allocations: 11.98 kB / 0.7085 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.1879, allocations: 34.5 kB / 0.7086 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1879, allocations: 0 / 0.7086 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001651/0.1881, allocations: 61.64 kB / 0.7086 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.1882, allocations: 51.41 kB / 0.7087 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.1883, allocations: 176.8 kB / 0.7088 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.1884, allocations: 25.83 kB / 0.7089 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/0.1884, allocations: 104.1 kB / 0.709 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.006e-05/0.1884, allocations: 0 / 0.709 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.825e-05/0.1885, allocations: 29.7 kB / 0.709 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1886, allocations: 318.8 kB / 0.7093 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.355e-05/0.1887, allocations: 43.98 kB / 0.7093 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.094e-05/0.1887, allocations: 39.97 kB / 0.7094 GB, free: 5.512 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.967e-05/0.1888, allocations: 68.83 kB / 0.7094 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1888, allocations: 0 / 0.7094 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001738/0.189, allocations: 133.5 kB / 0.7096 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.189, allocations: 11.94 kB / 0.7096 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.189, allocations: 0 / 0.7096 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.1891, allocations: 0 / 0.7096 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.29e-05/0.1891, allocations: 0 / 0.7096 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.1891, allocations: 4 kB / 0.7096 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.634e-05/0.1891, allocations: 7.891 kB / 0.7096 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.1891, allocations: 3.984 kB / 0.7096 GB, free: 5.277 MB / 0.5294 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.000174/0.1893, allocations: 125.6 kB / 0.7097 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.1893, allocations: 15.89 kB / 0.7097 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.1894, allocations: 53.56 kB / 0.7098 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1894, allocations: 4 kB / 0.7098 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1894, allocations: 0 / 0.7098 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.1894, allocations: 0 / 0.7098 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.1896, allocations: 169.7 kB / 0.7099 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1896, allocations: 0 / 0.7099 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.873e-06/0.1896, allocations: 3.938 kB / 0.7099 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1896, allocations: 0 / 0.7099 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.1896, allocations: 8.031 kB / 0.71 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1896, allocations: 0 / 0.71 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1896, allocations: 0 / 0.71 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.699e-05/0.1897, allocations: 88.94 kB / 0.71 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.1898, allocations: 85 kB / 0.7101 GB, free: 4.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.1898, allocations: 4 kB / 0.7101 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.433e-05/0.1898, allocations: 4 kB / 0.7101 GB, free: 4.629 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.457e-05/0.1898, allocations: 4.031 kB / 0.7101 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.1898, allocations: 0 / 0.7101 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 9.795e-05/0.1899, allocations: 124 kB / 0.7103 GB, free: 4.504 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.1e-08/0.1899, allocations: 0 / 0.7103 GB, free: 4.504 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003877/0.1903, allocations: 87.8 kB / 0.7103 GB, free: 4.418 MB / 0.5294 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.0008969/0.1912, allocations: 0.7428 MB / 0.7111 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0001879/0.1914, allocations: 93.66 kB / 0.7111 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.1914, allocations: 4 kB / 0.7112 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.335e-05/0.1914, allocations: 4 kB / 0.7112 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.1915, allocations: 12.12 kB / 0.7112 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.1932, allocations: 1.529 MB / 0.7127 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.1935, allocations: 0.6924 MB / 0.7133 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 2.413e-05/0.1935, allocations: 0 / 0.7133 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.176e-05/0.1936, allocations: 27.55 kB / 0.7134 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of SimCode: time 7.31e-07/0.1936, allocations: 0 / 0.7134 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.2224, allocations: 3.521 MB / 0.7168 GB, free: 13.78 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.14, allocations: 3.984 kB / 0.7168 GB, free: 13.78 MB / 0.545 GB " [Timeout remaining time 652] (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: 11.69365043612197] Failed to read output from testmodel.py, exit status != 0: 8.207977038808167 8.221835267 8.032619862 Calling exit ...