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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 119 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.001294/0.001294, allocations: 187.7 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.435/1.435, allocations: 225.6 MB / 249.1 MB, free: 3.621 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.8212/0.8212, allocations: 128.4 MB / 432.4 MB, free: 13.22 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 71.89 kB / 0.5987 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4031, allocations: 83.25 MB / 0.68 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001599/0.4047, allocations: 0.5145 MB / 0.6805 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001991/0.4067, allocations: 1.63 MB / 0.6821 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.4067, allocations: 0 / 0.6821 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.4069, allocations: 21.34 kB / 0.6821 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.43e-05/0.4069, allocations: 8.891 kB / 0.6821 GB, free: 5.512 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.0008236/0.4077, allocations: 246.6 kB / 0.6823 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.523e-05/0.4078, allocations: 30.73 kB / 0.6824 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.051e-05/0.4078, allocations: 5.609 kB / 0.6824 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.853e-05/0.4079, allocations: 6.531 kB / 0.6824 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.422e-05/0.4079, allocations: 25.61 kB / 0.6824 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.4079, allocations: 0 / 0.6824 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005205/0.4085, allocations: 361.2 kB / 0.6828 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.832e-05/0.4085, allocations: 18.33 kB / 0.6828 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.4085, allocations: 20.25 kB / 0.6828 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.4089, allocations: 283.4 kB / 0.6831 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4089, allocations: 7.938 kB / 0.6831 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4089, allocations: 0 / 0.6831 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.4089, allocations: 0 / 0.6831 GB, free: 4.914 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.000374/0.4093, allocations: 406.6 kB / 0.6835 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.4093, allocations: 9.75 kB / 0.6835 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.4093, allocations: 11.2 kB / 0.6835 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.4094, allocations: 183.8 kB / 0.6837 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.4095, allocations: 384 / 0.6837 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.4095, allocations: 2 kB / 0.6837 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.5e-05/0.4095, allocations: 49.22 kB / 0.6837 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.4096, allocations: 0 / 0.6837 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.4096, allocations: 0 / 0.6837 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.4096, allocations: 1.25 kB / 0.6837 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.898e-05/0.4096, allocations: 12.53 kB / 0.6837 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.4097, allocations: 175.3 kB / 0.6839 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.398e-05/0.4098, allocations: 33 kB / 0.6839 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.988e-05/0.4098, allocations: 12.3 kB / 0.6839 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.4098, allocations: 8.75 kB / 0.6839 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.4098, allocations: 39.27 kB / 0.684 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4098, allocations: 3.938 kB / 0.684 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001401/0.41, allocations: 58.67 kB / 0.684 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.41e-05/0.41, allocations: 51.41 kB / 0.6841 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.4101, allocations: 169.1 kB / 0.6842 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.125e-06/0.4101, allocations: 25.7 kB / 0.6843 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.4102, allocations: 100.2 kB / 0.6844 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.639e-06/0.4102, allocations: 0 / 0.6844 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.462e-05/0.4102, allocations: 26.61 kB / 0.6844 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.516e-05/0.4103, allocations: 322 kB / 0.6847 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.07e-05/0.4103, allocations: 40.58 kB / 0.6847 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.888e-05/0.4104, allocations: 37.7 kB / 0.6848 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.628e-05/0.4104, allocations: 77.09 kB / 0.6848 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4104, allocations: 0 / 0.6848 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001305/0.4106, allocations: 127.7 kB / 0.685 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.4106, allocations: 12.53 kB / 0.685 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.4106, allocations: 2.25 kB / 0.685 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4106, allocations: 0 / 0.685 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.337e-05/0.4106, allocations: 1.125 kB / 0.685 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.4106, allocations: 0 / 0.685 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.355e-05/0.4106, allocations: 10.2 kB / 0.685 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.4107, allocations: 1.125 kB / 0.685 GB, free: 3.09 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: 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.0001112/0.4108, allocations: 124.6 kB / 0.6851 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.116e-05/0.4108, allocations: 14.05 kB / 0.6851 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.517e-05/0.4109, allocations: 64.7 kB / 0.6852 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.4109, allocations: 3.938 kB / 0.6852 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.4109, allocations: 1 kB / 0.6852 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.4109, allocations: 0 / 0.6852 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.167e-05/0.411, allocations: 170.9 kB / 0.6854 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.411, allocations: 1 kB / 0.6854 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-06/0.411, allocations: 0 / 0.6854 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.411, allocations: 4.969 kB / 0.6854 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-06/0.411, allocations: 0 / 0.6854 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.411, allocations: 5.094 kB / 0.6854 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.411, allocations: 0 / 0.6854 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.156e-05/0.411, allocations: 81.2 kB / 0.6854 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.411, allocations: 94.12 kB / 0.6855 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.4111, allocations: 1.062 kB / 0.6855 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.317e-05/0.4111, allocations: 5.109 kB / 0.6855 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.01e-05/0.4111, allocations: 0 / 0.6855 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.4111, allocations: 5.188 kB / 0.6855 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.643e-05/0.4112, allocations: 117.8 kB / 0.6857 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6e-08/0.4112, allocations: 0 / 0.6857 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003137/0.4115, allocations: 88.08 kB / 0.6857 GB, free: 2.387 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.0004919/0.412, allocations: 226.5 kB / 0.686 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001556/0.4121, allocations: 90.48 kB / 0.686 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4121, allocations: 1.312 kB / 0.686 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.494e-05/0.4121, allocations: 11.44 kB / 0.6861 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.4123, allocations: 9 kB / 0.6861 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.4125, allocations: 187.1 kB / 0.6862 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000108/0.4126, allocations: 0.6989 MB / 0.6869 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.492e-05/0.4126, allocations: 12.66 kB / 0.6869 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of SimCode: time 3e-07/0.4126, allocations: 0 / 0.6869 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of Templates: time 0.004173/0.4168, allocations: 2.249 MB / 0.6891 GB, free: 180 kB / 0.4981 GB " [Timeout remaining time 660] 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] [Calling sys.exit(0), Time elapsed: 9.595894953934476] Failed to read output from testmodel.py, exit status != 0: 0.42453606985509396 0.43913201900000004 0.027426165000000002 Calling exit ...