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.005205/0.005205, allocations: 98.19 kB / 15.73 MB, free: 6.012 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.001153/0.001153, allocations: 197 kB / 16.67 MB, free: 5.949 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.9834/0.9834, allocations: 143 MB / 433.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.91 kB / 0.5955 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.4323, allocations: 82.03 MB / 0.6756 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001498/0.4338, allocations: 0.5072 MB / 0.6761 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.4357, allocations: 1.612 MB / 0.6777 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.256e-05/0.4358, allocations: 5.344 kB / 0.6777 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.4359, allocations: 16.12 kB / 0.6777 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.641e-05/0.436, allocations: 13.45 kB / 0.6777 GB, free: 15.8 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.0008865/0.4369, allocations: 245.3 kB / 0.6779 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.267e-05/0.437, allocations: 23.56 kB / 0.678 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.437, allocations: 2.188 kB / 0.678 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.375e-05/0.437, allocations: 13.7 kB / 0.678 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.332e-05/0.4371, allocations: 16.86 kB / 0.678 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.4371, allocations: 1.031 kB / 0.678 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005483/0.4377, allocations: 341.3 kB / 0.6783 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.514e-05/0.4377, allocations: 18.33 kB / 0.6783 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.684e-05/0.4378, allocations: 19.86 kB / 0.6784 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.4382, allocations: 276.5 kB / 0.6786 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4382, allocations: 3.984 kB / 0.6786 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.32e-07/0.4382, allocations: 5 kB / 0.6786 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.4382, allocations: 0 / 0.6786 GB, free: 15.25 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.0004245/0.4386, allocations: 406.3 kB / 0.679 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.4387, allocations: 10.12 kB / 0.679 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.4387, allocations: 15.05 kB / 0.679 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.4389, allocations: 189.9 kB / 0.6792 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.4389, allocations: 5.422 kB / 0.6792 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.4389, allocations: 5.562 kB / 0.6792 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.138e-05/0.439, allocations: 45 kB / 0.6793 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.439, allocations: 0 / 0.6793 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.439, allocations: 1.281 kB / 0.6793 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.439, allocations: 0 / 0.6793 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.034e-05/0.4391, allocations: 13.12 kB / 0.6793 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.4393, allocations: 174.1 kB / 0.6795 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.137e-05/0.4393, allocations: 30.22 kB / 0.6795 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.166e-05/0.4393, allocations: 12.2 kB / 0.6795 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.4394, allocations: 4.469 kB / 0.6795 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.4394, allocations: 35.59 kB / 0.6795 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.4394, allocations: 0 / 0.6795 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001522/0.4396, allocations: 74.47 kB / 0.6796 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.4396, allocations: 51.41 kB / 0.6797 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.4398, allocations: 168.2 kB / 0.6798 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.4398, allocations: 26.92 kB / 0.6798 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.671e-05/0.4399, allocations: 99.38 kB / 0.6799 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.011e-05/0.4399, allocations: 0 / 0.6799 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.4399, allocations: 26.86 kB / 0.68 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.44, allocations: 322.4 kB / 0.6803 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.156e-05/0.4401, allocations: 41.27 kB / 0.6803 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.508e-05/0.4401, allocations: 40.45 kB / 0.6803 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.187e-05/0.4402, allocations: 64.61 kB / 0.6804 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4402, allocations: 1.156 kB / 0.6804 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001771/0.4404, allocations: 138.5 kB / 0.6805 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.4404, allocations: 9.812 kB / 0.6805 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.4405, allocations: 1.188 kB / 0.6806 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.4405, allocations: 1.094 kB / 0.6806 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.215e-05/0.4405, allocations: 0 / 0.6806 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.4405, allocations: 1.188 kB / 0.6806 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.326e-05/0.4405, allocations: 13.08 kB / 0.6806 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.4406, allocations: 1.125 kB / 0.6806 GB, free: 13.41 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.000126/0.4407, allocations: 120.8 kB / 0.6807 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.4407, allocations: 11.11 kB / 0.6807 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.4408, allocations: 60.39 kB / 0.6807 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4408, allocations: 0 / 0.6807 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4408, allocations: 1.062 kB / 0.6808 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4409, allocations: 4.031 kB / 0.6808 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.441, allocations: 174.9 kB / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.441, allocations: 3.938 kB / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.29e-06/0.441, allocations: 1.094 kB / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.441, allocations: 3.938 kB / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.441, allocations: 1.125 kB / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.441, allocations: 0 / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.441, allocations: 1.344 kB / 0.6809 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.571e-05/0.4411, allocations: 76.2 kB / 0.681 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.4412, allocations: 91.41 kB / 0.6811 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.4412, allocations: 4 kB / 0.6811 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.242e-05/0.4412, allocations: 1.219 kB / 0.6811 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.4412, allocations: 3.984 kB / 0.6811 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.4413, allocations: 1.219 kB / 0.6811 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.889e-05/0.4414, allocations: 121.8 kB / 0.6812 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4414, allocations: 3.938 kB / 0.6812 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003328/0.4417, allocations: 88.05 kB / 0.6813 GB, free: 12.71 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.0004948/0.4422, allocations: 241.1 kB / 0.6815 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001853/0.4424, allocations: 96.92 kB / 0.6816 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4424, allocations: 0 / 0.6816 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.783e-05/0.4424, allocations: 12.19 kB / 0.6816 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.4426, allocations: 9.125 kB / 0.6816 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002746/0.4429, allocations: 168.2 kB / 0.6818 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.4432, allocations: 0.6901 MB / 0.6825 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.992e-05/0.4432, allocations: 6.453 kB / 0.6825 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.426e-05/0.4432, allocations: 8.531 kB / 0.6825 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of SimCode: time 3.51e-07/0.4432, allocations: 0 / 0.6825 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of Templates: time 0.005161/0.4484, allocations: 2.093 MB / 0.6845 GB, free: 10.57 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)