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.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.0009683/0.0009683, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001026/0.001026, allocations: 173 kB / 23.5 MB, free: 1.051 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.9545/0.9545, allocations: 177.1 MB / 203.8 MB, free: 5.629 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.001623/0.001623, allocations: 232.6 kB / 260.5 MB, free: 12.88 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.6761/0.6761, allocations: 138.4 MB / 455.4 MB, free: 1.574 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 0.555 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.268e-05/2.405e-05, allocations: 2.312 kB / 0.555 GB, free: 0.9453 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.004506/0.00453, allocations: 0.5361 MB / 0.5555 GB, free: 416 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.006841, allocations: 1.645 MB / 0.5571 GB, free: 14.74 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.041e-05/0.006892, allocations: 3.938 kB / 0.5571 GB, free: 14.74 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.007046, allocations: 15.97 kB / 0.5571 GB, free: 14.72 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.899e-05/0.007075, allocations: 19.92 kB / 0.5572 GB, free: 14.7 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.003901/0.01098, allocations: 255 kB / 0.5574 GB, free: 14.45 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.533e-05/0.01105, allocations: 27.91 kB / 0.5574 GB, free: 14.43 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.868e-05/0.01109, allocations: 4 kB / 0.5574 GB, free: 14.42 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.031e-05/0.01114, allocations: 15.91 kB / 0.5574 GB, free: 14.41 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.959e-05/0.01118, allocations: 19.97 kB / 0.5575 GB, free: 14.39 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.01119, allocations: 4 kB / 0.5575 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006019/0.01179, allocations: 427.1 kB / 0.5579 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.144e-05/0.01185, allocations: 19.94 kB / 0.5579 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.01187, allocations: 7.938 kB / 0.5579 GB, free: 13.94 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.01229, allocations: 335.1 kB / 0.5582 GB, free: 13.61 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.01229, allocations: 0 / 0.5582 GB, free: 13.61 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01229, allocations: 0 / 0.5582 GB, free: 13.61 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.0123, allocations: 0 / 0.5582 GB, free: 13.61 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.0003985/0.0127, allocations: 443.8 kB / 0.5586 GB, free: 13.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.01273, allocations: 8.75 kB / 0.5587 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.467e-05/0.01278, allocations: 16.89 kB / 0.5587 GB, free: 13.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.01292, allocations: 129.3 kB / 0.5588 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.01293, allocations: 384 / 0.5588 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.01294, allocations: 4.375 kB / 0.5588 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.606e-05/0.01302, allocations: 30.2 kB / 0.5588 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.01303, allocations: 192 / 0.5588 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003015/0.01604, allocations: 384 / 0.5588 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.01605, allocations: 3.938 kB / 0.5588 GB, free: 12.92 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.135e-05/0.01607, allocations: 4 kB / 0.5588 GB, free: 12.92 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.01623, allocations: 136.6 kB / 0.559 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.069e-05/0.01627, allocations: 31.06 kB / 0.559 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.653e-05/0.01629, allocations: 7.688 kB / 0.559 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.01633, allocations: 4.062 kB / 0.559 GB, free: 12.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.01635, allocations: 45.27 kB / 0.5591 GB, free: 12.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.01636, allocations: 4 kB / 0.5591 GB, free: 12.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001243/0.01648, allocations: 37.64 kB / 0.5591 GB, free: 12.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.01651, allocations: 55.34 kB / 0.5591 GB, free: 12.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.01666, allocations: 223.5 kB / 0.5594 GB, free: 12.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.01667, allocations: 25.7 kB / 0.5594 GB, free: 12.26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.01673, allocations: 143 kB / 0.5595 GB, free: 12.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.01674, allocations: 11.94 kB / 0.5595 GB, free: 12.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.01678, allocations: 31.38 kB / 0.5596 GB, free: 12.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.01691, allocations: 0.4923 MB / 0.56 GB, free: 11.56 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.01694, allocations: 12 kB / 0.5601 GB, free: 11.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.32e-05/0.01696, allocations: 15.94 kB / 0.5601 GB, free: 11.53 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.812e-05/0.01701, allocations: 31.78 kB / 0.5601 GB, free: 11.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.01701, allocations: 0 / 0.5601 GB, free: 11.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001045/0.01711, allocations: 77.52 kB / 0.5602 GB, free: 11.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.01713, allocations: 8 kB / 0.5602 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.01715, allocations: 0 / 0.5602 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.01716, allocations: 4.062 kB / 0.5602 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.234e-05/0.01717, allocations: 0 / 0.5602 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.01718, allocations: 3.938 kB / 0.5602 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.504e-05/0.0172, allocations: 7.953 kB / 0.5602 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.01721, allocations: 3.984 kB / 0.5602 GB, free: 11.39 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: 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 9.186e-05/0.0173, allocations: 160.6 kB / 0.5604 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.01732, allocations: 19.83 kB / 0.5604 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.334e-05/0.0174, allocations: 37.52 kB / 0.5604 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01741, allocations: 3.984 kB / 0.5604 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.01742, allocations: 11.97 kB / 0.5604 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.01742, allocations: 0 / 0.5604 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.161e-05/0.01751, allocations: 132.6 kB / 0.5605 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01751, allocations: 0 / 0.5605 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.291e-06/0.01752, allocations: 4 kB / 0.5606 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.01752, allocations: 0 / 0.5606 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.01753, allocations: 4 kB / 0.5606 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.01753, allocations: 0 / 0.5606 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01753, allocations: 0 / 0.5606 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.222e-05/0.0176, allocations: 84.27 kB / 0.5606 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.236e-05/0.01761, allocations: 11.98 kB / 0.5606 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.01763, allocations: 0 / 0.5606 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.078e-05/0.01764, allocations: 0 / 0.5606 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.767e-05/0.01766, allocations: 3.984 kB / 0.5607 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.01766, allocations: 3.938 kB / 0.5607 GB, free: 10.85 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.924e-05/0.01774, allocations: 156.9 kB / 0.5608 GB, free: 10.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01774, allocations: 0 / 0.5608 GB, free: 10.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003474/0.01809, allocations: 87.8 kB / 0.5609 GB, free: 10.61 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.0005008/0.01859, allocations: 254.9 kB / 0.5611 GB, free: 10.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000127/0.01871, allocations: 65.38 kB / 0.5612 GB, free: 10.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01871, allocations: 0 / 0.5612 GB, free: 10.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 9.639e-06/0.01872, allocations: 11.62 kB / 0.5612 GB, free: 10.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003164/0.02189, allocations: 8 kB / 0.5612 GB, free: 10.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002503/0.02214, allocations: 154.4 kB / 0.5614 GB, free: 10.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.123e-05/0.02218, allocations: 71.41 kB / 0.5614 GB, free: 10.02 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.805e-05/0.0222, allocations: 3.938 kB / 0.5614 GB, free: 10.01 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.02221, allocations: 8.5 kB / 0.5614 GB, free: 10 MB / 490.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02221, allocations: 4 kB / 0.5614 GB, free: 10 MB / 490.7 MB Notification: Performance of Templates: time 0.008/0.03021, allocations: 2.135 MB / 0.5635 GB, free: 7.867 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6963011159095913]