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-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_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.01015/0.01015, allocations: 99.69 kB / 15.73 MB, free: 5.555 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.002242/0.002242, allocations: 196.4 kB / 16.68 MB, free: 5.484 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.359 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 0.9977/0.9977, allocations: 143.3 MB / 433.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 59.91 kB / 0.5953 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3916, allocations: 82.02 MB / 0.6754 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00142/0.393, allocations: 0.5246 MB / 0.6759 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.3951, allocations: 1.612 MB / 0.6775 GB, free: 15.32 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.836e-05/0.3951, allocations: 9.094 kB / 0.6775 GB, free: 15.31 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.3953, allocations: 58.92 kB / 0.6775 GB, free: 15.28 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 3.454e-05/0.3953, allocations: 28.47 kB / 0.6775 GB, free: 15.27 MB / 0.5138 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.0008249/0.3962, allocations: 246.1 kB / 0.6778 GB, free: 15.11 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 6.911e-05/0.3963, allocations: 32.92 kB / 0.6778 GB, free: 15.1 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 3.247e-05/0.3963, allocations: 6.25 kB / 0.6778 GB, free: 15.09 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 3.723e-05/0.3963, allocations: 22.91 kB / 0.6778 GB, free: 15.08 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 6.21e-05/0.3964, allocations: 40.64 kB / 0.6779 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.3964, allocations: 1.406 kB / 0.6779 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.397, allocations: 332.4 kB / 0.6782 GB, free: 14.88 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.397, allocations: 31.06 kB / 0.6782 GB, free: 14.87 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 3.393e-05/0.3971, allocations: 24.41 kB / 0.6783 GB, free: 14.85 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.3975, allocations: 295.1 kB / 0.6785 GB, free: 14.68 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3975, allocations: 0 / 0.6785 GB, free: 14.68 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3975, allocations: 9.031 kB / 0.6785 GB, free: 14.68 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3975, allocations: 0 / 0.6785 GB, free: 14.68 MB / 0.5138 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.0004706/0.398, allocations: 436.7 kB / 0.679 GB, free: 14.24 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3981, allocations: 14.44 kB / 0.679 GB, free: 14.23 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.3981, allocations: 30.75 kB / 0.679 GB, free: 14.2 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.3981, allocations: 12.47 kB / 0.679 GB, free: 14.19 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.3983, allocations: 194.8 kB / 0.6792 GB, free: 13.97 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.3984, allocations: 1.656 kB / 0.6792 GB, free: 13.97 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-06/0.3984, allocations: 5.188 kB / 0.6792 GB, free: 13.96 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.203e-05/0.3985, allocations: 41.83 kB / 0.6792 GB, free: 13.93 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.3985, allocations: 1.25 kB / 0.6792 GB, free: 13.93 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-06/0.3985, allocations: 0 / 0.6792 GB, free: 13.93 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3985, allocations: 0 / 0.6792 GB, free: 13.93 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.937e-05/0.3985, allocations: 24.02 kB / 0.6793 GB, free: 13.92 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.3987, allocations: 183.9 kB / 0.6794 GB, free: 13.71 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 5.132e-05/0.3988, allocations: 27.67 kB / 0.6795 GB, free: 13.68 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.332e-05/0.3988, allocations: 16.47 kB / 0.6795 GB, free: 13.67 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.3989, allocations: 9.469 kB / 0.6795 GB, free: 13.66 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.3989, allocations: 38.48 kB / 0.6795 GB, free: 13.62 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.3989, allocations: 1 kB / 0.6795 GB, free: 13.62 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1): time 0.0001503/0.3991, allocations: 70.75 kB / 0.6796 GB, free: 13.57 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.3991, allocations: 55.39 kB / 0.6797 GB, free: 13.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.3993, allocations: 213.7 kB / 0.6799 GB, free: 13.35 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.3993, allocations: 25.7 kB / 0.6799 GB, free: 13.32 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 7.604e-05/0.3994, allocations: 106.4 kB / 0.68 GB, free: 13.22 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.3994, allocations: 0 / 0.68 GB, free: 13.22 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/0.3995, allocations: 37.08 kB / 0.68 GB, free: 13.19 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3997, allocations: 324.4 kB / 0.6803 GB, free: 12.87 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.17e-05/0.3997, allocations: 54.59 kB / 0.6804 GB, free: 12.85 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.542e-05/0.3998, allocations: 52.61 kB / 0.6804 GB, free: 12.84 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.3999, allocations: 90.47 kB / 0.6805 GB, free: 12.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3999, allocations: 0 / 0.6805 GB, free: 12.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001913/0.4001, allocations: 179 kB / 0.6807 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4002, allocations: 5.688 kB / 0.6807 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.4002, allocations: 0.9062 kB / 0.6807 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.4002, allocations: 0.7812 kB / 0.6807 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.285e-05/0.4002, allocations: 1.094 kB / 0.6807 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.4002, allocations: 0 / 0.6807 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.4003, allocations: 10.08 kB / 0.6807 GB, free: 12.71 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.4003, allocations: 1.188 kB / 0.6807 GB, free: 12.71 MB / 0.5138 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.0001732/0.4005, allocations: 131.4 kB / 0.6808 GB, free: 12.59 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.4005, allocations: 19.47 kB / 0.6809 GB, free: 12.57 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.4006, allocations: 68.67 kB / 0.6809 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.4006, allocations: 1.125 kB / 0.6809 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4006, allocations: 7.938 kB / 0.6809 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.4006, allocations: 3.938 kB / 0.6809 GB, free: 12.51 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.4008, allocations: 185 kB / 0.6811 GB, free: 12.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4008, allocations: 1 kB / 0.6811 GB, free: 12.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.863e-06/0.4008, allocations: 3.938 kB / 0.6811 GB, free: 12.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.4008, allocations: 0.875 kB / 0.6811 GB, free: 12.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-06/0.4008, allocations: 4.031 kB / 0.6811 GB, free: 12.29 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4008, allocations: 1.344 kB / 0.6811 GB, free: 12.29 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4008, allocations: 0 / 0.6811 GB, free: 12.29 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.225e-05/0.4009, allocations: 84.61 kB / 0.6812 GB, free: 12.21 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 5.486e-05/0.401, allocations: 91.5 kB / 0.6813 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.401, allocations: 1.062 kB / 0.6813 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.248e-05/0.401, allocations: 0 / 0.6813 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.021e-05/0.401, allocations: 5.375 kB / 0.6813 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.4011, allocations: 0 / 0.6813 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0001178/0.4012, allocations: 146 kB / 0.6814 GB, free: 12 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4012, allocations: 3.938 kB / 0.6814 GB, free: 12 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0003276/0.4015, allocations: 88.61 kB / 0.6815 GB, free: 11.98 MB / 0.5138 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.0007992/0.4023, allocations: 0.7522 MB / 0.6823 GB, free: 11.32 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0001721/0.4025, allocations: 126.1 kB / 0.6824 GB, free: 11.25 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4025, allocations: 0 / 0.6824 GB, free: 11.25 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 1.703e-05/0.4025, allocations: 13.34 kB / 0.6824 GB, free: 11.25 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001356/0.4027, allocations: 9.906 kB / 0.6824 GB, free: 11.24 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.4044, allocations: 1.811 MB / 0.6842 GB, free: 9.879 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.4047, allocations: 0.7047 MB / 0.6849 GB, free: 9.168 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 1.905e-05/0.4048, allocations: 2.906 kB / 0.6849 GB, free: 9.168 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.75e-05/0.4048, allocations: 23.44 kB / 0.6849 GB, free: 9.148 MB / 0.5138 GB Notification: Performance of SimCode: time 3.11e-07/0.4048, allocations: 0 / 0.6849 GB, free: 9.148 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.4291, allocations: 3.895 MB / 0.6887 GB, free: 7.133 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.112/8.541, allocations: 7.047 kB / 0.6887 GB, free: 7.129 MB / 0.5138 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)