Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001401/0.001401, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 196.5 kB / 16.53 MB, free: 6.699 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.777/2.777, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.3 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3103, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001746/0.3121, allocations: 0.5068 MB / 1.069 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002217/0.3143, allocations: 1.62 MB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.221e-05/0.3144, allocations: 0 / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.3145, allocations: 59.86 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.84e-05/0.3146, allocations: 31.94 kB / 1.07 GB, free: 8.203 MB / 0.8262 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/Buildings 12.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.0008895/0.3155, allocations: 250.5 kB / 1.071 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.092e-05/0.3156, allocations: 31.89 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.365e-05/0.3156, allocations: 7.984 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.456e-05/0.3157, allocations: 19.92 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.601e-05/0.3157, allocations: 43.89 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/0.3158, allocations: 4 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005309/0.3163, allocations: 279.6 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.59e-05/0.3164, allocations: 27.92 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.3164, allocations: 27.73 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.3168, allocations: 299.3 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3168, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3168, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.816e-06/0.3169, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8262 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.0004274/0.3173, allocations: 436.8 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.3173, allocations: 12.03 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.3174, allocations: 12.84 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.3175, allocations: 184.1 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.3176, allocations: 4.359 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.3176, allocations: 4.375 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.269e-05/0.3177, allocations: 41.95 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.3177, allocations: 0 / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.3177, allocations: 0 / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3177, allocations: 0 / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.431e-05/0.3177, allocations: 23.92 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.3179, allocations: 181.7 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.195e-05/0.318, allocations: 30.56 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.435e-05/0.318, allocations: 16.92 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.318, allocations: 11.92 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.3181, allocations: 34.5 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.3181, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.3182, allocations: 77.44 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.3183, allocations: 51.41 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.3184, allocations: 215.3 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.3185, allocations: 25.7 kB / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/0.3185, allocations: 108.1 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.118e-05/0.3185, allocations: 0 / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.3186, allocations: 33.7 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3187, allocations: 322.8 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.166e-05/0.3188, allocations: 56.11 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.104e-05/0.3188, allocations: 51.97 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.843e-05/0.3189, allocations: 94.05 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3189, allocations: 0 / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001704/0.3191, allocations: 171.1 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3191, allocations: 7.938 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3192, allocations: 0 / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3192, allocations: 4 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.229e-05/0.3192, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.3192, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.413e-05/0.3192, allocations: 19.84 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.3193, allocations: 7.984 kB / 1.073 GB, free: 4.824 MB / 0.8262 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.0001506/0.3194, allocations: 129.8 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.3194, allocations: 15.75 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.3195, allocations: 66.19 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3196, allocations: 3.984 kB / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3196, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3196, allocations: 4.031 kB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.3197, allocations: 181.7 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3197, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-06/0.3197, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3197, allocations: 3.938 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.3197, allocations: 0 / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3197, allocations: 3.938 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3198, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.39e-05/0.3198, allocations: 85.02 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.3199, allocations: 92.86 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.3199, allocations: 0 / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.477e-05/0.3199, allocations: 4 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.3199, allocations: 3.938 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.32, allocations: 4 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001123/0.3201, allocations: 147.1 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3201, allocations: 0 / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003098/0.3204, allocations: 91.92 kB / 1.074 GB, free: 3.902 MB / 0.8262 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.0004886/0.3209, allocations: 229 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001754/0.3211, allocations: 125.7 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3211, allocations: 0 / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.678e-05/0.3211, allocations: 12.05 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001452/0.3213, allocations: 8.062 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003043/0.3216, allocations: 206.1 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.3218, allocations: 0.7119 MB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.686e-05/0.3219, allocations: 3.938 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.369e-05/0.3219, allocations: 7.438 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3219, allocations: 0 / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of Templates: time 0.004972/0.3269, allocations: 2.107 MB / 1.078 GB, free: 468 kB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)