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: translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004716/0.004716, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001076/0.001076, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.286/1.286, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.9617/0.9617, allocations: 143 MB / 433.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 67.89 kB / 0.5955 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.4289, allocations: 82.03 MB / 0.6756 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001546/0.4305, allocations: 0.512 MB / 0.6761 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.4322, allocations: 1.618 MB / 0.6777 GB, free: 28 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.898e-05/0.4322, allocations: 3.938 kB / 0.6777 GB, free: 24 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.4324, allocations: 55.69 kB / 0.6777 GB, free: 0 / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.844e-05/0.4325, allocations: 32.89 kB / 0.6778 GB, free: 15.98 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.0008257/0.4333, allocations: 251.3 kB / 0.678 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.485e-05/0.4334, allocations: 33.86 kB / 0.678 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.4334, allocations: 6.062 kB / 0.678 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.728e-05/0.4335, allocations: 23.22 kB / 0.6781 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.4336, allocations: 35.95 kB / 0.6781 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.4336, allocations: 5.094 kB / 0.6781 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004962/0.4341, allocations: 337.9 kB / 0.6784 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.012e-05/0.4341, allocations: 21.45 kB / 0.6785 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.4342, allocations: 25.03 kB / 0.6785 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003687/0.4346, allocations: 294 kB / 0.6788 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.4346, allocations: 3.938 kB / 0.6788 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4346, allocations: 5.438 kB / 0.6788 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.002e-05/0.4346, allocations: 0 / 0.6788 GB, free: 15.39 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.0004434/0.435, allocations: 431 kB / 0.6792 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.4351, allocations: 9 kB / 0.6792 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.638e-05/0.4351, allocations: 13 kB / 0.6792 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.4353, allocations: 190.6 kB / 0.6794 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.4353, allocations: 1.719 kB / 0.6794 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.4354, allocations: 384 / 0.6794 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.4355, allocations: 50.94 kB / 0.6794 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.4355, allocations: 0 / 0.6794 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.4355, allocations: 0.7812 kB / 0.6794 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.4355, allocations: 0 / 0.6794 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.794e-05/0.4356, allocations: 23.48 kB / 0.6795 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002609/0.4358, allocations: 176.4 kB / 0.6796 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.898e-05/0.4359, allocations: 34.94 kB / 0.6797 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.642e-05/0.4359, allocations: 16.77 kB / 0.6797 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.436, allocations: 9.484 kB / 0.6797 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.436, allocations: 35.59 kB / 0.6797 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.436, allocations: 0 / 0.6797 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001678/0.4362, allocations: 71.09 kB / 0.6798 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.4363, allocations: 51.41 kB / 0.6798 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.4365, allocations: 213.8 kB / 0.68 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.4365, allocations: 25.83 kB / 0.6801 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.4367, allocations: 113.9 kB / 0.6802 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.4367, allocations: 1.312 kB / 0.6802 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.52e-05/0.4367, allocations: 28.33 kB / 0.6802 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4368, allocations: 324.1 kB / 0.6805 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.035e-05/0.4369, allocations: 50.83 kB / 0.6806 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.271e-05/0.437, allocations: 60.12 kB / 0.6806 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.4371, allocations: 90.72 kB / 0.6807 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4371, allocations: 3.938 kB / 0.6807 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002057/0.4373, allocations: 172.3 kB / 0.6809 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.4374, allocations: 10.12 kB / 0.6809 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.4374, allocations: 3.938 kB / 0.6809 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.4374, allocations: 0.875 kB / 0.6809 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.396e-05/0.4374, allocations: 1.031 kB / 0.6809 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.4374, allocations: 0 / 0.6809 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.736e-05/0.4375, allocations: 6.25 kB / 0.6809 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.4375, allocations: 5.203 kB / 0.6809 GB, free: 13.47 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: 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.0001579/0.4376, allocations: 142.1 kB / 0.681 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.4377, allocations: 14.19 kB / 0.681 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.4378, allocations: 61.62 kB / 0.6811 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4378, allocations: 0 / 0.6811 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4378, allocations: 4.969 kB / 0.6811 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4378, allocations: 0 / 0.6811 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.4379, allocations: 188.7 kB / 0.6813 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4379, allocations: 1.594 kB / 0.6813 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-06/0.438, allocations: 0 / 0.6813 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.438, allocations: 7.906 kB / 0.6813 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.438, allocations: 5.25 kB / 0.6813 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.438, allocations: 0 / 0.6813 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.438, allocations: 0 / 0.6813 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.356e-05/0.4381, allocations: 80.28 kB / 0.6814 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.4381, allocations: 96.25 kB / 0.6815 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.4382, allocations: 0 / 0.6815 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.313e-05/0.4382, allocations: 1.094 kB / 0.6815 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.218e-05/0.4382, allocations: 5.094 kB / 0.6815 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.4382, allocations: 0 / 0.6815 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001209/0.4383, allocations: 146.6 kB / 0.6816 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4383, allocations: 0 / 0.6816 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003616/0.4387, allocations: 84.67 kB / 0.6817 GB, free: 12.75 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.0005128/0.4392, allocations: 235.1 kB / 0.6819 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.4394, allocations: 125.4 kB / 0.682 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4394, allocations: 0 / 0.682 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.813e-05/0.4395, allocations: 12.7 kB / 0.682 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.4396, allocations: 6.469 kB / 0.6821 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003211/0.4399, allocations: 204.7 kB / 0.6823 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.4402, allocations: 0.7087 MB / 0.6829 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.679e-05/0.4402, allocations: 2.562 kB / 0.6829 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.4402, allocations: 8.688 kB / 0.683 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of SimCode: time 1.553e-06/0.4403, allocations: 0 / 0.683 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of Templates: time 0.004545/0.4448, allocations: 2.124 MB / 0.685 GB, free: 10.56 MB / 0.5137 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)