Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 113.9 kB / 17.13 MB, free: 5.938 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.001481/0.001481, allocations: 197.2 kB / 20.08 MB, free: 3 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.338/1.338, allocations: 225.6 MB / 248.5 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00234/0.00234, allocations: 285.3 kB / 303.6 MB, free: 3.707 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 180.9 MB / 0.5268 GB, free: 2.695 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 103.8 kB / 0.7259 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5148/0.5174, allocations: 94.15 MB / 0.8178 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001483/0.5189, allocations: 0.5242 MB / 0.8183 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00184/0.5207, allocations: 1.62 MB / 0.8199 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.028e-05/0.5208, allocations: 0.7812 kB / 0.8199 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.5209, allocations: 23.73 kB / 0.8199 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.316e-05/0.5209, allocations: 7.938 kB / 0.82 GB, free: 5.973 MB / 0.5762 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/BuildingSystems 2.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.000772/0.5217, allocations: 254.9 kB / 0.8202 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.472e-05/0.5218, allocations: 14.61 kB / 0.8202 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.5218, allocations: 12.22 kB / 0.8202 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.779e-05/0.5218, allocations: 13.42 kB / 0.8202 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.053e-05/0.5219, allocations: 24.33 kB / 0.8203 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.5219, allocations: 1.344 kB / 0.8203 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000501/0.5224, allocations: 362.2 kB / 0.8206 GB, free: 5.734 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.353e-05/0.5224, allocations: 18.17 kB / 0.8206 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.5225, allocations: 20.75 kB / 0.8206 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.5228, allocations: 280.2 kB / 0.8209 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.5228, allocations: 0 / 0.8209 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5228, allocations: 1.188 kB / 0.8209 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.5228, allocations: 0 / 0.8209 GB, free: 5.641 MB / 0.5762 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.0003608/0.5232, allocations: 409 kB / 0.8213 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.5232, allocations: 8.188 kB / 0.8213 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/0.5233, allocations: 9.328 kB / 0.8213 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.5234, allocations: 191.7 kB / 0.8215 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.5234, allocations: 5.719 kB / 0.8215 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.5234, allocations: 384 / 0.8215 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.296e-05/0.5235, allocations: 44.8 kB / 0.8215 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.5235, allocations: 3.938 kB / 0.8216 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.5235, allocations: 0 / 0.8216 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.5235, allocations: 4.547 kB / 0.8216 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.086e-05/0.5236, allocations: 15.88 kB / 0.8216 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001354/0.5237, allocations: 169.5 kB / 0.8217 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.777e-05/0.5237, allocations: 28.56 kB / 0.8218 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.991e-05/0.5238, allocations: 17.17 kB / 0.8218 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.5238, allocations: 5.5 kB / 0.8218 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.5238, allocations: 36.56 kB / 0.8218 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.5238, allocations: 0 / 0.8218 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001415/0.5239, allocations: 67.14 kB / 0.8219 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.242e-05/0.524, allocations: 52.53 kB / 0.8219 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.5241, allocations: 179.5 kB / 0.8221 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.243e-06/0.5241, allocations: 25.7 kB / 0.8221 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.5241, allocations: 94.05 kB / 0.8222 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.247e-06/0.5242, allocations: 1.125 kB / 0.8222 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.5242, allocations: 26.16 kB / 0.8222 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.5242, allocations: 320.4 kB / 0.8225 GB, free: 4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.35e-05/0.5243, allocations: 37.88 kB / 0.8226 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.158e-05/0.5243, allocations: 41.12 kB / 0.8226 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.582e-05/0.5244, allocations: 75.23 kB / 0.8227 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.5244, allocations: 1.484 kB / 0.8227 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001245/0.5245, allocations: 125.7 kB / 0.8228 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.5245, allocations: 10.98 kB / 0.8228 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.5246, allocations: 0 / 0.8228 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.5246, allocations: 4.031 kB / 0.8228 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.211e-05/0.5246, allocations: 4.5 kB / 0.8228 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.5246, allocations: 0 / 0.8228 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.949e-05/0.5246, allocations: 7.953 kB / 0.8228 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.5246, allocations: 3.547 kB / 0.8228 GB, free: 3.895 MB / 0.5762 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 9.313e-05/0.5247, allocations: 124.3 kB / 0.823 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.5247, allocations: 10.52 kB / 0.823 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.895e-05/0.5248, allocations: 63.53 kB / 0.823 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.5248, allocations: 0 / 0.823 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.5248, allocations: 4.609 kB / 0.823 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.5248, allocations: 0 / 0.823 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.738e-05/0.5249, allocations: 171.6 kB / 0.8232 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.5249, allocations: 0.5625 kB / 0.8232 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-06/0.5249, allocations: 4.031 kB / 0.8232 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.5249, allocations: 4.734 kB / 0.8232 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-06/0.5249, allocations: 0 / 0.8232 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.5249, allocations: 0 / 0.8232 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5249, allocations: 4.5 kB / 0.8232 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.931e-05/0.525, allocations: 78.92 kB / 0.8233 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.989e-05/0.525, allocations: 85.66 kB / 0.8234 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.525, allocations: 3.281 kB / 0.8234 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.525, allocations: 11.97 kB / 0.8234 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.153e-05/0.525, allocations: 0.6094 kB / 0.8234 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.525, allocations: 0.7031 kB / 0.8234 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.513e-05/0.5251, allocations: 120.9 kB / 0.8235 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5251, allocations: 0 / 0.8235 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003029/0.5254, allocations: 87 kB / 0.8236 GB, free: 3.234 MB / 0.5762 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.0004549/0.5258, allocations: 234.5 kB / 0.8238 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001319/0.526, allocations: 93.75 kB / 0.8239 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.526, allocations: 2.625 kB / 0.8239 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.377e-05/0.526, allocations: 9.766 kB / 0.8239 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.5261, allocations: 0.5156 kB / 0.8239 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.5263, allocations: 198.6 kB / 0.8241 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.5265, allocations: 0.6942 MB / 0.8248 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.305e-05/0.5265, allocations: 8.141 kB / 0.8248 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of SimCode: time 2.8e-07/0.5265, allocations: 0 / 0.8248 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of Templates: time 0.004277/0.5307, allocations: 2.251 MB / 0.827 GB, free: 2 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.868286801036447] Failed to read output from testmodel.py, exit status != 0: 0.5375640669371933 0.549224797 0.023744582 Calling exit ...