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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009959/0.0009959, allocations: 192.7 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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.6.0/package.mo): time 0.9458/0.9458, allocations: 143 MB / 433.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 55.91 kB / 0.5138 GB, free: 11.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1339, allocations: 82.05 MB / 0.5939 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001547/0.1355, allocations: 0.5743 MB / 0.5945 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001952/0.1375, allocations: 1.606 MB / 0.596 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.1375, allocations: 0 / 0.596 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.1377, allocations: 59.91 kB / 0.5961 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.199e-05/0.1377, allocations: 31.89 kB / 0.5961 GB, free: 7.488 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.6.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.0006823/0.1384, allocations: 229.2 kB / 0.5963 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.299e-05/0.1385, allocations: 27.97 kB / 0.5964 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.736e-05/0.1385, allocations: 0 / 0.5964 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.338e-05/0.1385, allocations: 31.83 kB / 0.5964 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.412e-05/0.1386, allocations: 43.91 kB / 0.5964 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.1386, allocations: 0 / 0.5964 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004023/0.139, allocations: 283.6 kB / 0.5967 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.46e-05/0.1391, allocations: 27.91 kB / 0.5967 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.1391, allocations: 23.75 kB / 0.5968 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.1394, allocations: 295.3 kB / 0.597 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1395, allocations: 0 / 0.597 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1395, allocations: 0 / 0.597 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.1395, allocations: 0 / 0.597 GB, free: 6.547 MB / 0.4981 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.0004255/0.1399, allocations: 435.2 kB / 0.5975 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.1399, allocations: 8.031 kB / 0.5975 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.441e-05/0.14, allocations: 34.69 kB / 0.5975 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.326e-05/0.14, allocations: 8.844 kB / 0.5975 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.1401, allocations: 201.2 kB / 0.5977 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-06/0.1402, allocations: 4.375 kB / 0.5977 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.1402, allocations: 4.312 kB / 0.5977 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.654e-05/0.1402, allocations: 41.81 kB / 0.5977 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.24e-06/0.1403, allocations: 0 / 0.5977 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.03e-06/0.1403, allocations: 0 / 0.5977 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.016e-06/0.1403, allocations: 4 kB / 0.5977 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.808e-05/0.1403, allocations: 19.92 kB / 0.5978 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002137/0.1405, allocations: 189.5 kB / 0.5979 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.528e-05/0.1406, allocations: 30.56 kB / 0.598 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.984e-05/0.1406, allocations: 12.92 kB / 0.598 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.1406, allocations: 15.97 kB / 0.598 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.1407, allocations: 38.5 kB / 0.598 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1407, allocations: 0 / 0.598 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001207/0.1408, allocations: 65.53 kB / 0.5981 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.1408, allocations: 51.41 kB / 0.5981 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.141, allocations: 220.1 kB / 0.5984 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.141, allocations: 25.7 kB / 0.5984 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.823e-05/0.1411, allocations: 100.1 kB / 0.5985 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.678e-06/0.1411, allocations: 3.906 kB / 0.5985 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.1411, allocations: 33.64 kB / 0.5985 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1412, allocations: 326.8 kB / 0.5988 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.658e-05/0.1413, allocations: 51.98 kB / 0.5989 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.986e-05/0.1414, allocations: 55.97 kB / 0.5989 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.459e-05/0.1415, allocations: 92.86 kB / 0.599 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1415, allocations: 0 / 0.599 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001685/0.1416, allocations: 167.9 kB / 0.5992 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.1417, allocations: 8 kB / 0.5992 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1417, allocations: 0 / 0.5992 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.325e-06/0.1417, allocations: 0 / 0.5992 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-06/0.1417, allocations: 0 / 0.5992 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.1417, allocations: 0 / 0.5992 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.39e-05/0.1417, allocations: 7.906 kB / 0.5992 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.1418, allocations: 4 kB / 0.5992 GB, free: 4.102 MB / 0.4981 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.0001127/0.1419, allocations: 137.8 kB / 0.5993 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.335e-05/0.1419, allocations: 11.75 kB / 0.5993 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.204e-05/0.142, allocations: 66.19 kB / 0.5994 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.142, allocations: 0 / 0.5994 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.142, allocations: 3.938 kB / 0.5994 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.142, allocations: 0 / 0.5994 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.1421, allocations: 185.6 kB / 0.5996 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1421, allocations: 0 / 0.5996 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-06/0.1422, allocations: 11.97 kB / 0.5996 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.1422, allocations: 0 / 0.5996 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1422, allocations: 4 kB / 0.5996 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1422, allocations: 0 / 0.5996 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1422, allocations: 0 / 0.5996 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.172e-05/0.1423, allocations: 81.03 kB / 0.5997 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.981e-05/0.1423, allocations: 96.84 kB / 0.5998 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.1423, allocations: 0 / 0.5998 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.357e-05/0.1423, allocations: 4.031 kB / 0.5998 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.1424, allocations: 3.938 kB / 0.5998 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.1424, allocations: 0 / 0.5998 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001088/0.1425, allocations: 151.2 kB / 0.5999 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1425, allocations: 0 / 0.5999 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002817/0.1428, allocations: 83.98 kB / 0.6 GB, free: 3.176 MB / 0.4981 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.0007318/0.1435, allocations: 0.7437 MB / 0.6007 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001602/0.1437, allocations: 129.7 kB / 0.6008 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.1437, allocations: 4.031 kB / 0.6009 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.796e-05/0.1437, allocations: 19.98 kB / 0.6009 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.1439, allocations: 7.938 kB / 0.6009 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.1453, allocations: 1.805 MB / 0.6026 GB, free: 380 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.199/0.3443, allocations: 0.6993 MB / 0.6033 GB, free: 43.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.229e-05/0.3444, allocations: 6.562 kB / 0.6033 GB, free: 43.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.3445, allocations: 23.56 kB / 0.6034 GB, free: 43.49 MB / 0.4981 GB Notification: Performance of SimCode: time 5.81e-07/0.3445, allocations: 0 / 0.6034 GB, free: 43.49 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01236/0.3568, allocations: 3.776 MB / 0.607 GB, free: 43.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001258/0.357, allocations: 256.4 kB / 0.6073 GB, free: 42.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.018, allocations: 1.594 kB / 0.6073 GB, free: 42.98 MB / 0.4981 GB (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 --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)