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.004027/0.004027, 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.0009596/0.0009596, 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.986/0.986, allocations: 143 MB / 433.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 71.88 kB / 0.5955 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4342/0.4356, allocations: 82.02 MB / 0.6756 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00182/0.4375, allocations: 0.5199 MB / 0.6761 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002374/0.4399, allocations: 1.617 MB / 0.6777 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.661e-05/0.4399, allocations: 1.031 kB / 0.6777 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.4401, allocations: 24.81 kB / 0.6777 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.607e-05/0.4402, allocations: 9.375 kB / 0.6777 GB, free: 15.76 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.0011/0.4413, allocations: 241.6 kB / 0.6779 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.571e-05/0.4413, allocations: 23.3 kB / 0.678 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.4414, allocations: 2.219 kB / 0.678 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.507e-05/0.4414, allocations: 13.8 kB / 0.678 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.14e-05/0.4415, allocations: 23.84 kB / 0.678 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.4415, allocations: 1.406 kB / 0.678 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006982/0.4422, allocations: 337.8 kB / 0.6783 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.305e-05/0.4423, allocations: 17.7 kB / 0.6783 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.6e-05/0.4423, allocations: 19.61 kB / 0.6784 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005729/0.4429, allocations: 275.1 kB / 0.6786 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.4429, allocations: 1.312 kB / 0.6786 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4429, allocations: 0 / 0.6786 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.4429, allocations: 0 / 0.6786 GB, free: 15.2 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.0005356/0.4435, allocations: 410.8 kB / 0.679 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.4435, allocations: 10 kB / 0.679 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.4436, allocations: 6.219 kB / 0.679 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.4437, allocations: 187.6 kB / 0.6792 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.4438, allocations: 384 / 0.6792 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.4438, allocations: 1.531 kB / 0.6792 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.4439, allocations: 41.83 kB / 0.6793 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4439, allocations: 0 / 0.6793 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.4439, allocations: 1.25 kB / 0.6793 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.4439, allocations: 4 kB / 0.6793 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.261e-05/0.444, allocations: 16.7 kB / 0.6793 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002083/0.4442, allocations: 174.7 kB / 0.6794 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.509e-05/0.4443, allocations: 30.45 kB / 0.6795 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.862e-05/0.4443, allocations: 16.22 kB / 0.6795 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.4443, allocations: 4.219 kB / 0.6795 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.4444, allocations: 35.44 kB / 0.6795 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.4444, allocations: 4 kB / 0.6795 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001564/0.4445, allocations: 62.53 kB / 0.6796 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.4446, allocations: 51.41 kB / 0.6796 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.4448, allocations: 168.6 kB / 0.6798 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.4448, allocations: 26.89 kB / 0.6798 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.33e-05/0.4449, allocations: 103.4 kB / 0.6799 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.243e-05/0.4449, allocations: 7.844 kB / 0.6799 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/0.4449, allocations: 26.89 kB / 0.68 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4451, allocations: 323.1 kB / 0.6803 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.698e-05/0.4451, allocations: 40.25 kB / 0.6803 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.529e-05/0.4452, allocations: 41.7 kB / 0.6803 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.771e-05/0.4453, allocations: 59.84 kB / 0.6804 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4453, allocations: 0 / 0.6804 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001633/0.4455, allocations: 127.8 kB / 0.6805 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4455, allocations: 9.531 kB / 0.6805 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.4455, allocations: 1.031 kB / 0.6805 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.4455, allocations: 1.125 kB / 0.6805 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.489e-05/0.4455, allocations: 8 kB / 0.6805 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.4456, allocations: 5.078 kB / 0.6805 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.4456, allocations: 5.312 kB / 0.6805 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.4456, allocations: 0.9688 kB / 0.6805 GB, free: 13.38 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.00014/0.4457, allocations: 121.8 kB / 0.6807 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.4458, allocations: 9.875 kB / 0.6807 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.4459, allocations: 57.25 kB / 0.6807 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4459, allocations: 4.031 kB / 0.6807 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4459, allocations: 3.984 kB / 0.6807 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4459, allocations: 1.125 kB / 0.6807 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.4461, allocations: 178.2 kB / 0.6809 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4461, allocations: 0 / 0.6809 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-06/0.4461, allocations: 1.25 kB / 0.6809 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.4461, allocations: 3.938 kB / 0.6809 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.4461, allocations: 1.219 kB / 0.6809 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.4461, allocations: 0 / 0.6809 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4461, allocations: 7.922 kB / 0.6809 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.061e-05/0.4462, allocations: 80.91 kB / 0.681 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.4463, allocations: 87.14 kB / 0.6811 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.4463, allocations: 1.219 kB / 0.6811 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.263e-05/0.4463, allocations: 0 / 0.6811 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.725e-05/0.4463, allocations: 5.094 kB / 0.6811 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.4463, allocations: 0 / 0.6811 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.221e-05/0.4464, allocations: 125.4 kB / 0.6812 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.715e-06/0.4464, allocations: 32 / 0.6812 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004576/0.4469, allocations: 92.08 kB / 0.6813 GB, free: 12.68 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.0005988/0.4475, allocations: 219.6 kB / 0.6815 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.4477, allocations: 100.8 kB / 0.6816 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4477, allocations: 4.062 kB / 0.6816 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.96e-05/0.4477, allocations: 11.61 kB / 0.6816 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001581/0.4479, allocations: 11.28 kB / 0.6816 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003232/0.4482, allocations: 160.5 kB / 0.6818 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.4485, allocations: 0.6904 MB / 0.6825 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.308e-05/0.4486, allocations: 5.266 kB / 0.6825 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.603e-05/0.4486, allocations: 8.562 kB / 0.6825 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of SimCode: time 2.11e-07/0.4486, allocations: 1.25 kB / 0.6825 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of Templates: time 0.00554/0.4541, allocations: 2.096 MB / 0.6845 GB, free: 10.55 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)