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.001273/0.001274, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.001252/0.001252, allocations: 187 kB / 17.34 MB, free: 5.766 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002284/0.002284, allocations: 300.2 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.909/0.909, allocations: 169.3 MB / 0.499 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 87.86 kB / 0.6821 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4196, allocations: 86.98 MB / 0.767 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001653/0.4213, allocations: 0.5114 MB / 0.7675 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002132/0.4235, allocations: 1.612 MB / 0.7691 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.114e-05/0.4235, allocations: 0 / 0.7691 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.4237, allocations: 71.83 kB / 0.7692 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.951e-05/0.4237, allocations: 23.97 kB / 0.7692 GB, free: 1.82 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.0008674/0.4246, allocations: 251.2 kB / 0.7694 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.79e-05/0.4247, allocations: 27.97 kB / 0.7694 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.464e-05/0.4247, allocations: 0 / 0.7694 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.724e-05/0.4248, allocations: 27.89 kB / 0.7695 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.4249, allocations: 35.97 kB / 0.7695 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.4249, allocations: 4 kB / 0.7695 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005467/0.4254, allocations: 335.4 kB / 0.7698 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.4255, allocations: 31.91 kB / 0.7699 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.993e-05/0.4255, allocations: 23.75 kB / 0.7699 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004205/0.426, allocations: 291.1 kB / 0.7702 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.426, allocations: 4 kB / 0.7702 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.302e-06/0.426, allocations: 3.938 kB / 0.7702 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.426, allocations: 3.984 kB / 0.7702 GB, free: 0.8047 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.0004434/0.4265, allocations: 429.5 kB / 0.7706 GB, free: 348 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.4265, allocations: 12.03 kB / 0.7706 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.4265, allocations: 8.844 kB / 0.7706 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.4267, allocations: 188.1 kB / 0.7708 GB, free: 100 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-06/0.4267, allocations: 4.375 kB / 0.7708 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-06/0.4267, allocations: 384 / 0.7708 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.446e-05/0.4268, allocations: 42.02 kB / 0.7708 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.4268, allocations: 0 / 0.7708 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.4268, allocations: 0 / 0.7708 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.4268, allocations: 0 / 0.7708 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.455e-05/0.4269, allocations: 23.92 kB / 0.7709 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/0.4271, allocations: 185.6 kB / 0.771 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.358e-05/0.4271, allocations: 26.64 kB / 0.7711 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.119e-05/0.4272, allocations: 16.86 kB / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.4272, allocations: 11.89 kB / 0.7711 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.4272, allocations: 34.5 kB / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.4272, allocations: 0 / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001427/0.4274, allocations: 69.53 kB / 0.7712 GB, free: 15.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.4274, allocations: 55.41 kB / 0.7712 GB, free: 15.54 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.4276, allocations: 216.2 kB / 0.7714 GB, free: 15.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.4276, allocations: 25.7 kB / 0.7715 GB, free: 15.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.012e-05/0.4277, allocations: 104.1 kB / 0.7716 GB, free: 15.19 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.233e-05/0.4277, allocations: 7.906 kB / 0.7716 GB, free: 15.18 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/0.4278, allocations: 25.7 kB / 0.7716 GB, free: 15.15 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.4279, allocations: 330.8 kB / 0.7719 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.47e-05/0.4279, allocations: 47.98 kB / 0.772 GB, free: 14.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.215e-05/0.428, allocations: 59.91 kB / 0.772 GB, free: 14.71 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.158e-05/0.4281, allocations: 96.05 kB / 0.7721 GB, free: 14.62 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4281, allocations: 0 / 0.7721 GB, free: 14.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001695/0.4283, allocations: 169.4 kB / 0.7723 GB, free: 14.45 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.4283, allocations: 7.938 kB / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.4283, allocations: 0 / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.4283, allocations: 0 / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.234e-05/0.4284, allocations: 4 kB / 0.7723 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.4284, allocations: 0 / 0.7723 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.659e-05/0.4284, allocations: 7.844 kB / 0.7723 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.4284, allocations: 4 kB / 0.7723 GB, free: 14.42 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.4286, allocations: 140.2 kB / 0.7724 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.4286, allocations: 19.73 kB / 0.7724 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.4287, allocations: 70.17 kB / 0.7725 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4287, allocations: 0 / 0.7725 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.4287, allocations: 0 / 0.7725 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.4287, allocations: 0 / 0.7725 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.4288, allocations: 181.7 kB / 0.7727 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4288, allocations: 0 / 0.7727 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.678e-06/0.4289, allocations: 4.031 kB / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.4289, allocations: 3.938 kB / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.4289, allocations: 3.938 kB / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4289, allocations: 0 / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.4289, allocations: 0 / 0.7727 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.827e-05/0.429, allocations: 85.02 kB / 0.7728 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.429, allocations: 92.86 kB / 0.7729 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.4291, allocations: 0 / 0.7729 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/0.4291, allocations: 4.031 kB / 0.7729 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.4291, allocations: 0 / 0.7729 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.4291, allocations: 4 kB / 0.7729 GB, free: 13.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001151/0.4292, allocations: 153.5 kB / 0.773 GB, free: 13.58 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4292, allocations: 0 / 0.773 GB, free: 13.58 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003269/0.4296, allocations: 79.98 kB / 0.7731 GB, free: 13.5 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.0004871/0.43, allocations: 232.9 kB / 0.7733 GB, free: 13.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001885/0.4302, allocations: 129.7 kB / 0.7734 GB, free: 13.15 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4303, allocations: 0 / 0.7734 GB, free: 13.15 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.636e-05/0.4303, allocations: 11.98 kB / 0.7735 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.4304, allocations: 3.75 kB / 0.7735 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003235/0.4308, allocations: 243.7 kB / 0.7737 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.431, allocations: 0.708 MB / 0.7744 GB, free: 12.13 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.514e-05/0.431, allocations: 7.438 kB / 0.7744 GB, free: 12.12 MB / 0.545 GB Notification: Performance of SimCode: time 1.894e-06/0.4311, allocations: 0 / 0.7744 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Templates: time 0.004234/0.4353, allocations: 2.383 MB / 0.7767 GB, free: 9.742 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)