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.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_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.001335/0.001335, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001349/0.001349, allocations: 198 kB / 16.14 MB, free: 6.688 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.114/1.114, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.8943/0.8943, allocations: 143 MB / 433 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 64.14 kB / 0.5136 GB, free: 12.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1327, allocations: 82.04 MB / 0.5937 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0015/0.1343, allocations: 0.5833 MB / 0.5943 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1362, allocations: 1.634 MB / 0.5959 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.092e-05/0.1362, allocations: 0 / 0.5959 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.1363, allocations: 23.92 kB / 0.5959 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 1.994e-05/0.1363, allocations: 7.984 kB / 0.5959 GB, free: 7.707 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005847/0.1369, allocations: 195.6 kB / 0.5961 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.114e-05/0.137, allocations: 27.84 kB / 0.5961 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.985e-05/0.137, allocations: 4 kB / 0.5961 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.362e-05/0.1371, allocations: 7.984 kB / 0.5961 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.465e-05/0.1371, allocations: 23.92 kB / 0.5962 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.1371, allocations: 0 / 0.5962 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003963/0.1375, allocations: 267.6 kB / 0.5964 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.307e-05/0.1376, allocations: 27.91 kB / 0.5964 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.1376, allocations: 19.81 kB / 0.5965 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.1379, allocations: 275.3 kB / 0.5967 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1379, allocations: 0 / 0.5967 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.92e-07/0.138, allocations: 0 / 0.5967 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.815e-06/0.138, allocations: 0 / 0.5967 GB, free: 6.875 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.0003639/0.1383, allocations: 407.4 kB / 0.5971 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.1384, allocations: 8.031 kB / 0.5971 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.558e-05/0.1384, allocations: 34.75 kB / 0.5971 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.1384, allocations: 8.844 kB / 0.5972 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.1386, allocations: 180.8 kB / 0.5973 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.384e-06/0.1386, allocations: 384 / 0.5973 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.1386, allocations: 384 / 0.5973 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.959e-05/0.1387, allocations: 45.75 kB / 0.5974 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-06/0.1387, allocations: 0 / 0.5974 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-06/0.1387, allocations: 0 / 0.5974 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.1387, allocations: 4 kB / 0.5974 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.744e-05/0.1387, allocations: 19.98 kB / 0.5974 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.1389, allocations: 169.6 kB / 0.5976 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.802e-05/0.1389, allocations: 30.56 kB / 0.5976 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.008e-05/0.139, allocations: 12.92 kB / 0.5976 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.139, allocations: 7.984 kB / 0.5976 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.139, allocations: 38.44 kB / 0.5976 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.139, allocations: 7.938 kB / 0.5977 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001155/0.1391, allocations: 57.59 kB / 0.5977 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.1392, allocations: 51.41 kB / 0.5978 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.1393, allocations: 172.7 kB / 0.5979 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.1393, allocations: 25.7 kB / 0.5979 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.926e-05/0.1394, allocations: 96.03 kB / 0.598 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.093e-06/0.1394, allocations: 0 / 0.598 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.1394, allocations: 25.83 kB / 0.5981 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.272e-05/0.1395, allocations: 326.8 kB / 0.5984 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.648e-05/0.1396, allocations: 39.98 kB / 0.5984 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.286e-05/0.1396, allocations: 35.98 kB / 0.5984 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.173e-05/0.1397, allocations: 72.77 kB / 0.5985 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1397, allocations: 4 kB / 0.5985 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001458/0.1399, allocations: 137.5 kB / 0.5986 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.1399, allocations: 4 kB / 0.5987 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1399, allocations: 4 kB / 0.5987 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.1399, allocations: 0 / 0.5987 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.897e-06/0.1399, allocations: 4.062 kB / 0.5987 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.1399, allocations: 0 / 0.5987 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.977e-05/0.14, allocations: 3.906 kB / 0.5987 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.14, allocations: 7.938 kB / 0.5987 GB, free: 4.645 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001005/0.1401, allocations: 131.6 kB / 0.5988 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.292e-05/0.1401, allocations: 11.83 kB / 0.5988 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.857e-05/0.1402, allocations: 65.48 kB / 0.5989 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.1402, allocations: 4.031 kB / 0.5989 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1402, allocations: 0 / 0.5989 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1402, allocations: 0 / 0.5989 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.1403, allocations: 169.7 kB / 0.599 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1403, allocations: 3.938 kB / 0.599 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.661e-06/0.1404, allocations: 3.938 kB / 0.599 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1404, allocations: 0 / 0.599 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.1404, allocations: 0 / 0.599 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1404, allocations: 0 / 0.599 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1404, allocations: 0 / 0.599 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.29e-05/0.1405, allocations: 84.97 kB / 0.5991 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.1405, allocations: 88.95 kB / 0.5992 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.1405, allocations: 3.984 kB / 0.5992 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.113e-05/0.1405, allocations: 0 / 0.5992 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.975e-06/0.1405, allocations: 0 / 0.5992 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.1405, allocations: 0 / 0.5992 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.264e-05/0.1406, allocations: 129.5 kB / 0.5993 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1406, allocations: 0 / 0.5993 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002834/0.1409, allocations: 88.02 kB / 0.5994 GB, free: 3.777 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.0006412/0.1416, allocations: 0.7466 MB / 0.6002 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001328/0.1417, allocations: 101.6 kB / 0.6002 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1417, allocations: 0 / 0.6002 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.54e-05/0.1417, allocations: 11.98 kB / 0.6003 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.1419, allocations: 6.031 kB / 0.6003 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.1431, allocations: 1.531 MB / 0.6018 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.1433, allocations: 0.6926 MB / 0.6024 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.697e-05/0.1433, allocations: 0 / 0.6024 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.1434, allocations: 23.42 kB / 0.6025 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1434, allocations: 0 / 0.6025 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4939/0.6373, allocations: 3.347 MB / 0.6057 GB, free: 43.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/0.6375, allocations: 245.7 kB / 0.606 GB, free: 42.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.331, allocations: 0.6562 kB / 0.606 GB, free: 42.84 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)