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.0009261/0.0009262, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006652/0.006652, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.292/1.292, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.9661/0.9661, allocations: 143.2 MB / 434.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003727, allocations: 8 kB / 0.5165 GB, free: 11.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1793, allocations: 83.41 MB / 0.598 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0006858/0.1801, allocations: 258.2 kB / 0.5982 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002488/0.1826, allocations: 1.607 MB / 0.5998 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.76e-05/0.1826, allocations: 0 / 0.5998 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.1828, allocations: 59.91 kB / 0.5998 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.098e-05/0.1829, allocations: 39.88 kB / 0.5999 GB, free: 5.637 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.0008571/0.1837, allocations: 189.3 kB / 0.6 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.627e-05/0.1838, allocations: 27.97 kB / 0.6001 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.541e-05/0.1839, allocations: 3.984 kB / 0.6001 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.191e-05/0.1839, allocations: 31.84 kB / 0.6001 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.099e-05/0.184, allocations: 39.91 kB / 0.6001 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.184, allocations: 0 / 0.6001 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005888/0.1846, allocations: 271.6 kB / 0.6004 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.068e-05/0.1847, allocations: 27.92 kB / 0.6004 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.884e-05/0.1848, allocations: 49.44 kB / 0.6005 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005236/0.1853, allocations: 291.3 kB / 0.6008 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.1853, allocations: 0 / 0.6008 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1853, allocations: 0 / 0.6008 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.1853, allocations: 4 kB / 0.6008 GB, free: 4.715 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.0005258/0.1859, allocations: 423.2 kB / 0.6012 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.1859, allocations: 12.03 kB / 0.6012 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.1859, allocations: 30.75 kB / 0.6012 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.186, allocations: 8.844 kB / 0.6012 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.1862, allocations: 193.2 kB / 0.6014 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.484e-06/0.1862, allocations: 384 / 0.6014 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.1862, allocations: 4.375 kB / 0.6014 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001692/0.1864, allocations: 41.81 kB / 0.6014 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1864, allocations: 7.938 kB / 0.6014 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.1864, allocations: 0 / 0.6014 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.1864, allocations: 0 / 0.6014 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.033e-05/0.1865, allocations: 23.92 kB / 0.6015 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.1867, allocations: 189.5 kB / 0.6016 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.047e-05/0.1868, allocations: 34.56 kB / 0.6017 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.236e-05/0.1868, allocations: 12.92 kB / 0.6017 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.1869, allocations: 7.984 kB / 0.6017 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.1869, allocations: 38.5 kB / 0.6017 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.1869, allocations: 0 / 0.6017 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001647/0.1871, allocations: 69.53 kB / 0.6018 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.1871, allocations: 51.41 kB / 0.6019 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.1873, allocations: 212 kB / 0.6021 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.1874, allocations: 25.7 kB / 0.6021 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.1874, allocations: 108 kB / 0.6022 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.23e-05/0.1875, allocations: 8.125 kB / 0.6022 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.1875, allocations: 25.7 kB / 0.6022 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1876, allocations: 322.8 kB / 0.6025 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.947e-05/0.1877, allocations: 55.92 kB / 0.6026 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-05/0.1878, allocations: 55.97 kB / 0.6026 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.1879, allocations: 87.64 kB / 0.6027 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1879, allocations: 0 / 0.6027 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001888/0.1881, allocations: 169.4 kB / 0.6029 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1881, allocations: 4 kB / 0.6029 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.1881, allocations: 8.047 kB / 0.6029 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.1881, allocations: 4 kB / 0.6029 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-05/0.1882, allocations: 0 / 0.6029 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.1882, allocations: 0 / 0.6029 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.819e-05/0.1882, allocations: 3.906 kB / 0.6029 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1883, allocations: 4 kB / 0.6029 GB, free: 2.289 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.0001281/0.1884, allocations: 125.8 kB / 0.603 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.1885, allocations: 19.73 kB / 0.603 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.1886, allocations: 70.19 kB / 0.6031 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1886, allocations: 0 / 0.6031 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1886, allocations: 3.938 kB / 0.6031 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.1886, allocations: 0 / 0.6031 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.1888, allocations: 193.6 kB / 0.6033 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1888, allocations: 4 kB / 0.6033 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-06/0.1888, allocations: 3.938 kB / 0.6033 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1888, allocations: 0 / 0.6033 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.1888, allocations: 0 / 0.6033 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1888, allocations: 0 / 0.6033 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1888, allocations: 8.031 kB / 0.6033 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.362e-05/0.1889, allocations: 76.94 kB / 0.6034 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.189, allocations: 88.95 kB / 0.6035 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.189, allocations: 3.984 kB / 0.6035 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.402e-05/0.189, allocations: 3.938 kB / 0.6035 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.447e-05/0.189, allocations: 4 kB / 0.6035 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-06/0.189, allocations: 4 kB / 0.6035 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001049/0.1892, allocations: 147.2 kB / 0.6036 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1892, allocations: 0 / 0.6036 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003623/0.1896, allocations: 87.98 kB / 0.6037 GB, free: 1.359 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.0008383/0.1904, allocations: 0.7448 MB / 0.6044 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001766/0.1906, allocations: 129.6 kB / 0.6046 GB, free: 484 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1906, allocations: 0 / 0.6046 GB, free: 484 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.014e-05/0.1906, allocations: 11.98 kB / 0.6046 GB, free: 472 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.1908, allocations: 7.938 kB / 0.6046 GB, free: 464 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2584/0.4492, allocations: 1.804 MB / 0.6063 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.4493, allocations: 0.7036 MB / 0.607 GB, free: 38.95 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.246e-05/0.4493, allocations: 3.812 kB / 0.607 GB, free: 38.95 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/0.4494, allocations: 26.78 kB / 0.6071 GB, free: 38.95 MB / 0.4981 GB Notification: Performance of SimCode: time 8.51e-07/0.4494, allocations: 0 / 0.6071 GB, free: 38.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0129/0.4623, allocations: 3.637 MB / 0.6106 GB, free: 38.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/0.4626, allocations: 246.9 kB / 0.6108 GB, free: 38.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.371, allocations: 2.906 kB / 0.6108 GB, free: 38.52 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)