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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.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.9985/0.9985, allocations: 143 MB / 433.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.91 kB / 0.5143 GB, free: 11.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.155, allocations: 82.04 MB / 0.5944 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001808/0.1568, allocations: 0.509 MB / 0.5949 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002261/0.1591, allocations: 1.61 MB / 0.5965 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.698e-05/0.1591, allocations: 4 kB / 0.5965 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001928/0.1594, allocations: 59.84 kB / 0.5965 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.975e-05/0.1594, allocations: 31.95 kB / 0.5965 GB, free: 7.297 MB / 0.4981 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.0009813/0.1604, allocations: 249.5 kB / 0.5968 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.154e-05/0.1605, allocations: 35.91 kB / 0.5968 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.807e-05/0.1605, allocations: 0 / 0.5968 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.978e-05/0.1606, allocations: 23.91 kB / 0.5968 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.757e-05/0.1607, allocations: 43.89 kB / 0.5969 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.1607, allocations: 3.984 kB / 0.5969 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005629/0.1613, allocations: 283.6 kB / 0.5972 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.1613, allocations: 31.91 kB / 0.5972 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.59e-05/0.1614, allocations: 19.75 kB / 0.5972 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004849/0.1619, allocations: 287.3 kB / 0.5975 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1619, allocations: 7.984 kB / 0.5975 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1619, allocations: 0 / 0.5975 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.1619, allocations: 0 / 0.5975 GB, free: 6.332 MB / 0.4981 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.0005159/0.1624, allocations: 431.2 kB / 0.5979 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1625, allocations: 12.03 kB / 0.5979 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.1625, allocations: 30.75 kB / 0.5979 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.1626, allocations: 8.844 kB / 0.598 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.1628, allocations: 197.2 kB / 0.5981 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1628, allocations: 384 / 0.5981 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1628, allocations: 12.25 kB / 0.5982 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.1629, allocations: 41.83 kB / 0.5982 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1629, allocations: 0 / 0.5982 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.1629, allocations: 0 / 0.5982 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.163, allocations: 0 / 0.5982 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.619e-05/0.163, allocations: 19.98 kB / 0.5982 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002062/0.1632, allocations: 189.5 kB / 0.5984 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.768e-05/0.1633, allocations: 22.58 kB / 0.5984 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.736e-05/0.1633, allocations: 24.84 kB / 0.5984 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.1634, allocations: 8 kB / 0.5984 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.1634, allocations: 38.5 kB / 0.5985 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.1634, allocations: 0 / 0.5985 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001638/0.1636, allocations: 65.58 kB / 0.5985 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.1636, allocations: 55.34 kB / 0.5986 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.1638, allocations: 212 kB / 0.5988 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.1638, allocations: 29.83 kB / 0.5988 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.1639, allocations: 104.1 kB / 0.5989 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.1639, allocations: 7.906 kB / 0.5989 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.1639, allocations: 29.64 kB / 0.599 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1641, allocations: 330.8 kB / 0.5993 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.384e-05/0.1641, allocations: 55.91 kB / 0.5993 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.586e-05/0.1642, allocations: 51.98 kB / 0.5994 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.458e-05/0.1643, allocations: 91.22 kB / 0.5995 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1643, allocations: 4.031 kB / 0.5995 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001714/0.1645, allocations: 165.4 kB / 0.5996 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.1645, allocations: 4 kB / 0.5996 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.1645, allocations: 0 / 0.5996 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1645, allocations: 0 / 0.5996 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-05/0.1646, allocations: 4 kB / 0.5996 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1646, allocations: 0 / 0.5996 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.637e-05/0.1646, allocations: 3.906 kB / 0.5996 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.1646, allocations: 7.938 kB / 0.5996 GB, free: 3.891 MB / 0.4981 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.000146/0.1648, allocations: 137.8 kB / 0.5998 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.823e-05/0.1648, allocations: 15.75 kB / 0.5998 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.1649, allocations: 62.23 kB / 0.5999 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1649, allocations: 4 kB / 0.5999 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1649, allocations: 3.938 kB / 0.5999 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1649, allocations: 3.984 kB / 0.5999 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.165, allocations: 181.7 kB / 0.6 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1651, allocations: 0 / 0.6 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.492e-06/0.1651, allocations: 3.938 kB / 0.6 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1651, allocations: 4.031 kB / 0.6 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.1651, allocations: 0 / 0.6 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1651, allocations: 0 / 0.6 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1651, allocations: 0 / 0.6 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.771e-05/0.1652, allocations: 88.95 kB / 0.6001 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-05/0.1652, allocations: 92.86 kB / 0.6002 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.1652, allocations: 0 / 0.6002 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.335e-05/0.1653, allocations: 0 / 0.6002 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.1653, allocations: 4.031 kB / 0.6002 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.1653, allocations: 0 / 0.6002 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001107/0.1654, allocations: 151.2 kB / 0.6004 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1654, allocations: 0 / 0.6004 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003416/0.1657, allocations: 87.98 kB / 0.6005 GB, free: 2.965 MB / 0.4981 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.0007466/0.1665, allocations: 0.75 MB / 0.6012 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001836/0.1667, allocations: 129.7 kB / 0.6013 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1667, allocations: 0 / 0.6013 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.642e-05/0.1667, allocations: 8.062 kB / 0.6013 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001566/0.1669, allocations: 12 kB / 0.6013 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.1685, allocations: 1.799 MB / 0.6031 GB, free: 180 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.238/0.4065, allocations: 0.7014 MB / 0.6038 GB, free: 43.96 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.836e-05/0.4065, allocations: 6.406 kB / 0.6038 GB, free: 43.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.157e-05/0.4066, allocations: 21.66 kB / 0.6038 GB, free: 43.96 MB / 0.4981 GB Notification: Performance of SimCode: time 7.71e-07/0.4066, allocations: 0 / 0.6038 GB, free: 43.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01896/0.4256, allocations: 3.861 MB / 0.6076 GB, free: 43.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/7.725, allocations: 4.703 kB / 0.6076 GB, free: 43.57 MB / 0.4981 GB (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 --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)