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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 113 kB / 17.6 MB, free: 4.785 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002114/0.002114, allocations: 186.8 kB / 20.78 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 225.6 MB / 249.4 MB, free: 3.309 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00265/0.00265, allocations: 284.9 kB / 304.8 MB, free: 3.441 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.057/1.057, allocations: 180.9 MB / 0.5281 GB, free: 2.027 MB / 382.1 MB " [Timeout remaining time 179] 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=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 0.002835/0.002835, allocations: 95.84 kB / 0.7283 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5217/0.5245, allocations: 94.16 MB / 0.8202 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001727/0.5262, allocations: 0.5294 MB / 0.8208 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002745/0.529, allocations: 1.625 MB / 0.8223 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.529, allocations: 5.031 kB / 0.8224 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.5292, allocations: 58.97 kB / 0.8224 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.105e-05/0.5293, allocations: 36.23 kB / 0.8224 GB, free: 2.984 MB / 0.5606 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.0009086/0.5302, allocations: 247.9 kB / 0.8227 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.413e-05/0.5303, allocations: 38.14 kB / 0.8227 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.243e-05/0.5303, allocations: 4.75 kB / 0.8227 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.867e-05/0.5303, allocations: 23.97 kB / 0.8227 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.011e-05/0.5304, allocations: 50.94 kB / 0.8228 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.5304, allocations: 0 / 0.8228 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005984/0.531, allocations: 366.8 kB / 0.8231 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.5311, allocations: 21.3 kB / 0.8232 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.137e-05/0.5311, allocations: 25.66 kB / 0.8232 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004013/0.5315, allocations: 289.1 kB / 0.8235 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.5315, allocations: 0 / 0.8235 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5315, allocations: 0 / 0.8235 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.5315, allocations: 0 / 0.8235 GB, free: 2.375 MB / 0.5606 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.0005064/0.532, allocations: 442.2 kB / 0.8239 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.532, allocations: 13.22 kB / 0.8239 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.5321, allocations: 15.89 kB / 0.8239 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.5323, allocations: 190.1 kB / 0.8241 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.5323, allocations: 1.469 kB / 0.8241 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.5323, allocations: 4.375 kB / 0.8241 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001/0.5324, allocations: 43 kB / 0.8241 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.5324, allocations: 0 / 0.8241 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-06/0.5324, allocations: 1.094 kB / 0.8241 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.986e-06/0.5324, allocations: 0 / 0.8241 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.118e-05/0.5324, allocations: 23.86 kB / 0.8242 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.5326, allocations: 179 kB / 0.8243 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.889e-05/0.5327, allocations: 31.25 kB / 0.8244 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.21e-05/0.5327, allocations: 13.39 kB / 0.8244 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.5327, allocations: 17.5 kB / 0.8244 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.5328, allocations: 34.5 kB / 0.8244 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.5328, allocations: 5.031 kB / 0.8244 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001576/0.5329, allocations: 70.91 kB / 0.8245 GB, free: 1.301 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.533, allocations: 55.34 kB / 0.8246 GB, free: 1.234 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.5332, allocations: 210.6 kB / 0.8248 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.5332, allocations: 29.64 kB / 0.8248 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.276e-05/0.5333, allocations: 109.6 kB / 0.8249 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.685e-06/0.5333, allocations: 1.062 kB / 0.8249 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.5333, allocations: 29.55 kB / 0.8249 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.5335, allocations: 327.4 kB / 0.8252 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.596e-05/0.5335, allocations: 55.36 kB / 0.8253 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.656e-05/0.5336, allocations: 55.16 kB / 0.8253 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.768e-05/0.5337, allocations: 91.38 kB / 0.8254 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5337, allocations: 0 / 0.8254 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001796/0.5339, allocations: 164.3 kB / 0.8256 GB, free: 468 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.5339, allocations: 13.38 kB / 0.8256 GB, free: 460 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.5339, allocations: 1.375 kB / 0.8256 GB, free: 460 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.5339, allocations: 0 / 0.8256 GB, free: 460 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.105e-05/0.5339, allocations: 5.438 kB / 0.8256 GB, free: 456 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.5339, allocations: 0 / 0.8256 GB, free: 456 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.682e-05/0.5339, allocations: 10.64 kB / 0.8256 GB, free: 448 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.534, allocations: 1.375 kB / 0.8256 GB, free: 448 kB / 0.5606 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.0001502/0.5341, allocations: 135.9 kB / 0.8257 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.5341, allocations: 15.97 kB / 0.8258 GB, free: 308 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.5342, allocations: 64.19 kB / 0.8258 GB, free: 264 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.5342, allocations: 5.406 kB / 0.8258 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.5342, allocations: 0 / 0.8258 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.5342, allocations: 7.984 kB / 0.8258 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.5344, allocations: 176.9 kB / 0.826 GB, free: 44 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.5344, allocations: 1.375 kB / 0.826 GB, free: 44 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-06/0.5344, allocations: 3.938 kB / 0.826 GB, free: 40 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5344, allocations: 3.938 kB / 0.826 GB, free: 36 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.119e-06/0.5344, allocations: 1.375 kB / 0.826 GB, free: 36 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.5344, allocations: 0 / 0.826 GB, free: 36 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5344, allocations: 1.375 kB / 0.826 GB, free: 36 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.5345, allocations: 87.03 kB / 0.8261 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/0.5346, allocations: 91.73 kB / 0.8262 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.5346, allocations: 1.375 kB / 0.8262 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.246e-05/0.5346, allocations: 0 / 0.8262 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-06/0.5346, allocations: 1.375 kB / 0.8262 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.5346, allocations: 0 / 0.8262 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001241/0.5347, allocations: 150 kB / 0.8263 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5347, allocations: 0 / 0.8263 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003122/0.535, allocations: 93.95 kB / 0.8264 GB, free: 15.72 MB / 0.5762 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.000513/0.5355, allocations: 226.2 kB / 0.8266 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000186/0.5357, allocations: 121.4 kB / 0.8267 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5357, allocations: 4.062 kB / 0.8267 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.779e-05/0.5358, allocations: 14.02 kB / 0.8268 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.5359, allocations: 11.12 kB / 0.8268 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003201/0.5362, allocations: 211.8 kB / 0.827 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.5366, allocations: 0.7053 MB / 0.8277 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.879e-05/0.5366, allocations: 2.875 kB / 0.8277 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.894e-05/0.5366, allocations: 7.438 kB / 0.8277 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.5366, allocations: 0 / 0.8277 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of Templates: time 0.005369/0.542, allocations: 2.127 MB / 0.8297 GB, free: 13.53 MB / 0.5762 GB " [Timeout remaining time 659] 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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.27880741097033]