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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001558/0.001558, allocations: 189.3 kB / 16.25 MB, free: 6.625 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.386/1.386, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.9415/0.9415, allocations: 143.1 MB / 433.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 0.5138 GB, free: 11.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1608, allocations: 82.04 MB / 0.5939 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001579/0.1624, allocations: 0.5755 MB / 0.5945 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1644, allocations: 1.599 MB / 0.596 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.1644, allocations: 3.938 kB / 0.596 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.1646, allocations: 15.97 kB / 0.596 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.278e-05/0.1646, allocations: 7.984 kB / 0.5961 GB, free: 7.641 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.0007846/0.1654, allocations: 225.4 kB / 0.5963 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.847e-05/0.1654, allocations: 19.95 kB / 0.5963 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.931e-05/0.1655, allocations: 7.938 kB / 0.5963 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.697e-05/0.1655, allocations: 19.92 kB / 0.5963 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.454e-05/0.1655, allocations: 15.92 kB / 0.5963 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.1656, allocations: 4 kB / 0.5963 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004176/0.166, allocations: 283.5 kB / 0.5966 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.341e-05/0.166, allocations: 19.97 kB / 0.5966 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.1661, allocations: 19.8 kB / 0.5966 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.1664, allocations: 275.4 kB / 0.5969 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1664, allocations: 0 / 0.5969 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1664, allocations: 0 / 0.5969 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.1664, allocations: 0 / 0.5969 GB, free: 6.77 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.0003815/0.1668, allocations: 411.4 kB / 0.5973 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.1669, allocations: 15.97 kB / 0.5973 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.461e-05/0.1669, allocations: 34.75 kB / 0.5973 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.325e-05/0.1669, allocations: 4.844 kB / 0.5973 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.1671, allocations: 184.8 kB / 0.5975 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-06/0.1671, allocations: 384 / 0.5975 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1671, allocations: 4.375 kB / 0.5975 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.567e-05/0.1672, allocations: 37.83 kB / 0.5976 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.14e-06/0.1672, allocations: 4 kB / 0.5976 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.68e-06/0.1672, allocations: 0 / 0.5976 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.1672, allocations: 0 / 0.5976 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.558e-05/0.1672, allocations: 19.98 kB / 0.5976 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.1674, allocations: 173.6 kB / 0.5978 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.906e-05/0.1674, allocations: 26.52 kB / 0.5978 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.051e-05/0.1674, allocations: 16.91 kB / 0.5978 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.1675, allocations: 4 kB / 0.5978 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.1675, allocations: 34.5 kB / 0.5978 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.1675, allocations: 0 / 0.5978 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.1676, allocations: 69.53 kB / 0.5979 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.1677, allocations: 59.39 kB / 0.598 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1678, allocations: 164.6 kB / 0.5981 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.1678, allocations: 25.7 kB / 0.5981 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.1679, allocations: 104 kB / 0.5982 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.053e-06/0.1679, allocations: 0 / 0.5982 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.1679, allocations: 29.7 kB / 0.5983 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.602e-05/0.168, allocations: 319 kB / 0.5986 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.864e-05/0.1681, allocations: 43.97 kB / 0.5986 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.995e-05/0.1681, allocations: 43.92 kB / 0.5987 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.064e-05/0.1682, allocations: 64.83 kB / 0.5987 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1682, allocations: 0 / 0.5987 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001379/0.1684, allocations: 129.5 kB / 0.5988 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.1684, allocations: 11.94 kB / 0.5988 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.1684, allocations: 0 / 0.5988 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.1684, allocations: 3.938 kB / 0.5989 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-05/0.1684, allocations: 3.984 kB / 0.5989 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.1684, allocations: 4.062 kB / 0.5989 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.1685, allocations: 11.89 kB / 0.5989 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.1685, allocations: 0 / 0.5989 GB, free: 4.523 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: 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.0001125/0.1686, allocations: 125.8 kB / 0.599 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.1686, allocations: 11.84 kB / 0.599 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.289e-05/0.1687, allocations: 53.56 kB / 0.5991 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1687, allocations: 0 / 0.5991 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1687, allocations: 12.03 kB / 0.5991 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1687, allocations: 3.984 kB / 0.5991 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001091/0.1689, allocations: 169.6 kB / 0.5992 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1689, allocations: 0 / 0.5992 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.492e-06/0.1689, allocations: 3.938 kB / 0.5992 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1689, allocations: 0 / 0.5992 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1689, allocations: 3.984 kB / 0.5992 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1689, allocations: 4 kB / 0.5992 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1689, allocations: 3.984 kB / 0.5992 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.83e-05/0.169, allocations: 77.03 kB / 0.5993 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.169, allocations: 88.95 kB / 0.5994 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.169, allocations: 3.938 kB / 0.5994 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.181e-05/0.1691, allocations: 0 / 0.5994 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.032e-05/0.1691, allocations: 4 kB / 0.5994 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1691, allocations: 0 / 0.5994 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.004e-05/0.1692, allocations: 127 kB / 0.5995 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1692, allocations: 0 / 0.5995 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000303/0.1695, allocations: 83.98 kB / 0.5996 GB, free: 3.664 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.0006441/0.1701, allocations: 0.7532 MB / 0.6003 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001316/0.1703, allocations: 101.7 kB / 0.6004 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.1703, allocations: 0 / 0.6004 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.937e-05/0.1703, allocations: 11.94 kB / 0.6005 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.1705, allocations: 4 kB / 0.6005 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.1716, allocations: 1.532 MB / 0.602 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.1719, allocations: 0.6924 MB / 0.6026 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.777e-05/0.1719, allocations: 4 kB / 0.6026 GB, free: 456 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.477e-05/0.1719, allocations: 15.44 kB / 0.6027 GB, free: 444 kB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1719, allocations: 0 / 0.6027 GB, free: 444 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2095/0.3814, allocations: 3.37 MB / 0.6059 GB, free: 42.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001193/0.3816, allocations: 247.9 kB / 0.6062 GB, free: 42.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.079, allocations: 0 / 0.6062 GB, free: 42.55 MB / 0.4981 GB (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 --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)