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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008149/0.0008149, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 169 kB / 23.03 MB, free: 1.539 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9615/0.9615, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001607/0.001607, allocations: 238.9 kB / 260.2 MB, free: 12.82 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6965/0.6965, allocations: 138.4 MB / 455.2 MB, free: 1.527 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.5551 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.665e-05/1.812e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.5625 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001017/0.001036, allocations: 0.5401 MB / 0.5556 GB, free: 20 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.002767, allocations: 1.645 MB / 0.5572 GB, free: 14.36 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.136e-05/0.002809, allocations: 3.938 kB / 0.5572 GB, free: 14.35 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.003004, allocations: 55.91 kB / 0.5573 GB, free: 14.3 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.147e-05/0.003035, allocations: 35.83 kB / 0.5573 GB, free: 14.26 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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 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.0007569/0.003792, allocations: 275 kB / 0.5576 GB, free: 13.99 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.85e-05/0.00387, allocations: 31.91 kB / 0.5576 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.358e-05/0.003904, allocations: 0 / 0.5576 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.356e-05/0.003948, allocations: 27.89 kB / 0.5576 GB, free: 13.93 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.322e-05/0.004001, allocations: 39.95 kB / 0.5577 GB, free: 13.89 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.004015, allocations: 0 / 0.5577 GB, free: 13.89 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005215/0.004536, allocations: 427.1 kB / 0.5581 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.794e-05/0.004584, allocations: 31.91 kB / 0.5581 GB, free: 13.45 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.004606, allocations: 11.88 kB / 0.5581 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003607/0.004967, allocations: 359 kB / 0.5584 GB, free: 13.08 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.235e-06/0.004969, allocations: 0 / 0.5584 GB, free: 13.08 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.00497, allocations: 0 / 0.5584 GB, free: 13.08 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.004974, allocations: 0 / 0.5584 GB, free: 13.08 MB / 490.7 MB 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.0003613/0.005335, allocations: 467.6 kB / 0.5589 GB, free: 12.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.00537, allocations: 12.75 kB / 0.5589 GB, free: 12.58 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.111e-05/0.005411, allocations: 12.84 kB / 0.5589 GB, free: 12.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.005532, allocations: 124.5 kB / 0.559 GB, free: 12.42 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.005541, allocations: 4.375 kB / 0.559 GB, free: 12.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.005549, allocations: 384 / 0.559 GB, free: 12.41 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.009e-05/0.005619, allocations: 34.19 kB / 0.5591 GB, free: 12.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.005626, allocations: 192 / 0.5591 GB, free: 12.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.005634, allocations: 4.375 kB / 0.5591 GB, free: 12.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.485e-06/0.005641, allocations: 3.938 kB / 0.5591 GB, free: 12.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.718e-06/0.005651, allocations: 0 / 0.5591 GB, free: 12.37 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.005791, allocations: 160.5 kB / 0.5592 GB, free: 12.18 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.413e-05/0.005835, allocations: 27.06 kB / 0.5593 GB, free: 12.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.368e-05/0.005849, allocations: 11.69 kB / 0.5593 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.005885, allocations: 8.047 kB / 0.5593 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.005906, allocations: 41.33 kB / 0.5593 GB, free: 12.06 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.005906, allocations: 0 / 0.5593 GB, free: 12.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001142/0.006021, allocations: 45.61 kB / 0.5594 GB, free: 12.01 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.006048, allocations: 55.34 kB / 0.5594 GB, free: 11.95 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.006185, allocations: 261.6 kB / 0.5597 GB, free: 11.67 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.859e-06/0.006195, allocations: 25.7 kB / 0.5597 GB, free: 11.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.492e-05/0.00625, allocations: 158.8 kB / 0.5598 GB, free: 11.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.849e-06/0.00626, allocations: 4.125 kB / 0.5598 GB, free: 11.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.322e-05/0.006293, allocations: 39.36 kB / 0.5599 GB, free: 11.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.006407, allocations: 0.504 MB / 0.5604 GB, free: 10.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.057e-05/0.006427, allocations: 15.94 kB / 0.5604 GB, free: 10.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.521e-05/0.006442, allocations: 15.94 kB / 0.5604 GB, free: 10.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.486e-05/0.006487, allocations: 47.14 kB / 0.5604 GB, free: 10.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.006489, allocations: 0 / 0.5604 GB, free: 10.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 7.742e-05/0.006566, allocations: 89.59 kB / 0.5605 GB, free: 10.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.006579, allocations: 4 kB / 0.5605 GB, free: 10.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.006592, allocations: 0 / 0.5605 GB, free: 10.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.006604, allocations: 0 / 0.5605 GB, free: 10.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.697e-05/0.006621, allocations: 8.062 kB / 0.5605 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.006627, allocations: 3.938 kB / 0.5605 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.045e-05/0.006648, allocations: 15.83 kB / 0.5606 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.006656, allocations: 4 kB / 0.5606 GB, free: 10.71 MB / 490.7 MB 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 7.977e-05/0.006735, allocations: 160.5 kB / 0.5607 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-06/0.006745, allocations: 15.89 kB / 0.5607 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.923e-05/0.006824, allocations: 42.19 kB / 0.5608 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.006827, allocations: 4 kB / 0.5608 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.006832, allocations: 3.938 kB / 0.5608 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.006834, allocations: 4.031 kB / 0.5608 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.612e-05/0.00692, allocations: 148.6 kB / 0.5609 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.006922, allocations: 3.984 kB / 0.5609 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.056e-06/0.006925, allocations: 0 / 0.5609 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.006927, allocations: 0 / 0.5609 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.006932, allocations: 0 / 0.5609 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.006933, allocations: 0 / 0.5609 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.006934, allocations: 0 / 0.5609 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.547e-05/0.006989, allocations: 92.22 kB / 0.561 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.769e-06/0.006999, allocations: 7.953 kB / 0.561 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.857e-06/0.007008, allocations: 4.031 kB / 0.561 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.464e-06/0.007015, allocations: 0 / 0.561 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.007029, allocations: 0 / 0.561 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.007032, allocations: 7.875 kB / 0.561 GB, free: 10.15 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.841e-05/0.0071, allocations: 172.3 kB / 0.5612 GB, free: 9.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0071, allocations: 0 / 0.5612 GB, free: 9.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002381/0.007338, allocations: 91.8 kB / 0.5613 GB, free: 9.891 MB / 490.7 MB 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.0004058/0.007744, allocations: 248.5 kB / 0.5615 GB, free: 9.668 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.007863, allocations: 77.36 kB / 0.5616 GB, free: 9.582 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.007864, allocations: 0 / 0.5616 GB, free: 9.582 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 9.869e-06/0.007874, allocations: 19.62 kB / 0.5616 GB, free: 9.559 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001045/0.007979, allocations: 0 / 0.5616 GB, free: 9.559 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000233/0.008212, allocations: 194.7 kB / 0.5618 GB, free: 9.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.548e-05/0.008247, allocations: 63.34 kB / 0.5619 GB, free: 9.258 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.624e-05/0.008263, allocations: 8.125 kB / 0.5619 GB, free: 9.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.008277, allocations: 8.5 kB / 0.5619 GB, free: 9.242 MB / 490.7 MB Notification: Performance of SimCode: time 4.9e-07/0.008278, allocations: 0 / 0.5619 GB, free: 9.242 MB / 490.7 MB Notification: Performance of Templates: time 0.004538/0.01282, allocations: 2.536 MB / 0.5644 GB, free: 6.711 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.615617098752409]