Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 108.6 kB / 16.41 MB, free: 6.453 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.001913/0.001913, allocations: 191.8 kB / 17.34 MB, free: 5.738 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.395/1.395, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00255/0.00255, allocations: 291.8 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9927/0.9927, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003723/0.003723, allocations: 99.78 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4035, allocations: 86.97 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001571/0.405, allocations: 0.523 MB / 0.7675 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002319/0.4074, allocations: 1.608 MB / 0.7691 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.82e-05/0.4074, allocations: 0 / 0.7691 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.4076, allocations: 71.84 kB / 0.7692 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.641e-05/0.4076, allocations: 27.95 kB / 0.7692 GB, free: 1.676 MB / 0.5294 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.0008305/0.4085, allocations: 249.3 kB / 0.7694 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.934e-05/0.4085, allocations: 27.91 kB / 0.7695 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.011e-05/0.4086, allocations: 7.984 kB / 0.7695 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.347e-05/0.4086, allocations: 23.91 kB / 0.7695 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.502e-05/0.4087, allocations: 43.95 kB / 0.7695 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.4087, allocations: 3.938 kB / 0.7695 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005498/0.4092, allocations: 327.5 kB / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.239e-05/0.4093, allocations: 27.91 kB / 0.7699 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.464e-05/0.4093, allocations: 27.73 kB / 0.7699 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004073/0.4097, allocations: 296.7 kB / 0.7702 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.4097, allocations: 0 / 0.7702 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd: time 8.12e-07/0.4097, allocations: 0 / 0.7702 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.4097, allocations: 0 / 0.7702 GB, free: 0.6719 MB / 0.5294 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.0005075/0.4103, allocations: 438.5 kB / 0.7706 GB, free: 200 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.4103, allocations: 8.031 kB / 0.7706 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.4103, allocations: 16.84 kB / 0.7706 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.4105, allocations: 196.2 kB / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-06/0.4105, allocations: 384 / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.4106, allocations: 4.312 kB / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.311e-05/0.4106, allocations: 41.95 kB / 0.7709 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.4107, allocations: 0 / 0.7709 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.4107, allocations: 3.938 kB / 0.7709 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.4107, allocations: 8 kB / 0.7709 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.971e-05/0.4107, allocations: 15.98 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002057/0.4109, allocations: 185.7 kB / 0.7711 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.649e-05/0.411, allocations: 22.58 kB / 0.7711 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.468e-05/0.411, allocations: 16.91 kB / 0.7711 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.411, allocations: 4 kB / 0.7711 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/0.4111, allocations: 50.44 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.4111, allocations: 0 / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.4112, allocations: 65.59 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.4112, allocations: 55.39 kB / 0.7713 GB, free: 15.38 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.4115, allocations: 203.6 kB / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.4115, allocations: 29.7 kB / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.4115, allocations: 100.1 kB / 0.7716 GB, free: 15.04 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.177e-05/0.4116, allocations: 3.938 kB / 0.7716 GB, free: 15.04 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.4116, allocations: 33.77 kB / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4117, allocations: 330.8 kB / 0.7719 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.036e-05/0.4118, allocations: 55.97 kB / 0.772 GB, free: 14.61 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.798e-05/0.4119, allocations: 51.98 kB / 0.772 GB, free: 14.56 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.412, allocations: 95.81 kB / 0.7721 GB, free: 14.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.412, allocations: 4 kB / 0.7721 GB, free: 14.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000197/0.4122, allocations: 157.5 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.4122, allocations: 14.59 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.4122, allocations: 0 / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.4122, allocations: 64 / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.278e-05/0.4123, allocations: 4 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.4123, allocations: 0 / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.966e-05/0.4123, allocations: 11.89 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.4123, allocations: 0 / 0.7723 GB, free: 14.27 MB / 0.545 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.0001389/0.4124, allocations: 136.2 kB / 0.7724 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.4125, allocations: 15.84 kB / 0.7725 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.4126, allocations: 70.17 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.4126, allocations: 4.031 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.4126, allocations: 7.922 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.4126, allocations: 0 / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.4127, allocations: 177.7 kB / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.4127, allocations: 0 / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-06/0.4127, allocations: 0 / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4127, allocations: 7.938 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-06/0.4127, allocations: 0 / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.4127, allocations: 0 / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4128, allocations: 4 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.4129, allocations: 100.9 kB / 0.7728 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.4129, allocations: 85 kB / 0.7729 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.4129, allocations: 4 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.362e-05/0.4129, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-06/0.413, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.413, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001354/0.4131, allocations: 154.2 kB / 0.773 GB, free: 13.43 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.4131, allocations: 0 / 0.773 GB, free: 13.43 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003299/0.4134, allocations: 91.83 kB / 0.7731 GB, free: 13.34 MB / 0.545 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.0005294/0.4139, allocations: 209.7 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000194/0.4141, allocations: 117.7 kB / 0.7734 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4141, allocations: 8 kB / 0.7735 GB, free: 13.01 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.131e-05/0.4142, allocations: 15.92 kB / 0.7735 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.4143, allocations: 7.75 kB / 0.7735 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.4147, allocations: 217.7 kB / 0.7737 GB, free: 12.75 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.415, allocations: 0.7078 MB / 0.7744 GB, free: 12.01 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.643e-05/0.415, allocations: 4 kB / 0.7744 GB, free: 12.01 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.401e-05/0.415, allocations: 7.438 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of SimCode: time 4.11e-07/0.415, allocations: 0 / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of Templates: time 0.005706/0.4207, allocations: 2.133 MB / 0.7765 GB, free: 9.871 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)