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.006118/0.006118, allocations: 100.6 kB / 15.73 MB, free: 6.004 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.00125/0.00125, allocations: 196.4 kB / 16.67 MB, free: 5.93 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.969/0.969, allocations: 143 MB / 433.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.91 kB / 0.595 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4382/0.4394, allocations: 82.03 MB / 0.6751 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001661/0.4411, allocations: 0.5121 MB / 0.6756 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002291/0.4434, allocations: 1.615 MB / 0.6772 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.954e-05/0.4435, allocations: 0 / 0.6772 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.4437, allocations: 21.16 kB / 0.6772 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.704e-05/0.4437, allocations: 9.234 kB / 0.6772 GB, free: 15.39 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/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.00101/0.4448, allocations: 253.6 kB / 0.6775 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.969e-05/0.4449, allocations: 23.02 kB / 0.6775 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.4449, allocations: 5.266 kB / 0.6775 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.201e-05/0.4449, allocations: 10.62 kB / 0.6775 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.219e-05/0.445, allocations: 16.77 kB / 0.6775 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.445, allocations: 0 / 0.6775 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006397/0.4457, allocations: 337.4 kB / 0.6778 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.03e-05/0.4457, allocations: 18.73 kB / 0.6779 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.882e-05/0.4457, allocations: 16.34 kB / 0.6779 GB, free: 15 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.4462, allocations: 278 kB / 0.6781 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4463, allocations: 1.188 kB / 0.6781 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4463, allocations: 0 / 0.6781 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.4463, allocations: 0 / 0.6781 GB, free: 14.84 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.0005408/0.4468, allocations: 413.2 kB / 0.6785 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4469, allocations: 10.19 kB / 0.6786 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.4469, allocations: 30.75 kB / 0.6786 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.707e-05/0.447, allocations: 15.69 kB / 0.6786 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.4472, allocations: 183.2 kB / 0.6788 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-06/0.4472, allocations: 384 / 0.6788 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.4472, allocations: 1.531 kB / 0.6788 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.4473, allocations: 49.91 kB / 0.6788 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.4473, allocations: 0 / 0.6788 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.4474, allocations: 3.938 kB / 0.6788 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.4474, allocations: 0 / 0.6788 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.22e-05/0.4474, allocations: 13.38 kB / 0.6788 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002018/0.4476, allocations: 179.1 kB / 0.679 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.014e-05/0.4477, allocations: 25.47 kB / 0.679 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.198e-05/0.4477, allocations: 13.17 kB / 0.679 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.4477, allocations: 4.219 kB / 0.679 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.4478, allocations: 34.5 kB / 0.6791 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.4478, allocations: 4.969 kB / 0.6791 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001779/0.448, allocations: 66.33 kB / 0.6791 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.448, allocations: 55.44 kB / 0.6792 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.4482, allocations: 170.5 kB / 0.6794 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.4482, allocations: 29.64 kB / 0.6794 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.4483, allocations: 92.36 kB / 0.6795 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.185e-05/0.4483, allocations: 5.594 kB / 0.6795 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.4484, allocations: 25.67 kB / 0.6795 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.4485, allocations: 322.2 kB / 0.6798 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.536e-05/0.4486, allocations: 40.89 kB / 0.6799 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.942e-05/0.4486, allocations: 41.02 kB / 0.6799 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.389e-05/0.4487, allocations: 68.08 kB / 0.68 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4487, allocations: 0.9688 kB / 0.68 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001659/0.4489, allocations: 122.5 kB / 0.6801 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.4489, allocations: 9.578 kB / 0.6801 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.4489, allocations: 1.156 kB / 0.6801 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.449, allocations: 1.062 kB / 0.6801 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.428e-05/0.449, allocations: 1.188 kB / 0.6801 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.449, allocations: 0 / 0.6801 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.57e-05/0.449, allocations: 17.91 kB / 0.6801 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.4491, allocations: 1.031 kB / 0.6801 GB, free: 12.96 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.0001438/0.4492, allocations: 120.7 kB / 0.6802 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.4492, allocations: 10.84 kB / 0.6802 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.4494, allocations: 64.58 kB / 0.6803 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4494, allocations: 0 / 0.6803 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.4494, allocations: 0 / 0.6803 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.4494, allocations: 1.25 kB / 0.6803 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001341/0.4495, allocations: 170.4 kB / 0.6805 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4495, allocations: 3.984 kB / 0.6805 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.315e-06/0.4496, allocations: 5.094 kB / 0.6805 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4496, allocations: 0 / 0.6805 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.4496, allocations: 1.125 kB / 0.6805 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4496, allocations: 0 / 0.6805 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4496, allocations: 5.109 kB / 0.6805 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.476e-05/0.4497, allocations: 88.28 kB / 0.6806 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.4498, allocations: 87.39 kB / 0.6806 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.4498, allocations: 0 / 0.6806 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.491e-05/0.4498, allocations: 5.094 kB / 0.6806 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.583e-05/0.4498, allocations: 3.984 kB / 0.6806 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.4498, allocations: 1.125 kB / 0.6807 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.56e-05/0.4499, allocations: 125.2 kB / 0.6808 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4499, allocations: 0 / 0.6808 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003988/0.4503, allocations: 88.2 kB / 0.6809 GB, free: 12.27 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.0008106/0.4512, allocations: 0.7376 MB / 0.6816 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001643/0.4513, allocations: 110.2 kB / 0.6817 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4513, allocations: 0 / 0.6817 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.438e-05/0.4514, allocations: 7.75 kB / 0.6817 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/0.4515, allocations: 15.48 kB / 0.6817 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.4529, allocations: 1.524 MB / 0.6832 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.4532, allocations: 0.6939 MB / 0.6839 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.299e-05/0.4533, allocations: 2.406 kB / 0.6839 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.4533, allocations: 20.66 kB / 0.6839 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.4533, allocations: 0 / 0.6839 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.4767, allocations: 3.507 MB / 0.6873 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.501/7.978, allocations: 15.64 kB / 0.6873 GB, free: 7.695 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)