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) 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00688/0.00688, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001287/0.001287, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001979/0.001979, allocations: 294 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9365/0.9365, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 99.83 kB / 0.6814 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4174/0.4191, allocations: 86.97 MB / 0.7664 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00155/0.4207, allocations: 0.5148 MB / 0.7669 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001958/0.4226, allocations: 1.604 MB / 0.7684 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.143e-05/0.4227, allocations: 4 kB / 0.7684 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.4228, allocations: 19.91 kB / 0.7684 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.673e-05/0.4229, allocations: 11.92 kB / 0.7685 GB, free: 1.773 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.0007747/0.4236, allocations: 247.3 kB / 0.7687 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.275e-05/0.4237, allocations: 27.89 kB / 0.7687 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.4238, allocations: 0 / 0.7687 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.098e-05/0.4238, allocations: 19.92 kB / 0.7687 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.067e-05/0.4238, allocations: 15.92 kB / 0.7688 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.4239, allocations: 0 / 0.7688 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000474/0.4243, allocations: 331.5 kB / 0.7691 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.858e-05/0.4244, allocations: 19.98 kB / 0.7691 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.822e-05/0.4244, allocations: 19.81 kB / 0.7691 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.4248, allocations: 283.4 kB / 0.7694 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4248, allocations: 0 / 0.7694 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4248, allocations: 0 / 0.7694 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.4248, allocations: 0 / 0.7694 GB, free: 0.8281 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.0004092/0.4252, allocations: 405.4 kB / 0.7698 GB, free: 400 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.4253, allocations: 12.03 kB / 0.7698 GB, free: 388 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.266e-05/0.4253, allocations: 8.844 kB / 0.7698 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.4254, allocations: 193.7 kB / 0.77 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-06/0.4255, allocations: 384 / 0.77 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.4255, allocations: 4.375 kB / 0.77 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.678e-05/0.4256, allocations: 46 kB / 0.77 GB, free: 92 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.4256, allocations: 0 / 0.77 GB, free: 92 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.4256, allocations: 3.938 kB / 0.77 GB, free: 88 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.4256, allocations: 0 / 0.77 GB, free: 88 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.218e-05/0.4257, allocations: 19.98 kB / 0.77 GB, free: 68 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.4258, allocations: 169.6 kB / 0.7702 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.848e-05/0.4259, allocations: 30.5 kB / 0.7702 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.002e-05/0.4259, allocations: 16.92 kB / 0.7702 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.426, allocations: 7.984 kB / 0.7703 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.426, allocations: 34.5 kB / 0.7703 GB, free: 15.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.426, allocations: 0 / 0.7703 GB, free: 15.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001385/0.4261, allocations: 61.59 kB / 0.7703 GB, free: 15.68 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.4262, allocations: 51.41 kB / 0.7704 GB, free: 15.61 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.4263, allocations: 172.8 kB / 0.7706 GB, free: 15.43 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.4263, allocations: 29.83 kB / 0.7706 GB, free: 15.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.279e-05/0.4264, allocations: 92.14 kB / 0.7707 GB, free: 15.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.4264, allocations: 11.83 kB / 0.7707 GB, free: 15.29 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.4264, allocations: 21.72 kB / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4266, allocations: 322.8 kB / 0.771 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.189e-05/0.4266, allocations: 35.98 kB / 0.7711 GB, free: 14.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.059e-05/0.4267, allocations: 43.98 kB / 0.7711 GB, free: 14.86 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.266e-05/0.4267, allocations: 64.81 kB / 0.7712 GB, free: 14.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.4267, allocations: 8.031 kB / 0.7712 GB, free: 14.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001338/0.4269, allocations: 121.6 kB / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.4269, allocations: 7.938 kB / 0.7713 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.4269, allocations: 4 kB / 0.7713 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.4269, allocations: 0 / 0.7713 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-05/0.427, allocations: 3.938 kB / 0.7713 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.427, allocations: 0 / 0.7713 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.543e-05/0.427, allocations: 15.84 kB / 0.7713 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.427, allocations: 0 / 0.7713 GB, free: 14.63 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: 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.0001091/0.4271, allocations: 128.3 kB / 0.7714 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.4271, allocations: 7.844 kB / 0.7714 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.4272, allocations: 61.55 kB / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.4273, allocations: 0 / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4273, allocations: 0 / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.4273, allocations: 0 / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.4274, allocations: 173.7 kB / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.4274, allocations: 0 / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-06/0.4274, allocations: 0 / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4274, allocations: 3.969 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.4274, allocations: 4 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.4274, allocations: 3.938 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.4274, allocations: 0 / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.435e-05/0.4275, allocations: 84.95 kB / 0.7718 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.714e-05/0.4275, allocations: 88.95 kB / 0.7718 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.4276, allocations: 3.984 kB / 0.7718 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.311e-05/0.4276, allocations: 4 kB / 0.7718 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.4276, allocations: 4.031 kB / 0.7719 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4276, allocations: 4 kB / 0.7719 GB, free: 13.97 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.81e-05/0.4277, allocations: 116.5 kB / 0.772 GB, free: 13.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.513e-06/0.4277, allocations: 0 / 0.772 GB, free: 13.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002882/0.428, allocations: 87.92 kB / 0.7721 GB, free: 13.77 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.0004526/0.4284, allocations: 231.2 kB / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001653/0.4286, allocations: 97.61 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4286, allocations: 3.938 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.444e-05/0.4287, allocations: 8 kB / 0.7724 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.4288, allocations: 11.98 kB / 0.7724 GB, free: 13.44 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002488/0.4291, allocations: 153.5 kB / 0.7725 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.4293, allocations: 0.6964 MB / 0.7732 GB, free: 12.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.02e-05/0.4293, allocations: 4 kB / 0.7732 GB, free: 12.54 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.348e-05/0.4293, allocations: 7.438 kB / 0.7732 GB, free: 12.53 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4293, allocations: 0 / 0.7732 GB, free: 12.53 MB / 0.545 GB Notification: Performance of Templates: time 0.004566/0.4339, allocations: 2.094 MB / 0.7753 GB, free: 10.43 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile (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)