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.001372/0.001372, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.001063/0.001063, allocations: 170 kB / 23.27 MB, free: 1.223 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.961/0.961, allocations: 177.2 MB / 203.7 MB, free: 5.496 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.001766/0.001766, allocations: 232.7 kB / 260.5 MB, free: 12.66 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.695/0.695, allocations: 138.4 MB / 455.5 MB, free: 29.96 MB / 410.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.292e-06/1.292e-06, allocations: 0 / 0.5555 GB, free: 15.9 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.28e-05, allocations: 2.312 kB / 0.5555 GB, free: 15.89 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001387/0.00141, allocations: 0.5328 MB / 0.5561 GB, free: 15.36 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.003353, allocations: 1.637 MB / 0.5577 GB, free: 13.7 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.003388, allocations: 3.938 kB / 0.5577 GB, free: 13.7 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.003558, allocations: 59.84 kB / 0.5577 GB, free: 13.64 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.607e-05/0.003594, allocations: 31.94 kB / 0.5577 GB, free: 13.61 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.0007495/0.004344, allocations: 275 kB / 0.558 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.958e-05/0.004413, allocations: 31.91 kB / 0.558 GB, free: 13.31 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.966e-05/0.004443, allocations: 4 kB / 0.558 GB, free: 13.3 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.023e-05/0.004493, allocations: 23.95 kB / 0.5581 GB, free: 13.28 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.627e-05/0.004549, allocations: 43.89 kB / 0.5581 GB, free: 13.24 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.004562, allocations: 0 / 0.5581 GB, free: 13.24 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005799/0.005141, allocations: 431.1 kB / 0.5585 GB, free: 12.82 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.73e-05/0.005189, allocations: 27.92 kB / 0.5585 GB, free: 12.79 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.005208, allocations: 11.94 kB / 0.5586 GB, free: 12.78 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003875/0.005595, allocations: 351 kB / 0.5589 GB, free: 12.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.005598, allocations: 0 / 0.5589 GB, free: 12.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.005599, allocations: 0 / 0.5589 GB, free: 12.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.005602, allocations: 4 kB / 0.5589 GB, free: 12.43 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.0003552/0.005957, allocations: 471.6 kB / 0.5593 GB, free: 11.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.005995, allocations: 9.938 kB / 0.5594 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.81e-05/0.006024, allocations: 8.891 kB / 0.5594 GB, free: 11.92 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.006138, allocations: 133 kB / 0.5595 GB, free: 11.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-06/0.006146, allocations: 4.375 kB / 0.5595 GB, free: 11.76 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-06/0.006151, allocations: 384 / 0.5595 GB, free: 11.76 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.379e-05/0.006205, allocations: 30.27 kB / 0.5595 GB, free: 11.72 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.006212, allocations: 192 / 0.5595 GB, free: 11.72 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-06/0.006217, allocations: 384 / 0.5595 GB, free: 11.72 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.006223, allocations: 3.938 kB / 0.5595 GB, free: 11.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.797e-06/0.006232, allocations: 7.922 kB / 0.5595 GB, free: 11.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001241/0.006356, allocations: 137.1 kB / 0.5597 GB, free: 11.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.998e-05/0.006386, allocations: 23.06 kB / 0.5597 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.108e-05/0.006397, allocations: 7.688 kB / 0.5597 GB, free: 11.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.006434, allocations: 19.95 kB / 0.5597 GB, free: 11.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.006455, allocations: 37.38 kB / 0.5597 GB, free: 11.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 6.72e-07/0.006456, allocations: 0 / 0.5597 GB, free: 11.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 9.599e-05/0.006552, allocations: 45.55 kB / 0.5598 GB, free: 11.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.369e-05/0.006576, allocations: 51.41 kB / 0.5598 GB, free: 11.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.006732, allocations: 270.6 kB / 0.5601 GB, free: 11.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.006743, allocations: 25.7 kB / 0.5601 GB, free: 11.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.006805, allocations: 162.8 kB / 0.5603 GB, free: 10.85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.558e-06/0.006815, allocations: 3.938 kB / 0.5603 GB, free: 10.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.006858, allocations: 39.34 kB / 0.5603 GB, free: 10.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.006993, allocations: 0.508 MB / 0.5608 GB, free: 10.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.954e-05/0.007013, allocations: 8 kB / 0.5608 GB, free: 10.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.441e-05/0.007027, allocations: 8 kB / 0.5608 GB, free: 10.26 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.762e-05/0.007075, allocations: 40.28 kB / 0.5609 GB, free: 10.22 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.007077, allocations: 0 / 0.5609 GB, free: 10.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.328e-05/0.00717, allocations: 85.59 kB / 0.561 GB, free: 10.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.007181, allocations: 4 kB / 0.561 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.007193, allocations: 0 / 0.561 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.007204, allocations: 0 / 0.561 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.35e-05/0.007218, allocations: 7.984 kB / 0.561 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-06/0.00722, allocations: 0 / 0.561 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.539e-05/0.007245, allocations: 19.83 kB / 0.561 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.007252, allocations: 4 kB / 0.561 GB, free: 10.09 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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.638e-05/0.007329, allocations: 156.6 kB / 0.5611 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.007339, allocations: 11.91 kB / 0.5611 GB, free: 9.918 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.924e-05/0.007418, allocations: 46.12 kB / 0.5612 GB, free: 9.867 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.00742, allocations: 4 kB / 0.5612 GB, free: 9.863 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.007422, allocations: 0 / 0.5612 GB, free: 9.863 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.007425, allocations: 3.938 kB / 0.5612 GB, free: 9.859 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.508e-05/0.00751, allocations: 117.3 kB / 0.5613 GB, free: 9.719 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.007511, allocations: 0 / 0.5613 GB, free: 9.719 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.019e-06/0.007516, allocations: 7.984 kB / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.007517, allocations: 0 / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-06/0.00752, allocations: 0 / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.007521, allocations: 0 / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.007522, allocations: 0 / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.83e-05/0.007581, allocations: 80.28 kB / 0.5614 GB, free: 9.609 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.169e-05/0.007592, allocations: 7.906 kB / 0.5614 GB, free: 9.602 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.007603, allocations: 7.984 kB / 0.5614 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.048e-05/0.007614, allocations: 0 / 0.5614 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.877e-06/0.007623, allocations: 4.031 kB / 0.5614 GB, free: 9.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.007624, allocations: 0 / 0.5614 GB, free: 9.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.401e-05/0.007698, allocations: 172.2 kB / 0.5616 GB, free: 9.422 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007699, allocations: 0 / 0.5616 GB, free: 9.422 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.007996, allocations: 91.8 kB / 0.5617 GB, free: 9.332 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.0004282/0.008424, allocations: 260.7 kB / 0.5619 GB, free: 9.105 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.00877, allocations: 85.3 kB / 0.562 GB, free: 9.012 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.008772, allocations: 0 / 0.562 GB, free: 9.012 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 6.903e-06/0.008779, allocations: 7.688 kB / 0.562 GB, free: 9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.008916, allocations: 9.375 kB / 0.562 GB, free: 8.992 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002326/0.009149, allocations: 190.9 kB / 0.5622 GB, free: 8.777 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.814e-05/0.009187, allocations: 71.19 kB / 0.5623 GB, free: 8.688 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.745e-05/0.009204, allocations: 128 / 0.5623 GB, free: 8.688 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.539e-05/0.00924, allocations: 74.2 kB / 0.5623 GB, free: 8.613 MB / 490.7 MB Notification: Performance of SimCode: time 5.41e-07/0.00924, allocations: 0 / 0.5623 GB, free: 8.613 MB / 490.7 MB Notification: Performance of Templates: time 0.003894/0.01313, allocations: 2.537 MB / 0.5648 GB, free: 6.078 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.489610891789198]