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.001767/0.001767, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002343/0.002343, allocations: 221.7 kB / 23.03 MB, free: 4.945 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.9334/0.9334, allocations: 145 MB / 458.2 MB, free: 15.26 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.002246/0.002246, allocations: 62.56 kB / 0.6338 GB, free: 6.73 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1732, allocations: 87.89 MB / 0.7197 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001808/0.175, allocations: 0.5122 MB / 0.7202 GB, free: 14.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002518/0.1775, allocations: 1.607 MB / 0.7217 GB, free: 12.72 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.325e-05/0.1775, allocations: 3.938 kB / 0.7217 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.1777, allocations: 55.86 kB / 0.7218 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.984e-05/0.1777, allocations: 43.94 kB / 0.7218 GB, free: 12.62 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.0009396/0.1787, allocations: 263.2 kB / 0.7221 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.225e-05/0.1788, allocations: 31.97 kB / 0.7221 GB, free: 12.33 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.385e-05/0.1788, allocations: 3.938 kB / 0.7221 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.845e-05/0.1788, allocations: 23.95 kB / 0.7221 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.064e-05/0.1789, allocations: 51.83 kB / 0.7222 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1789, allocations: 0 / 0.7222 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007927/0.1797, allocations: 463.2 kB / 0.7226 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.512e-05/0.1798, allocations: 27.92 kB / 0.7227 GB, free: 11.77 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.1798, allocations: 19.75 kB / 0.7227 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.1803, allocations: 299.1 kB / 0.723 GB, free: 11.46 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1803, allocations: 0 / 0.723 GB, free: 11.46 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1803, allocations: 0 / 0.723 GB, free: 11.46 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.1803, allocations: 0 / 0.723 GB, free: 11.46 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.0004706/0.1808, allocations: 365.3 kB / 0.7233 GB, free: 11.07 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1808, allocations: 20.02 kB / 0.7233 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.139e-05/0.1808, allocations: 192 / 0.7233 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.332e-05/0.1809, allocations: 30.75 kB / 0.7234 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.845e-05/0.1809, allocations: 8.891 kB / 0.7234 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.1811, allocations: 127 kB / 0.7235 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.099e-06/0.1811, allocations: 384 / 0.7235 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.1811, allocations: 384 / 0.7235 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.307e-05/0.1812, allocations: 41.62 kB / 0.7235 GB, free: 10.81 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1812, allocations: 3.938 kB / 0.7235 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.1812, allocations: 4 kB / 0.7235 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-06/0.1812, allocations: 8 kB / 0.7235 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.717e-05/0.1812, allocations: 15.98 kB / 0.7236 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001767/0.1814, allocations: 160.7 kB / 0.7237 GB, free: 10.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 6.457e-05/0.1815, allocations: 30.56 kB / 0.7237 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.385e-05/0.1815, allocations: 12.92 kB / 0.7238 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.1815, allocations: 11.94 kB / 0.7238 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.1815, allocations: 34.55 kB / 0.7238 GB, free: 10.47 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1815, allocations: 0 / 0.7238 GB, free: 10.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001528/0.1817, allocations: 65.58 kB / 0.7239 GB, free: 10.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.1817, allocations: 55.41 kB / 0.7239 GB, free: 10.33 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.182, allocations: 226.8 kB / 0.7241 GB, free: 10.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.182, allocations: 25.7 kB / 0.7242 GB, free: 10.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.028e-05/0.182, allocations: 112.1 kB / 0.7243 GB, free: 9.953 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.276e-06/0.1821, allocations: 0 / 0.7243 GB, free: 9.953 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.1821, allocations: 29.7 kB / 0.7243 GB, free: 9.918 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1823, allocations: 322.8 kB / 0.7246 GB, free: 9.594 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.961e-05/0.1823, allocations: 51.98 kB / 0.7246 GB, free: 9.543 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.14e-05/0.1824, allocations: 59.97 kB / 0.7247 GB, free: 9.484 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.1825, allocations: 88.72 kB / 0.7248 GB, free: 9.395 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1825, allocations: 0 / 0.7248 GB, free: 9.395 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002011/0.1827, allocations: 164.1 kB / 0.7249 GB, free: 9.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.1827, allocations: 11.98 kB / 0.725 GB, free: 9.219 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.1827, allocations: 11.88 kB / 0.725 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.1827, allocations: 0 / 0.725 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.079e-05/0.1828, allocations: 0 / 0.725 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.1828, allocations: 0 / 0.725 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.167e-05/0.1828, allocations: 15.84 kB / 0.725 GB, free: 9.191 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-06/0.1828, allocations: 0 / 0.725 GB, free: 9.191 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.0001674/0.183, allocations: 125.8 kB / 0.7251 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.183, allocations: 15.88 kB / 0.7251 GB, free: 9.043 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.1831, allocations: 70.12 kB / 0.7252 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.1831, allocations: 0 / 0.7252 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1831, allocations: 0 / 0.7252 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1831, allocations: 3.984 kB / 0.7252 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.1833, allocations: 160.7 kB / 0.7253 GB, free: 8.762 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.1833, allocations: 3.938 kB / 0.7253 GB, free: 8.758 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.633e-06/0.1833, allocations: 4 kB / 0.7253 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1833, allocations: 0 / 0.7253 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-06/0.1833, allocations: 0 / 0.7253 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.1833, allocations: 0 / 0.7253 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1833, allocations: 7.969 kB / 0.7254 GB, free: 8.746 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.1834, allocations: 85.05 kB / 0.7254 GB, free: 8.645 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/0.1834, allocations: 15.84 kB / 0.7255 GB, free: 8.629 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.1834, allocations: 0 / 0.7255 GB, free: 8.629 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.361e-05/0.1834, allocations: 0 / 0.7255 GB, free: 8.629 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.1834, allocations: 3.984 kB / 0.7255 GB, free: 8.625 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.1834, allocations: 4 kB / 0.7255 GB, free: 8.621 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001221/0.1836, allocations: 140.4 kB / 0.7256 GB, free: 8.484 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/0.1836, allocations: 0 / 0.7256 GB, free: 8.484 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003674/0.1839, allocations: 91.8 kB / 0.7257 GB, free: 8.395 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.0008788/0.1848, allocations: 0.7509 MB / 0.7264 GB, free: 7.637 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001808/0.185, allocations: 117.6 kB / 0.7265 GB, free: 7.516 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.185, allocations: 4 kB / 0.7265 GB, free: 7.512 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.941e-05/0.185, allocations: 16.08 kB / 0.7265 GB, free: 7.496 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.1852, allocations: 7.75 kB / 0.7266 GB, free: 7.488 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.1871, allocations: 1.812 MB / 0.7283 GB, free: 5.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.979e-05/0.1871, allocations: 96.03 kB / 0.7284 GB, free: 5.473 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.73e-05/0.1872, allocations: 0 / 0.7284 GB, free: 5.473 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.1872, allocations: 27.42 kB / 0.7284 GB, free: 5.445 MB / 0.545 GB Notification: Performance of SimCode: time 4.11e-07/0.1872, allocations: 4 kB / 0.7284 GB, free: 5.441 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.2133, allocations: 4.079 MB / 0.7324 GB, free: 1.531 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.5, allocations: 13.55 kB / 0.7324 GB, free: 1.52 MB / 0.545 GB " [Timeout remaining time 648] (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: 15.30914510996081] Failed to read output from testmodel.py, exit status != 0: 11.66711152298376 11.694478031 11.508970048 Calling exit ...