Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 90] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 114.2 kB / 17.33 MB, free: 5.008 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.001346/0.001346, allocations: 197.8 kB / 18.33 MB, free: 4.016 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.486/1.486, allocations: 225.6 MB / 244.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8395/0.8395, allocations: 128.4 MB / 426.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 62.27 kB / 0.5911 GB, free: 21.67 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1914, allocations: 83.26 MB / 0.6724 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001843/0.1933, allocations: 0.5165 MB / 0.6729 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002513/0.1958, allocations: 1.632 MB / 0.6745 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.1958, allocations: 0 / 0.6745 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.196, allocations: 23.91 kB / 0.6746 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.832e-05/0.196, allocations: 11.92 kB / 0.6746 GB, free: 1.832 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/IBPSA 4.0.0-master/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.0008851/0.1969, allocations: 243.3 kB / 0.6748 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.03e-05/0.197, allocations: 27.91 kB / 0.6748 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.531e-05/0.197, allocations: 0 / 0.6748 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.563e-05/0.1971, allocations: 15.92 kB / 0.6748 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.763e-05/0.1971, allocations: 19.91 kB / 0.6749 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1971, allocations: 0 / 0.6749 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006331/0.1977, allocations: 371.4 kB / 0.6752 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.1978, allocations: 15.92 kB / 0.6752 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.022e-05/0.1978, allocations: 19.88 kB / 0.6752 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004132/0.1982, allocations: 275.2 kB / 0.6755 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1982, allocations: 0 / 0.6755 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1983, allocations: 0 / 0.6755 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.1983, allocations: 0 / 0.6755 GB, free: 0.8633 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.0005245/0.1988, allocations: 418.6 kB / 0.6759 GB, free: 416 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1988, allocations: 12.03 kB / 0.6759 GB, free: 404 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.1989, allocations: 8.828 kB / 0.6759 GB, free: 396 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.199, allocations: 180.3 kB / 0.6761 GB, free: 176 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-06/0.1991, allocations: 4.375 kB / 0.6761 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.1991, allocations: 384 / 0.6761 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1992, allocations: 42 kB / 0.6761 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1992, allocations: 0 / 0.6761 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.1992, allocations: 0 / 0.6761 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1992, allocations: 7.938 kB / 0.6762 GB, free: 116 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.885e-05/0.1992, allocations: 12 kB / 0.6762 GB, free: 104 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002165/0.1994, allocations: 173.6 kB / 0.6763 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 6.626e-05/0.1995, allocations: 38.5 kB / 0.6764 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.324e-05/0.1995, allocations: 12.92 kB / 0.6764 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.1996, allocations: 4 kB / 0.6764 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1996, allocations: 34.5 kB / 0.6764 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1996, allocations: 0 / 0.6764 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.000157/0.1997, allocations: 61.62 kB / 0.6765 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.1998, allocations: 51.41 kB / 0.6765 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.2, allocations: 188.8 kB / 0.6767 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.2, allocations: 25.7 kB / 0.6767 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.2001, allocations: 88.14 kB / 0.6768 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.138e-05/0.2001, allocations: 3.938 kB / 0.6768 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.2002, allocations: 25.7 kB / 0.6768 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.2003, allocations: 322.8 kB / 0.6771 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.776e-05/0.2004, allocations: 39.98 kB / 0.6772 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.254e-05/0.2004, allocations: 39.98 kB / 0.6772 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.578e-05/0.2005, allocations: 72.91 kB / 0.6773 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2005, allocations: 4 kB / 0.6773 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001633/0.2007, allocations: 125.6 kB / 0.6774 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2007, allocations: 11.92 kB / 0.6774 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.2007, allocations: 4 kB / 0.6774 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.2007, allocations: 0 / 0.6774 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.238e-05/0.2007, allocations: 3.938 kB / 0.6774 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.2007, allocations: 0 / 0.6774 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.326e-05/0.2008, allocations: 7.953 kB / 0.6774 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.2008, allocations: 0 / 0.6774 GB, free: 14.66 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.0001533/0.2009, allocations: 129.9 kB / 0.6776 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.2009, allocations: 7.891 kB / 0.6776 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.201, allocations: 57.55 kB / 0.6776 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.201, allocations: 0 / 0.6776 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.201, allocations: 0 / 0.6776 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.201, allocations: 0 / 0.6776 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.2012, allocations: 173.6 kB / 0.6778 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.2012, allocations: 0 / 0.6778 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-06/0.2012, allocations: 8.016 kB / 0.6778 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.2012, allocations: 3.938 kB / 0.6778 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-06/0.2012, allocations: 3.938 kB / 0.6778 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.2012, allocations: 3.938 kB / 0.6778 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2012, allocations: 0 / 0.6778 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.663e-05/0.2013, allocations: 77.08 kB / 0.6779 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.115e-05/0.2013, allocations: 92.94 kB / 0.678 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.2014, allocations: 0 / 0.678 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.302e-05/0.2014, allocations: 8.016 kB / 0.678 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.2014, allocations: 0 / 0.678 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.2014, allocations: 7.984 kB / 0.678 GB, free: 14 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001048/0.2015, allocations: 119.2 kB / 0.6781 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.2015, allocations: 0 / 0.6781 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003323/0.2018, allocations: 83.8 kB / 0.6782 GB, free: 13.8 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.0005856/0.2024, allocations: 219.1 kB / 0.6784 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001784/0.2026, allocations: 101.6 kB / 0.6785 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2026, allocations: 0 / 0.6785 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.675e-05/0.2026, allocations: 11.94 kB / 0.6785 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.2028, allocations: 6.344 kB / 0.6785 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003035/0.2031, allocations: 173.5 kB / 0.6787 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.2035, allocations: 0.6885 MB / 0.6793 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.519e-05/0.2035, allocations: 4 kB / 0.6793 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.333e-05/0.2035, allocations: 7.438 kB / 0.6794 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.2035, allocations: 0 / 0.6794 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of Templates: time 0.006/0.2095, allocations: 2.099 MB / 0.6814 GB, free: 10.45 MB / 0.5137 GB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480]