Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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.0009312/0.0009312, allocations: 82.64 kB / 21.47 MB, free: 3.027 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: 161.1 kB / 24.87 MB, free: 9.281 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.9495/0.9495, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo): time 0.5923/0.5923, allocations: 110.3 MB / 372.1 MB, free: 12.33 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:44:3-56:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:58:3-65:19:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:67:3-72:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:74:3-79:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 476.4 MB, free: 15.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.57e-05, allocations: 4.938 kB / 476.4 MB, free: 15.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001066/0.001082, allocations: 0.5436 MB / 476.9 MB, free: 14.78 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.002652, allocations: 1.636 MB / 478.6 MB, free: 13.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.866e-05/0.002691, allocations: 3.938 kB / 478.6 MB, free: 13.67 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.002865, allocations: 61.22 kB / 478.6 MB, free: 13.66 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.707e-05/0.002892, allocations: 29.11 kB / 478.6 MB, free: 13.66 MB / 410.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/BuildSysPro 3.7.0/IBPSA/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.0006496/0.003542, allocations: 269.4 kB / 478.9 MB, free: 13.56 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.643e-05/0.003608, allocations: 36.66 kB / 478.9 MB, free: 13.55 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.278e-05/0.003641, allocations: 8.125 kB / 479 MB, free: 13.55 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.185e-05/0.003683, allocations: 17.69 kB / 479 MB, free: 13.55 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.662e-05/0.003739, allocations: 43.09 kB / 479 MB, free: 13.54 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.003759, allocations: 2.781 kB / 479 MB, free: 13.54 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005414/0.0043, allocations: 432.1 kB / 479.4 MB, free: 13.42 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.263e-05/0.004363, allocations: 26.16 kB / 479.5 MB, free: 13.41 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.004384, allocations: 12.53 kB / 479.5 MB, free: 13.41 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.004746, allocations: 353.7 kB / 479.8 MB, free: 13.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.004748, allocations: 0 / 479.8 MB, free: 13.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.004749, allocations: 0 / 479.8 MB, free: 13.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.004754, allocations: 0 / 479.8 MB, free: 13.3 MB / 410.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.0002931/0.005047, allocations: 466.9 kB / 480.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.005078, allocations: 10.75 kB / 480.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.005105, allocations: 7.578 kB / 480.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.082e-05/0.005196, allocations: 136.5 kB / 480.4 MB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.005205, allocations: 7.875 kB / 480.4 MB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-06/0.005211, allocations: 384 / 480.4 MB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.739e-05/0.005258, allocations: 32.67 kB / 480.5 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-06/0.005263, allocations: 1.312 kB / 480.5 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-06/0.005268, allocations: 384 / 480.5 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.005273, allocations: 3.938 kB / 480.5 MB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.486e-06/0.005282, allocations: 8.531 kB / 480.5 MB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.294e-05/0.005374, allocations: 124.1 kB / 480.6 MB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.722e-05/0.005402, allocations: 25.28 kB / 480.6 MB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.958e-06/0.005412, allocations: 7.688 kB / 480.6 MB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.005442, allocations: 9.062 kB / 480.6 MB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.359e-05/0.005455, allocations: 37.2 kB / 480.7 MB, free: 12.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.005456, allocations: 0 / 480.7 MB, free: 12.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 8.316e-05/0.005539, allocations: 50.48 kB / 480.7 MB, free: 12.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.604e-05/0.005555, allocations: 56.19 kB / 480.8 MB, free: 12.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.572e-05/0.005651, allocations: 261.4 kB / 481 MB, free: 12.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.32e-06/0.005656, allocations: 31.7 kB / 481.1 MB, free: 12.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.005884, allocations: 157.7 kB / 481.2 MB, free: 27.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.018e-05/0.005894, allocations: 2.625 kB / 481.2 MB, free: 27.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.005929, allocations: 41.48 kB / 481.3 MB, free: 27.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.006032, allocations: 0.4998 MB / 481.8 MB, free: 27.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.006046, allocations: 11.12 kB / 481.8 MB, free: 27.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.14e-05/0.006057, allocations: 11.69 kB / 481.8 MB, free: 27.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.566e-05/0.006093, allocations: 39.38 kB / 481.8 MB, free: 27.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.006094, allocations: 0 / 481.8 MB, free: 27.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 6.822e-05/0.006163, allocations: 89.89 kB / 481.9 MB, free: 27.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.006173, allocations: 5.969 kB / 481.9 MB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.006183, allocations: 0 / 481.9 MB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.00619, allocations: 0.8125 kB / 481.9 MB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.588e-06/0.006199, allocations: 2.812 kB / 481.9 MB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.006202, allocations: 5.047 kB / 481.9 MB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.006222, allocations: 14.23 kB / 481.9 MB, free: 27.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.006228, allocations: 0 / 481.9 MB, free: 27.33 MB / 426.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 6.638e-05/0.006294, allocations: 157.9 kB / 482.1 MB, free: 27.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-06/0.006302, allocations: 15.94 kB / 482.1 MB, free: 27.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.755e-05/0.006359, allocations: 50.36 kB / 482.2 MB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.00636, allocations: 0 / 482.2 MB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.006362, allocations: 0.6562 kB / 482.2 MB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.006366, allocations: 8.297 kB / 482.2 MB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.294e-05/0.006419, allocations: 118.5 kB / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.006419, allocations: 0 / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.006421, allocations: 4.125 kB / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.006422, allocations: 0 / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-06/0.006426, allocations: 0 / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.006426, allocations: 0 / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.006427, allocations: 4.922 kB / 482.3 MB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.513e-05/0.006462, allocations: 78.78 kB / 482.4 MB, free: 26.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.536e-06/0.006471, allocations: 17.41 kB / 482.4 MB, free: 26.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-06/0.006479, allocations: 4 kB / 482.4 MB, free: 26.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.652e-06/0.006486, allocations: 0 / 482.4 MB, free: 26.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-06/0.006494, allocations: 7.047 kB / 482.4 MB, free: 26.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-06/0.006495, allocations: 0 / 482.4 MB, free: 26.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.645e-05/0.006552, allocations: 161.9 kB / 482.6 MB, free: 26.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006552, allocations: 0.5625 kB / 482.6 MB, free: 26.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00023/0.006782, allocations: 88.31 kB / 482.6 MB, free: 26.74 MB / 426.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.0003371/0.007119, allocations: 257.1 kB / 482.9 MB, free: 26.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.23e-05/0.007211, allocations: 79.92 kB / 483 MB, free: 26.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.007213, allocations: 0 / 483 MB, free: 26.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.352e-06/0.007219, allocations: 14.75 kB / 483 MB, free: 26.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001034/0.007322, allocations: 10.72 kB / 483 MB, free: 26.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001797/0.007502, allocations: 195.3 kB / 483.2 MB, free: 26.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.326e-05/0.007525, allocations: 66.27 kB / 483.3 MB, free: 26.31 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.991e-05/0.007545, allocations: 3.5 kB / 483.3 MB, free: 26.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.11e-05/0.007576, allocations: 68.58 kB / 483.3 MB, free: 26.24 MB / 426.7 MB Notification: Performance of SimCode: time 6.82e-07/0.007577, allocations: 2.156 kB / 483.3 MB, free: 26.24 MB / 426.7 MB Notification: Performance of Templates: time 0.004168/0.01175, allocations: 2.539 MB / 485.9 MB, free: 26.11 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.537812609691173]