Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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.0007223/0.0007223, allocations: 76.17 kB / 9.932 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009431/0.001665, 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.001714/0.001714, allocations: 165.1 kB / 11.26 MB, free: 2.914 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001474/0.003188, 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.9609/0.9609, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1056/1.066, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.596/0.596, allocations: 110.2 MB / 354.2 MB, free: 12.39 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.07359/0.6696, allocations: 34.95 MB / 389.2 MB, free: 9.363 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 390.5 MB, free: 8.078 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.295e-05/1.451e-05, allocations: 2.312 kB / 390.5 MB, free: 8.074 MB / 378.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0009943/0.001009, allocations: 0.5596 MB / 391 MB, free: 7.516 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.002717, allocations: 1.664 MB / 392.7 MB, free: 5.832 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.953e-05/0.002746, allocations: 3.938 kB / 392.7 MB, free: 5.828 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.699e-05/0.002823, allocations: 19.97 kB / 392.7 MB, free: 5.809 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.138e-05/0.002845, allocations: 15.92 kB / 392.7 MB, free: 5.793 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.0005334/0.003378, allocations: 235 kB / 393 MB, free: 5.562 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.905e-05/0.003437, allocations: 19.92 kB / 393 MB, free: 5.543 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.127e-05/0.003468, allocations: 4 kB / 393 MB, free: 5.539 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.161e-05/0.00352, allocations: 15.97 kB / 393 MB, free: 5.523 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.435e-05/0.003554, allocations: 19.92 kB / 393 MB, free: 5.504 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.003567, allocations: 0 / 393 MB, free: 5.504 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.0005011/0.004068, allocations: 435.2 kB / 393.5 MB, free: 5.078 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.26e-05/0.00411, allocations: 19.94 kB / 393.5 MB, free: 5.059 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.424e-05/0.004124, allocations: 7.938 kB / 393.5 MB, free: 5.051 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.004407, allocations: 279.2 kB / 393.8 MB, free: 4.777 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.271e-05/0.00442, allocations: 0 / 393.8 MB, free: 4.777 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.00442, allocations: 0 / 393.8 MB, free: 4.777 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.004433, allocations: 0 / 393.8 MB, free: 4.777 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.0003133/0.004746, allocations: 343.8 kB / 394.1 MB, free: 4.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.708e-05/0.004773, allocations: 16.03 kB / 394.1 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.772e-05/0.004791, allocations: 0.9375 kB / 394.1 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.752e-05/0.004889, allocations: 121.6 kB / 394.2 MB, free: 4.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-06/0.004897, allocations: 8.375 kB / 394.2 MB, free: 4.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-06/0.004903, allocations: 4.375 kB / 394.2 MB, free: 4.246 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.135e-05/0.004954, allocations: 33.08 kB / 394.3 MB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.64e-06/0.00496, allocations: 192 / 394.3 MB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-06/0.004964, allocations: 384 / 394.3 MB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.004969, allocations: 7.938 kB / 394.3 MB, free: 4.199 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.588e-06/0.004979, allocations: 3.938 kB / 394.3 MB, free: 4.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.683e-05/0.005045, allocations: 70.69 kB / 394.3 MB, free: 4.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.902e-05/0.005074, allocations: 22.61 kB / 394.4 MB, free: 4.078 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.005089, allocations: 8.859 kB / 394.4 MB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.005127, allocations: 8.047 kB / 394.4 MB, free: 4.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.005145, allocations: 34.56 kB / 394.4 MB, free: 4.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 6.51e-07/0.005145, allocations: 3.938 kB / 394.4 MB, free: 4.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 6.169e-05/0.005207, allocations: 33.64 kB / 394.5 MB, free: 3.973 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.005233, allocations: 51.41 kB / 394.5 MB, free: 3.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.559e-05/0.005319, allocations: 154.4 kB / 394.7 MB, free: 3.746 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.005329, allocations: 25.83 kB / 394.7 MB, free: 3.715 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.561e-05/0.005365, allocations: 100.1 kB / 394.8 MB, free: 3.613 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.016e-05/0.005375, allocations: 3.984 kB / 394.8 MB, free: 3.609 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-05/0.0054, allocations: 25.69 kB / 394.8 MB, free: 3.578 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.005484, allocations: 326.8 kB / 395.1 MB, free: 3.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.361e-05/0.005497, allocations: 10.83 kB / 395.1 MB, free: 3.238 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.005507, allocations: 8 kB / 395.1 MB, free: 3.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.205e-05/0.005539, allocations: 27.73 kB / 395.2 MB, free: 3.199 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.005541, allocations: 3.938 kB / 395.2 MB, free: 3.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 5.673e-05/0.005597, allocations: 61.62 kB / 395.2 MB, free: 3.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.005609, allocations: 8 kB / 395.2 MB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.005618, allocations: 4.062 kB / 395.3 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.821e-06/0.005624, allocations: 0 / 395.3 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.256e-05/0.005636, allocations: 3.984 kB / 395.3 MB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.005639, allocations: 3.984 kB / 395.3 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.605e-05/0.005655, allocations: 11.89 kB / 395.3 MB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.00566, allocations: 0 / 395.3 MB, free: 3.098 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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.843e-05/0.005728, allocations: 116.6 kB / 395.4 MB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-06/0.005734, allocations: 4 kB / 395.4 MB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.367e-05/0.005788, allocations: 49.42 kB / 395.4 MB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.11e-07/0.005788, allocations: 4.031 kB / 395.4 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-07/0.005789, allocations: 0 / 395.4 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.005791, allocations: 0 / 395.4 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.887e-05/0.005839, allocations: 77.81 kB / 395.5 MB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.00584, allocations: 4 kB / 395.5 MB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.523e-06/0.005842, allocations: 0 / 395.5 MB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-06/0.005849, allocations: 7.906 kB / 395.5 MB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.005851, allocations: 7.984 kB / 395.5 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-06/0.005853, allocations: 3.938 kB / 395.5 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.005854, allocations: 0 / 395.5 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.005855, allocations: 0 / 395.5 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.138e-05/0.005896, allocations: 70.72 kB / 395.6 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.717e-06/0.005905, allocations: 11.92 kB / 395.6 MB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.981e-06/0.005911, allocations: 0 / 395.6 MB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-06/0.005918, allocations: 0 / 395.6 MB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-06/0.005919, allocations: 0 / 395.6 MB, free: 2.688 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.407e-05/0.005943, allocations: 36.83 kB / 395.7 MB, free: 2.648 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005943, allocations: 0 / 395.7 MB, free: 2.648 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001815/0.006125, allocations: 83.8 kB / 395.7 MB, free: 2.566 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.0003851/0.00651, allocations: 278 kB / 396 MB, free: 2.297 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.28e-05/0.006583, allocations: 54.55 kB / 396.1 MB, free: 2.234 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.006587, allocations: 4 kB / 396.1 MB, free: 2.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.378e-06/0.006592, allocations: 4.859 kB / 396.1 MB, free: 2.223 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.266e-05/0.006644, allocations: 15.81 kB / 396.1 MB, free: 2.207 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001586/0.006803, allocations: 158.4 kB / 396.2 MB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.887e-05/0.006832, allocations: 59.34 kB / 396.3 MB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.321e-05/0.006845, allocations: 7.953 kB / 396.3 MB, free: 1.934 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.804e-05/0.006873, allocations: 55.36 kB / 396.4 MB, free: 1.879 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.006874, allocations: 0 / 396.4 MB, free: 1.879 MB / 378.7 MB Notification: Performance of Templates: time 0.004091/0.01096, allocations: 2.53 MB / 398.9 MB, free: 15.35 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1354603404179215]