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) 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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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: translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 110.7 kB / 16.41 MB, free: 6.492 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.0009291/0.0009291, allocations: 187 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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.6.0/package.mo): time 0.7958/0.7958, allocations: 143.1 MB / 434.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 56.66 kB / 0.5962 GB, free: 12.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1345, allocations: 82.04 MB / 0.6763 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001588/0.1361, allocations: 0.5092 MB / 0.6768 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002118/0.1383, allocations: 1.614 MB / 0.6783 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.12e-05/0.1383, allocations: 4 kB / 0.6784 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.1385, allocations: 15.92 kB / 0.6784 GB, free: 8.211 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.462e-05/0.1385, allocations: 11.98 kB / 0.6784 GB, free: 8.199 MB / 0.5137 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/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.0008566/0.1394, allocations: 254.5 kB / 0.6786 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 6.37e-05/0.1395, allocations: 19.98 kB / 0.6786 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.715e-05/0.1395, allocations: 0 / 0.6786 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.971e-05/0.1395, allocations: 15.92 kB / 0.6787 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 3.741e-05/0.1396, allocations: 19.91 kB / 0.6787 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.1396, allocations: 0 / 0.6787 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005132/0.1401, allocations: 335.5 kB / 0.679 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 4.222e-05/0.1402, allocations: 15.94 kB / 0.679 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.831e-05/0.1402, allocations: 27.78 kB / 0.679 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.1406, allocations: 283.4 kB / 0.6793 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1406, allocations: 0 / 0.6793 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1406, allocations: 0 / 0.6793 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.1406, allocations: 0 / 0.6793 GB, free: 7.25 MB / 0.5137 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.0004066/0.141, allocations: 406.1 kB / 0.6797 GB, free: 6.809 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.1411, allocations: 8.031 kB / 0.6797 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.052e-05/0.1411, allocations: 12.84 kB / 0.6797 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.1412, allocations: 185.6 kB / 0.6799 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.1413, allocations: 384 / 0.6799 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.1413, allocations: 4.375 kB / 0.6799 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.678e-05/0.1414, allocations: 38.02 kB / 0.6799 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1414, allocations: 3.984 kB / 0.6799 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.1414, allocations: 0 / 0.6799 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1414, allocations: 0 / 0.6799 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/0.1414, allocations: 23.92 kB / 0.68 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.1416, allocations: 173.6 kB / 0.6801 GB, free: 6.277 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.485e-05/0.1417, allocations: 26.58 kB / 0.6801 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.139e-05/0.1417, allocations: 24.84 kB / 0.6802 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.1417, allocations: 4 kB / 0.6802 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.1418, allocations: 34.5 kB / 0.6802 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1418, allocations: 0 / 0.6802 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001333/0.1419, allocations: 61.53 kB / 0.6803 GB, free: 6.102 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.1419, allocations: 51.41 kB / 0.6803 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1421, allocations: 176.4 kB / 0.6805 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1421, allocations: 29.83 kB / 0.6805 GB, free: 5.824 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/0.1422, allocations: 100.1 kB / 0.6806 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.789e-06/0.1422, allocations: 0 / 0.6806 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.1422, allocations: 25.7 kB / 0.6806 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1423, allocations: 318.8 kB / 0.6809 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.41e-05/0.1424, allocations: 39.98 kB / 0.681 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.738e-05/0.1424, allocations: 39.97 kB / 0.681 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.127e-05/0.1425, allocations: 68.78 kB / 0.6811 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1425, allocations: 8.031 kB / 0.6811 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001386/0.1426, allocations: 125.5 kB / 0.6812 GB, free: 5.086 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.1427, allocations: 7.938 kB / 0.6812 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.1427, allocations: 4 kB / 0.6812 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1427, allocations: 0 / 0.6812 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.257e-05/0.1427, allocations: 0 / 0.6812 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.1427, allocations: 0 / 0.6812 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.908e-05/0.1428, allocations: 19.77 kB / 0.6812 GB, free: 5.055 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.1428, allocations: 0 / 0.6812 GB, free: 5.055 MB / 0.5137 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.0001184/0.1429, allocations: 129.9 kB / 0.6814 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.205e-05/0.1429, allocations: 7.844 kB / 0.6814 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.143, allocations: 57.5 kB / 0.6814 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.143, allocations: 0 / 0.6814 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.143, allocations: 0 / 0.6814 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.143, allocations: 0 / 0.6814 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.1432, allocations: 173.7 kB / 0.6816 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1432, allocations: 0 / 0.6816 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.869e-06/0.1432, allocations: 0 / 0.6816 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1432, allocations: 7.969 kB / 0.6816 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-06/0.1432, allocations: 0 / 0.6816 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1432, allocations: 0 / 0.6816 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1432, allocations: 4 kB / 0.6816 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.026e-05/0.1433, allocations: 81.02 kB / 0.6817 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.224e-05/0.1433, allocations: 88.95 kB / 0.6818 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.1433, allocations: 0 / 0.6818 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.1434, allocations: 3.938 kB / 0.6818 GB, free: 4.41 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.1434, allocations: 4.031 kB / 0.6818 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-06/0.1434, allocations: 3.938 kB / 0.6818 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.316e-05/0.1435, allocations: 124 kB / 0.6819 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1435, allocations: 0 / 0.6819 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003011/0.1438, allocations: 83.98 kB / 0.682 GB, free: 4.199 MB / 0.5137 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.0004428/0.1442, allocations: 236.6 kB / 0.6822 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.1444, allocations: 101.7 kB / 0.6823 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1444, allocations: 0 / 0.6823 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.1444, allocations: 11.98 kB / 0.6823 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.1445, allocations: 4 kB / 0.6823 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.1448, allocations: 190.9 kB / 0.6825 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.145, allocations: 0.6963 MB / 0.6832 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.613e-05/0.1451, allocations: 11.44 kB / 0.6832 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of SimCode: time 2.1e-07/0.1451, allocations: 0 / 0.6832 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of Templates: time 0.003985/0.1491, allocations: 2.259 MB / 0.6854 GB, free: 0.6445 MB / 0.5137 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)