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.0006567/0.0006567, allocations: 76.17 kB / 9.932 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001019/0.001676, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006686/0.0006686, allocations: 165.1 kB / 11.26 MB, free: 2.914 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008644/0.001533, allocations: 463.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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.9591/0.9591, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09704/1.056, allocations: 53.66 MB / 243.3 MB, free: 15.59 MB / 250.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.5998/0.5998, allocations: 110.2 MB / 354.2 MB, free: 12.36 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. Notification: Performance of NFInstanceAPI.mkTop(): time 0.06713/0.6669, allocations: 34.95 MB / 389.2 MB, free: 9.344 MB / 378.7 MB " [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.593e-06/1.593e-06, allocations: 0 / 390.5 MB, free: 8.066 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.777e-05, allocations: 2.312 kB / 390.5 MB, free: 8.062 MB / 378.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001078/0.001096, allocations: 0.5597 MB / 391 MB, free: 7.504 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.002802, allocations: 1.664 MB / 392.7 MB, free: 5.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.002842, allocations: 0 / 392.7 MB, free: 5.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.002963, allocations: 71.81 kB / 392.8 MB, free: 5.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.047e-05/0.002994, allocations: 35.95 kB / 392.8 MB, free: 5.715 MB / 378.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'. Notification: Performance of NFTyping.typeClassSections: time 0.000648/0.003642, allocations: 231 kB / 393 MB, free: 5.488 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.664e-05/0.003728, allocations: 39.89 kB / 393.1 MB, free: 5.449 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.839e-05/0.003767, allocations: 3.938 kB / 393.1 MB, free: 5.445 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.638e-05/0.003833, allocations: 23.97 kB / 393.1 MB, free: 5.422 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.003888, allocations: 39.89 kB / 393.1 MB, free: 5.383 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.003902, allocations: 4 kB / 393.1 MB, free: 5.379 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/IBPSA/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: 'inertia' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.0009057/0.004808, allocations: 435.2 kB / 393.6 MB, free: 4.953 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.923e-05/0.004857, allocations: 27.92 kB / 393.6 MB, free: 4.926 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.913e-05/0.004876, allocations: 11.94 kB / 393.6 MB, free: 4.914 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.005191, allocations: 283.2 kB / 393.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.334e-05/0.005204, allocations: 0 / 393.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005205, allocations: 4 kB / 393.9 MB, free: 4.633 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.005221, allocations: 0 / 393.9 MB, free: 4.633 MB / 378.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.00039/0.005611, allocations: 375.5 kB / 394.3 MB, free: 4.242 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.005642, allocations: 12.03 kB / 394.3 MB, free: 4.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.005668, allocations: 8.922 kB / 394.3 MB, free: 4.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.005783, allocations: 133.5 kB / 394.4 MB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.005792, allocations: 4.375 kB / 394.4 MB, free: 4.062 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.0058, allocations: 4.375 kB / 394.4 MB, free: 4.059 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.5e-05/0.005865, allocations: 37.02 kB / 394.4 MB, free: 4.016 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.005873, allocations: 4.172 kB / 394.5 MB, free: 4.012 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-06/0.005878, allocations: 384 / 394.5 MB, free: 4.012 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.005884, allocations: 3.938 kB / 394.5 MB, free: 4.008 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.252e-05/0.005896, allocations: 4 kB / 394.5 MB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.149e-05/0.005988, allocations: 82.59 kB / 394.5 MB, free: 3.906 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.419e-05/0.006022, allocations: 14.58 kB / 394.6 MB, free: 3.883 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.244e-05/0.006034, allocations: 8.859 kB / 394.6 MB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.00608, allocations: 12.08 kB / 394.6 MB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.006101, allocations: 38.5 kB / 394.6 MB, free: 3.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.006102, allocations: 0 / 394.6 MB, free: 3.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 9.2e-05/0.006194, allocations: 33.7 kB / 394.6 MB, free: 3.773 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.006223, allocations: 51.41 kB / 394.7 MB, free: 3.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.006323, allocations: 178.4 kB / 394.9 MB, free: 3.523 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.006332, allocations: 25.7 kB / 394.9 MB, free: 3.492 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.506e-05/0.006367, allocations: 108.2 kB / 395 MB, free: 3.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-06/0.006376, allocations: 4 kB / 395 MB, free: 3.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.006403, allocations: 25.69 kB / 395 MB, free: 3.348 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.621e-05/0.006479, allocations: 330.7 kB / 395.4 MB, free: 3.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.47e-05/0.006494, allocations: 10.83 kB / 395.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.293e-05/0.006507, allocations: 19.88 kB / 395.4 MB, free: 2.984 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.661e-05/0.006544, allocations: 39.66 kB / 395.4 MB, free: 2.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.006546, allocations: 0 / 395.4 MB, free: 2.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 5.933e-05/0.006605, allocations: 65.64 kB / 395.5 MB, free: 2.871 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.006618, allocations: 7.984 kB / 395.5 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.00663, allocations: 0 / 395.5 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.514e-06/0.006637, allocations: 8.062 kB / 395.5 MB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.437e-05/0.006652, allocations: 0 / 395.5 MB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.006655, allocations: 3.984 kB / 395.5 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.955e-05/0.006675, allocations: 19.78 kB / 395.5 MB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.006681, allocations: 0 / 395.5 MB, free: 2.832 MB / 378.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.13e-05/0.006753, allocations: 116.6 kB / 395.6 MB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-06/0.006759, allocations: 7.984 kB / 395.6 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.84e-05/0.006827, allocations: 42.19 kB / 395.7 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.006829, allocations: 4.031 kB / 395.7 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.00683, allocations: 0 / 395.7 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.006833, allocations: 0 / 395.7 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.957e-05/0.006892, allocations: 85.81 kB / 395.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.006893, allocations: 0 / 395.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-06/0.006897, allocations: 4 kB / 395.8 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-06/0.006905, allocations: 3.953 kB / 395.8 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.006906, allocations: 4 kB / 395.8 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-06/0.006909, allocations: 0 / 395.8 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.00691, allocations: 0 / 395.8 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.006911, allocations: 3.984 kB / 395.8 MB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.557e-05/0.006957, allocations: 70.67 kB / 395.9 MB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.006968, allocations: 4 kB / 395.9 MB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.006976, allocations: 3.984 kB / 395.9 MB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.006987, allocations: 4 kB / 395.9 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-06/0.006988, allocations: 3.938 kB / 395.9 MB, free: 2.418 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.958e-05/0.007028, allocations: 49.98 kB / 395.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007028, allocations: 0 / 395.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002344/0.007263, allocations: 87.8 kB / 396 MB, free: 2.281 MB / 378.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.0004192/0.007682, allocations: 263.2 kB / 396.3 MB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.007782, allocations: 70.52 kB / 396.3 MB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.007787, allocations: 0 / 396.3 MB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.183e-06/0.007794, allocations: 12.8 kB / 396.3 MB, free: 1.926 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.847e-05/0.007862, allocations: 15.69 kB / 396.4 MB, free: 1.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002227/0.008085, allocations: 194.8 kB / 396.6 MB, free: 1.691 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.859e-05/0.008113, allocations: 63.34 kB / 396.6 MB, free: 1.609 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.577e-05/0.008129, allocations: 7.984 kB / 396.6 MB, free: 1.602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.777e-05/0.008157, allocations: 51.38 kB / 396.7 MB, free: 1.551 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.008158, allocations: 4 kB / 396.7 MB, free: 1.547 MB / 378.7 MB Notification: Performance of Templates: time 0.003917/0.01207, allocations: 2.549 MB / 399.2 MB, free: 15 MB / 394.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.190095067024231]