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.005707/0.005707, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001177/0.001178, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.301 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 1.065/1.065, allocations: 143 MB / 433.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 59.91 kB / 0.5955 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.408, allocations: 82.03 MB / 0.6756 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001429/0.4094, allocations: 0.5139 MB / 0.6761 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001952/0.4114, allocations: 1.618 MB / 0.6777 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.4114, allocations: 3.938 kB / 0.6777 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001702/0.4116, allocations: 56.09 kB / 0.6777 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.502e-05/0.4117, allocations: 31.05 kB / 0.6778 GB, free: 15.71 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.000836/0.4125, allocations: 242 kB / 0.678 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.339e-05/0.4126, allocations: 38.05 kB / 0.678 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.4127, allocations: 6.266 kB / 0.678 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.498e-05/0.4127, allocations: 18.64 kB / 0.6781 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.75e-05/0.4128, allocations: 44.94 kB / 0.6781 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.4128, allocations: 5.25 kB / 0.6781 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005277/0.4133, allocations: 332.8 kB / 0.6784 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.218e-05/0.4134, allocations: 26.52 kB / 0.6784 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.291e-05/0.4134, allocations: 24.78 kB / 0.6785 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.4138, allocations: 293.5 kB / 0.6787 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.4138, allocations: 0 / 0.6787 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.192e-06/0.4138, allocations: 0.9688 kB / 0.6787 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.4139, allocations: 0 / 0.6787 GB, free: 15.12 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.0004194/0.4143, allocations: 427.2 kB / 0.6792 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.4143, allocations: 13.59 kB / 0.6792 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.4144, allocations: 20.19 kB / 0.6792 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.4145, allocations: 194.9 kB / 0.6794 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-06/0.4145, allocations: 1.031 kB / 0.6794 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.4146, allocations: 1.531 kB / 0.6794 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.598e-05/0.4147, allocations: 42.28 kB / 0.6794 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.4147, allocations: 1.156 kB / 0.6794 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.4147, allocations: 0 / 0.6794 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.4147, allocations: 3.938 kB / 0.6794 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.266e-05/0.4147, allocations: 27.64 kB / 0.6794 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.4149, allocations: 179.5 kB / 0.6796 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.533e-05/0.415, allocations: 36.06 kB / 0.6797 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.239e-05/0.415, allocations: 12.55 kB / 0.6797 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.415, allocations: 5.625 kB / 0.6797 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.4151, allocations: 39.64 kB / 0.6797 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.4151, allocations: 0 / 0.6797 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.000141/0.4152, allocations: 69.84 kB / 0.6798 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.4153, allocations: 56.41 kB / 0.6798 GB, free: 14 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.4154, allocations: 209.8 kB / 0.68 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.4155, allocations: 29.7 kB / 0.6801 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.4155, allocations: 101.6 kB / 0.6802 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.4156, allocations: 9.078 kB / 0.6802 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.4156, allocations: 28.95 kB / 0.6802 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4157, allocations: 323.4 kB / 0.6805 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-05/0.4158, allocations: 55.11 kB / 0.6806 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.873e-05/0.4159, allocations: 59.81 kB / 0.6806 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.485e-05/0.416, allocations: 97.88 kB / 0.6807 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.416, allocations: 0 / 0.6807 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001797/0.4162, allocations: 160 kB / 0.6809 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.4162, allocations: 9.406 kB / 0.6809 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.4162, allocations: 9.297 kB / 0.6809 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.4162, allocations: 0 / 0.6809 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.201e-05/0.4162, allocations: 1.156 kB / 0.6809 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.4162, allocations: 64 / 0.6809 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.557e-05/0.4163, allocations: 14.16 kB / 0.6809 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.4163, allocations: 1 kB / 0.6809 GB, free: 13.2 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.0001188/0.4164, allocations: 128 kB / 0.681 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.4164, allocations: 18.3 kB / 0.681 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.4166, allocations: 61.53 kB / 0.6811 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.4166, allocations: 0 / 0.6811 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4166, allocations: 1.094 kB / 0.6811 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.4166, allocations: 8.016 kB / 0.6811 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.4167, allocations: 185.5 kB / 0.6813 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4167, allocations: 0 / 0.6813 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.961e-06/0.4167, allocations: 3.938 kB / 0.6813 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4167, allocations: 8.969 kB / 0.6813 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.4167, allocations: 0 / 0.6813 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.4167, allocations: 1.031 kB / 0.6813 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4168, allocations: 0 / 0.6813 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.136e-05/0.4168, allocations: 87.91 kB / 0.6814 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.4169, allocations: 92.02 kB / 0.6815 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.4169, allocations: 9.078 kB / 0.6815 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.359e-05/0.4169, allocations: 0 / 0.6815 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.417, allocations: 1.062 kB / 0.6815 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.417, allocations: 1.094 kB / 0.6815 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001151/0.4171, allocations: 145.8 kB / 0.6816 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4171, allocations: 0 / 0.6816 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003238/0.4174, allocations: 84.64 kB / 0.6817 GB, free: 12.48 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.0004556/0.4179, allocations: 225.2 kB / 0.6819 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001865/0.4181, allocations: 129.1 kB / 0.682 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4181, allocations: 0 / 0.682 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.792e-05/0.4181, allocations: 12.81 kB / 0.682 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.4183, allocations: 14.14 kB / 0.6821 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002869/0.4186, allocations: 204.6 kB / 0.6822 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.4188, allocations: 0.7051 MB / 0.6829 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.735e-05/0.4188, allocations: 1.438 kB / 0.6829 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.775e-05/0.4189, allocations: 8.688 kB / 0.6829 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of SimCode: time 2.81e-07/0.4189, allocations: 3.938 kB / 0.6829 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of Templates: time 0.004928/0.4238, allocations: 2.119 MB / 0.685 GB, free: 10.3 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)