Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 182.8 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5431/0.5431, allocations: 91.97 MB / 108.5 MB, free: 13.05 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 223.2 MB / 354.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009316/0.0009318, allocations: 96.22 kB / 427.4 MB, free: 3.934 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003812, allocations: 8 kB / 0.4983 GB, free: 42.22 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.1724, allocations: 72.3 MB / 0.5689 GB, free: 1.852 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5327/0.7052, allocations: 103.3 MB / 0.6698 GB, free: 1.172 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.7055, allocations: 71.97 kB / 0.6698 GB, free: 1.102 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 FrontEnd - DAE generated: time 0.01761/0.7231, allocations: 5.842 MB / 0.6755 GB, free: 11.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.7232, allocations: 0 / 0.6755 GB, free: 11.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.7232, allocations: 0 / 0.6755 GB, free: 11.27 MB / 474.7 MB 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.0006577/0.7239, allocations: 458.5 kB / 0.676 GB, free: 10.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.7239, allocations: 12.03 kB / 0.676 GB, free: 10.76 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.98e-05/0.724, allocations: 34.52 kB / 0.676 GB, free: 10.71 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.559e-05/0.724, allocations: 11.81 kB / 0.676 GB, free: 10.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.7243, allocations: 195 kB / 0.6762 GB, free: 10.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.7243, allocations: 0 / 0.6762 GB, free: 10.47 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.7243, allocations: 3.984 kB / 0.6762 GB, free: 10.47 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.7245, allocations: 37.69 kB / 0.6763 GB, free: 10.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.7245, allocations: 3.938 kB / 0.6763 GB, free: 10.42 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.7245, allocations: 4 kB / 0.6763 GB, free: 10.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.7245, allocations: 7.891 kB / 0.6763 GB, free: 10.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.832e-05/0.7246, allocations: 23.95 kB / 0.6763 GB, free: 10.39 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002386/0.7248, allocations: 181.7 kB / 0.6765 GB, free: 10.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.99e-05/0.7249, allocations: 30.56 kB / 0.6765 GB, free: 10.12 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.7249, allocations: 4.062 kB / 0.6765 GB, free: 10.12 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.725, allocations: 30.56 kB / 0.6765 GB, free: 10.08 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.373e-06/0.725, allocations: 0 / 0.6765 GB, free: 10.08 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002117/0.7252, allocations: 85.39 kB / 0.6766 GB, free: 9.988 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.7253, allocations: 55.41 kB / 0.6767 GB, free: 9.922 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.7255, allocations: 197.5 kB / 0.6769 GB, free: 9.719 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.7255, allocations: 25.7 kB / 0.6769 GB, free: 9.688 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.7256, allocations: 104 kB / 0.677 GB, free: 9.582 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.7256, allocations: 4 kB / 0.677 GB, free: 9.578 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.7256, allocations: 0 / 0.677 GB, free: 9.578 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.7257, allocations: 322.8 kB / 0.6773 GB, free: 9.254 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.033e-05/0.7258, allocations: 59.97 kB / 0.6773 GB, free: 9.195 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.912e-05/0.7259, allocations: 60.66 kB / 0.6774 GB, free: 9.137 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.934e-05/0.726, allocations: 60.67 kB / 0.6775 GB, free: 9.078 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.726, allocations: 7.969 kB / 0.6775 GB, free: 9.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00024/0.7263, allocations: 179.6 kB / 0.6776 GB, free: 8.891 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.7263, allocations: 4 kB / 0.6776 GB, free: 8.887 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.7263, allocations: 4 kB / 0.6776 GB, free: 8.883 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.7264, allocations: 3.984 kB / 0.6776 GB, free: 8.879 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.522e-05/0.7264, allocations: 0 / 0.6776 GB, free: 8.879 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.7264, allocations: 0 / 0.6776 GB, free: 8.879 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.627e-05/0.7264, allocations: 11.84 kB / 0.6777 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.7265, allocations: 11.94 kB / 0.6777 GB, free: 8.855 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.7266, allocations: 136.6 kB / 0.6778 GB, free: 8.715 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.7266, allocations: 7.906 kB / 0.6778 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.7268, allocations: 89.98 kB / 0.6779 GB, free: 8.609 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.7268, allocations: 4 kB / 0.6779 GB, free: 8.605 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.7269, allocations: 0 / 0.6779 GB, free: 8.605 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.7269, allocations: 4 kB / 0.6779 GB, free: 8.602 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.727, allocations: 189.6 kB / 0.6781 GB, free: 8.367 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.727, allocations: 0 / 0.6781 GB, free: 8.367 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.836e-06/0.7271, allocations: 0 / 0.6781 GB, free: 8.367 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7271, allocations: 7.969 kB / 0.6781 GB, free: 8.359 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.7271, allocations: 4 kB / 0.6781 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.7271, allocations: 0 / 0.6781 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7271, allocations: 0 / 0.6781 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.7272, allocations: 88.95 kB / 0.6782 GB, free: 8.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.323e-05/0.7273, allocations: 89 kB / 0.6783 GB, free: 8.145 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.7273, allocations: 0 / 0.6783 GB, free: 8.145 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.507e-05/0.7273, allocations: 0 / 0.6783 GB, free: 8.145 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.7274, allocations: 8.031 kB / 0.6783 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.7274, allocations: 0 / 0.6783 GB, free: 8.137 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001244/0.7275, allocations: 152.3 kB / 0.6784 GB, free: 7.988 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7275, allocations: 0 / 0.6784 GB, free: 7.988 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004483/0.728, allocations: 111.9 kB / 0.6785 GB, free: 7.879 MB / 474.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001074/0.729, allocations: 0.7804 MB / 0.6793 GB, free: 7.094 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.7293, allocations: 125.6 kB / 0.6794 GB, free: 6.965 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7293, allocations: 0 / 0.6794 GB, free: 6.965 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.875e-05/0.7293, allocations: 27.98 kB / 0.6794 GB, free: 6.938 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.7295, allocations: 2.156 kB / 0.6794 GB, free: 6.934 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000756/0.7302, allocations: 489.5 kB / 0.6799 GB, free: 6.41 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.7305, allocations: 0.7043 MB / 0.6806 GB, free: 5.68 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.326e-05/0.7306, allocations: 8 kB / 0.6806 GB, free: 5.672 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.7306, allocations: 27.42 kB / 0.6806 GB, free: 5.645 MB / 474.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7307, allocations: 0 / 0.6806 GB, free: 5.645 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.7479, allocations: 3.684 MB / 0.6842 GB, free: 2.074 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.7481, allocations: 222.8 kB / 0.6844 GB, free: 1.824 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.5, allocations: 0 / 0.6844 GB, free: 1.824 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)