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.00124/0.00124, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.001418/0.001418, allocations: 212.7 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.493/1.493, allocations: 230.6 MB / 256.8 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] 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.9092/0.9092, allocations: 145 MB / 458.2 MB, free: 15.54 MB / 366.1 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: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BuildSysPro requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 61.19 kB / 0.6339 GB, free: 7.379 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1919, allocations: 87.88 MB / 0.7197 GB, free: 15.5 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001809/0.1937, allocations: 0.5159 MB / 0.7202 GB, free: 14.99 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002555/0.1963, allocations: 1.689 MB / 0.7219 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.213e-05/0.1963, allocations: 0 / 0.7219 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.1965, allocations: 63.83 kB / 0.7219 GB, free: 13.22 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.764e-05/0.1966, allocations: 27.97 kB / 0.722 GB, free: 13.2 MB / 0.545 GB [/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.0009798/0.1976, allocations: 275.2 kB / 0.7222 GB, free: 12.93 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.065e-05/0.1976, allocations: 31.91 kB / 0.7223 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.1977, allocations: 4 kB / 0.7223 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.35e-05/0.1977, allocations: 23.95 kB / 0.7223 GB, free: 12.87 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.1978, allocations: 43.89 kB / 0.7223 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.1978, allocations: 0 / 0.7223 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007523/0.1986, allocations: 463.2 kB / 0.7228 GB, free: 12.37 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.132e-05/0.1986, allocations: 27.91 kB / 0.7228 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.373e-05/0.1987, allocations: 27.69 kB / 0.7228 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.1991, allocations: 303.1 kB / 0.7231 GB, free: 12.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1991, allocations: 4 kB / 0.7231 GB, free: 12.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1991, allocations: 0 / 0.7231 GB, free: 12.02 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.1991, allocations: 0 / 0.7231 GB, free: 12.02 MB / 0.545 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.0004851/0.1996, allocations: 365.3 kB / 0.7235 GB, free: 11.63 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1996, allocations: 8.031 kB / 0.7235 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.379e-05/0.1996, allocations: 192 / 0.7235 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.158e-05/0.1997, allocations: 34.75 kB / 0.7235 GB, free: 11.58 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.119e-05/0.1997, allocations: 8.891 kB / 0.7235 GB, free: 11.57 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.1999, allocations: 135 kB / 0.7236 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.1999, allocations: 384 / 0.7236 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.1999, allocations: 384 / 0.7236 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.2, allocations: 45.56 kB / 0.7237 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.2, allocations: 0 / 0.7237 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.2, allocations: 0 / 0.7237 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2, allocations: 4 kB / 0.7237 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.225e-05/0.2001, allocations: 15.98 kB / 0.7237 GB, free: 11.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001985/0.2003, allocations: 176.6 kB / 0.7239 GB, free: 11.13 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 6.076e-05/0.2003, allocations: 26.58 kB / 0.7239 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.693e-05/0.2003, allocations: 16.91 kB / 0.7239 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.2004, allocations: 11.94 kB / 0.7239 GB, free: 11.06 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.2004, allocations: 34.5 kB / 0.724 GB, free: 11.02 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.2004, allocations: 0 / 0.724 GB, free: 11.02 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.2006, allocations: 65.62 kB / 0.724 GB, free: 10.95 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.2006, allocations: 55.53 kB / 0.7241 GB, free: 10.88 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.2008, allocations: 222.6 kB / 0.7243 GB, free: 10.65 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.2009, allocations: 25.7 kB / 0.7243 GB, free: 10.62 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.651e-05/0.2009, allocations: 100.1 kB / 0.7244 GB, free: 10.52 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.018e-05/0.2009, allocations: 0 / 0.7244 GB, free: 10.52 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.201, allocations: 33.7 kB / 0.7244 GB, free: 10.48 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2011, allocations: 322.8 kB / 0.7248 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.189e-05/0.2012, allocations: 55.97 kB / 0.7248 GB, free: 10.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.88e-05/0.2013, allocations: 59.92 kB / 0.7249 GB, free: 10.04 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.2014, allocations: 96.77 kB / 0.725 GB, free: 9.945 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2014, allocations: 0 / 0.725 GB, free: 9.945 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001818/0.2016, allocations: 159.8 kB / 0.7251 GB, free: 9.785 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2016, allocations: 9.719 kB / 0.7251 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.2016, allocations: 0 / 0.7251 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2016, allocations: 0 / 0.7251 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.425e-05/0.2016, allocations: 7.922 kB / 0.7251 GB, free: 9.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2016, allocations: 0 / 0.7251 GB, free: 9.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.969e-05/0.2017, allocations: 15.84 kB / 0.7251 GB, free: 9.754 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.2017, allocations: 4.062 kB / 0.7251 GB, free: 9.75 MB / 0.545 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.0001845/0.2019, allocations: 129.8 kB / 0.7253 GB, free: 9.613 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.2019, allocations: 15.83 kB / 0.7253 GB, free: 9.598 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.202, allocations: 62.17 kB / 0.7253 GB, free: 9.527 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.202, allocations: 3.938 kB / 0.7253 GB, free: 9.523 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.202, allocations: 0 / 0.7253 GB, free: 9.523 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.202, allocations: 4 kB / 0.7254 GB, free: 9.52 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.2021, allocations: 156.7 kB / 0.7255 GB, free: 9.324 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2022, allocations: 7.938 kB / 0.7255 GB, free: 9.316 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-06/0.2022, allocations: 3.984 kB / 0.7255 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2022, allocations: 0 / 0.7255 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.2022, allocations: 0 / 0.7255 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2022, allocations: 0 / 0.7255 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2022, allocations: 0 / 0.7255 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.733e-05/0.2023, allocations: 85.02 kB / 0.7256 GB, free: 9.211 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.775e-05/0.2023, allocations: 23.81 kB / 0.7256 GB, free: 9.188 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.2023, allocations: 0 / 0.7256 GB, free: 9.188 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.2023, allocations: 0 / 0.7256 GB, free: 9.188 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.2023, allocations: 3.984 kB / 0.7256 GB, free: 9.184 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.2023, allocations: 4 kB / 0.7256 GB, free: 9.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001262/0.2025, allocations: 144.4 kB / 0.7258 GB, free: 9.039 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2025, allocations: 0 / 0.7258 GB, free: 9.039 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00034/0.2028, allocations: 87.8 kB / 0.7258 GB, free: 8.953 MB / 0.545 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.0008704/0.2037, allocations: 0.7607 MB / 0.7266 GB, free: 8.184 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001938/0.2039, allocations: 117.7 kB / 0.7267 GB, free: 8.062 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2039, allocations: 0 / 0.7267 GB, free: 8.062 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.888e-05/0.2039, allocations: 11.98 kB / 0.7267 GB, free: 8.051 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.204, allocations: 9.812 kB / 0.7267 GB, free: 8.043 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.2058, allocations: 1.817 MB / 0.7285 GB, free: 6.141 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.2062, allocations: 0.7078 MB / 0.7292 GB, free: 5.406 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.924e-05/0.2062, allocations: 0 / 0.7292 GB, free: 5.406 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.2062, allocations: 31.42 kB / 0.7292 GB, free: 5.379 MB / 0.545 GB Notification: Performance of SimCode: time 2.7e-07/0.2062, allocations: 0 / 0.7292 GB, free: 5.379 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.2308, allocations: 4.024 MB / 0.7331 GB, free: 1.512 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.19, allocations: 13.91 kB / 0.7332 GB, free: 1.504 MB / 0.545 GB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.918004898005165] Failed to read output from testmodel.py, exit status != 0: 11.349364339956082 11.375132137 11.171396464 Calling exit ...