Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 121.3 kB / 17.81 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 189.4 kB / 20.74 MB, free: 2.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 225.6 MB / 249.2 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.828/0.828, allocations: 128.4 MB / 432.4 MB, free: 13.45 MB / 350.1 MB " [Timeout remaining time 179] 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.97 kB / 0.5987 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4428/0.4448, allocations: 83.25 MB / 0.68 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001889/0.4467, allocations: 0.5235 MB / 0.6805 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002369/0.449, allocations: 1.628 MB / 0.6821 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.503e-05/0.4491, allocations: 0 / 0.6821 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.4493, allocations: 63.47 kB / 0.6822 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.448e-05/0.4493, allocations: 28.89 kB / 0.6822 GB, free: 5.316 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.0009793/0.4503, allocations: 245.4 kB / 0.6824 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.026e-05/0.4504, allocations: 37.8 kB / 0.6824 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.4504, allocations: 5.312 kB / 0.6825 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.699e-05/0.4505, allocations: 23.78 kB / 0.6825 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.4506, allocations: 50.12 kB / 0.6825 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.4506, allocations: 1.688 kB / 0.6825 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000663/0.4512, allocations: 356.4 kB / 0.6829 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.356e-05/0.4513, allocations: 26.02 kB / 0.6829 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.4513, allocations: 25.22 kB / 0.6829 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.4518, allocations: 293.1 kB / 0.6832 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4518, allocations: 1.375 kB / 0.6832 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4518, allocations: 4 kB / 0.6832 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.4518, allocations: 0 / 0.6832 GB, free: 4.699 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.0004675/0.4523, allocations: 441.3 kB / 0.6836 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.4523, allocations: 8.688 kB / 0.6836 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.784e-05/0.4524, allocations: 8.766 kB / 0.6836 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.4525, allocations: 190.5 kB / 0.6838 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.4525, allocations: 384 / 0.6838 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.4526, allocations: 1.188 kB / 0.6838 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.4527, allocations: 51.53 kB / 0.6839 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.4527, allocations: 0 / 0.6839 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.4527, allocations: 3.984 kB / 0.6839 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.4527, allocations: 1.281 kB / 0.6839 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.222e-05/0.4527, allocations: 23.3 kB / 0.6839 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.4529, allocations: 178.7 kB / 0.6841 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.373e-05/0.453, allocations: 31.31 kB / 0.6841 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.837e-05/0.453, allocations: 17.92 kB / 0.6841 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.453, allocations: 12.58 kB / 0.6841 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4531, allocations: 39.5 kB / 0.6842 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.4531, allocations: 0 / 0.6842 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001988/0.4533, allocations: 66.38 kB / 0.6842 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.4533, allocations: 52.44 kB / 0.6843 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.4535, allocations: 206.5 kB / 0.6845 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.4535, allocations: 29.7 kB / 0.6845 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.879e-05/0.4536, allocations: 106.1 kB / 0.6846 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.217e-05/0.4536, allocations: 5.406 kB / 0.6846 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.4536, allocations: 29.02 kB / 0.6846 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.23e-05/0.4537, allocations: 322.9 kB / 0.6849 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.4538, allocations: 52.52 kB / 0.685 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.22e-05/0.4539, allocations: 62.22 kB / 0.6851 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.454, allocations: 90.22 kB / 0.6851 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.454, allocations: 0 / 0.6851 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002225/0.4542, allocations: 164.5 kB / 0.6853 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4542, allocations: 13.38 kB / 0.6853 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.4542, allocations: 1.219 kB / 0.6853 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.4543, allocations: 0 / 0.6853 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.514e-05/0.4543, allocations: 5.094 kB / 0.6853 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.4543, allocations: 0 / 0.6853 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.592e-05/0.4543, allocations: 14.11 kB / 0.6853 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.4543, allocations: 1.094 kB / 0.6853 GB, free: 2.777 MB / 0.4981 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.0001503/0.4545, allocations: 131 kB / 0.6855 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.037e-05/0.4545, allocations: 19.66 kB / 0.6855 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.4546, allocations: 64.72 kB / 0.6855 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4546, allocations: 1.406 kB / 0.6855 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4546, allocations: 0 / 0.6855 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.4546, allocations: 0 / 0.6855 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.4547, allocations: 189.3 kB / 0.6857 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4547, allocations: 4 kB / 0.6857 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-06/0.4547, allocations: 1.344 kB / 0.6857 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.4547, allocations: 3.938 kB / 0.6857 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.4547, allocations: 1.344 kB / 0.6857 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4547, allocations: 4.031 kB / 0.6857 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4547, allocations: 0 / 0.6857 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.739e-05/0.4548, allocations: 84.33 kB / 0.6858 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.4549, allocations: 95.41 kB / 0.6859 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.4549, allocations: 1.281 kB / 0.6859 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.999e-05/0.4549, allocations: 0 / 0.6859 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.4549, allocations: 1.219 kB / 0.6859 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.4549, allocations: 4.031 kB / 0.6859 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001245/0.455, allocations: 151 kB / 0.6861 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.455, allocations: 1.344 kB / 0.6861 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004977/0.4555, allocations: 92.42 kB / 0.6861 GB, free: 2.051 MB / 0.4981 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.0006306/0.4562, allocations: 226.8 kB / 0.6864 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002336/0.4564, allocations: 114.3 kB / 0.6865 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4564, allocations: 0 / 0.6865 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.194e-05/0.4564, allocations: 17.52 kB / 0.6865 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002155/0.4566, allocations: 5.094 kB / 0.6865 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003824/0.457, allocations: 240.6 kB / 0.6867 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.4572, allocations: 0.7007 MB / 0.6874 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.695e-05/0.4572, allocations: 12.84 kB / 0.6874 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.4572, allocations: 0 / 0.6874 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of Templates: time 0.00578/0.463, allocations: 2.374 MB / 0.6897 GB, free: 15.73 MB / 0.5137 GB " [Timeout remaining time 660] make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.617960463045165] Failed to read output from testmodel.py, exit status != 0: 0.47208152106031775 0.491492597 0.035812911 Calling exit ...