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-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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.0094/0.0094, allocations: 98.86 kB / 15.73 MB, free: 6.043 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.002273/0.002273, allocations: 196.7 kB / 16.67 MB, free: 5.969 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 1.04/1.04, allocations: 143.3 MB / 433.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002924/0.002924, allocations: 59.91 kB / 0.5953 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3943, allocations: 82.02 MB / 0.6754 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001443/0.3958, allocations: 0.517 MB / 0.6759 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002068/0.3978, allocations: 1.619 MB / 0.6775 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.168e-05/0.3979, allocations: 5.062 kB / 0.6775 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.398, allocations: 13.14 kB / 0.6775 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.507e-05/0.3981, allocations: 13.86 kB / 0.6775 GB, free: 15.3 MB / 0.5137 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-master/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.0008337/0.3989, allocations: 245.3 kB / 0.6777 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 6.626e-05/0.399, allocations: 26.34 kB / 0.6777 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.422e-05/0.399, allocations: 2.5 kB / 0.6778 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.282e-05/0.3991, allocations: 14.2 kB / 0.6778 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.314e-05/0.3991, allocations: 16.23 kB / 0.6778 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.3991, allocations: 0 / 0.6778 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005795/0.3997, allocations: 338.1 kB / 0.6781 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.259e-05/0.3998, allocations: 21.89 kB / 0.6781 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.451e-05/0.3998, allocations: 15.78 kB / 0.6781 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.4002, allocations: 280.1 kB / 0.6784 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4002, allocations: 1.281 kB / 0.6784 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4002, allocations: 0 / 0.6784 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.4003, allocations: 0 / 0.6784 GB, free: 14.75 MB / 0.5137 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.0004867/0.4008, allocations: 412.3 kB / 0.6788 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.4008, allocations: 9.125 kB / 0.6788 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.4e-05/0.4008, allocations: 36 kB / 0.6788 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.4009, allocations: 15.39 kB / 0.6789 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.4011, allocations: 192.9 kB / 0.679 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.121e-06/0.4011, allocations: 1.469 kB / 0.679 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.4011, allocations: 1.5 kB / 0.679 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.4012, allocations: 41.73 kB / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.4013, allocations: 0 / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.655e-06/0.4013, allocations: 0 / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.4013, allocations: 5.047 kB / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.293e-05/0.4013, allocations: 16.36 kB / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002013/0.4015, allocations: 174.8 kB / 0.6793 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.827e-05/0.4016, allocations: 26.39 kB / 0.6793 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.847e-05/0.4016, allocations: 16.06 kB / 0.6793 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.4017, allocations: 4.469 kB / 0.6793 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.4017, allocations: 35.5 kB / 0.6794 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.4017, allocations: 0 / 0.6794 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.4019, allocations: 65.77 kB / 0.6794 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.4019, allocations: 56.44 kB / 0.6795 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.4021, allocations: 168.6 kB / 0.6796 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.4021, allocations: 30.95 kB / 0.6797 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.4022, allocations: 95.06 kB / 0.6797 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.288e-06/0.4022, allocations: 1.062 kB / 0.6797 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/0.4022, allocations: 27.27 kB / 0.6798 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.4024, allocations: 317.2 kB / 0.6801 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.404e-05/0.4024, allocations: 45.5 kB / 0.6801 GB, free: 13 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.822e-05/0.4025, allocations: 44.8 kB / 0.6802 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.16e-05/0.4026, allocations: 60.62 kB / 0.6802 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.4026, allocations: 0 / 0.6802 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001533/0.4028, allocations: 139.6 kB / 0.6804 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.4028, allocations: 5.5 kB / 0.6804 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.4028, allocations: 1.25 kB / 0.6804 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.4028, allocations: 1.031 kB / 0.6804 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.215e-05/0.4028, allocations: 0 / 0.6804 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.4028, allocations: 5.234 kB / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.065e-05/0.4029, allocations: 16.89 kB / 0.6804 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.4029, allocations: 6.125 kB / 0.6804 GB, free: 12.86 MB / 0.5137 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.0001599/0.4031, allocations: 120 kB / 0.6805 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.4031, allocations: 11.08 kB / 0.6805 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.4032, allocations: 56.41 kB / 0.6806 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.4032, allocations: 0 / 0.6806 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.4032, allocations: 1.469 kB / 0.6806 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.4032, allocations: 0 / 0.6806 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.4034, allocations: 174 kB / 0.6807 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4034, allocations: 8.719 kB / 0.6807 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-06/0.4034, allocations: 5.062 kB / 0.6807 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.4034, allocations: 0 / 0.6807 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.4034, allocations: 0.875 kB / 0.6807 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4034, allocations: 0 / 0.6807 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.4034, allocations: 3.984 kB / 0.6808 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.658e-05/0.4035, allocations: 72.8 kB / 0.6808 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.4036, allocations: 91.31 kB / 0.6809 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.4036, allocations: 1.188 kB / 0.6809 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.325e-05/0.4036, allocations: 4 kB / 0.6809 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.4036, allocations: 1 kB / 0.6809 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.4036, allocations: 1.125 kB / 0.6809 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.375e-05/0.4037, allocations: 128.9 kB / 0.681 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4037, allocations: 0 / 0.681 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003373/0.4041, allocations: 88.23 kB / 0.6811 GB, free: 12.18 MB / 0.5137 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.0008137/0.4049, allocations: 0.7411 MB / 0.6818 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001759/0.4051, allocations: 109.1 kB / 0.682 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4051, allocations: 0 / 0.682 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 3.269e-05/0.4051, allocations: 8.375 kB / 0.682 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.4053, allocations: 13.09 kB / 0.682 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.4067, allocations: 1.535 MB / 0.6835 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.4071, allocations: 0.6911 MB / 0.6841 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.842e-05/0.4071, allocations: 1.438 kB / 0.6841 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.4072, allocations: 23.42 kB / 0.6842 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.4072, allocations: 1.625 kB / 0.6842 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.4317, allocations: 3.501 MB / 0.6876 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.551, allocations: 5.031 kB / 0.6876 GB, free: 7.609 MB / 0.5137 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)