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.006376/0.006376, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001256/0.001257, allocations: 197.4 kB / 16.67 MB, free: 5.977 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.188 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.9676/0.9676, allocations: 143 MB / 433.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.89 kB / 0.595 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3792, allocations: 82.02 MB / 0.6751 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001443/0.3807, allocations: 0.5189 MB / 0.6756 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001898/0.3826, allocations: 1.612 MB / 0.6772 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.284e-05/0.3827, allocations: 0 / 0.6772 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.3828, allocations: 25.19 kB / 0.6772 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.677e-05/0.3828, allocations: 13.08 kB / 0.6772 GB, free: 15.59 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.0008585/0.3837, allocations: 237.9 kB / 0.6775 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.192e-05/0.3838, allocations: 27.53 kB / 0.6775 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.3838, allocations: 5.172 kB / 0.6775 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.413e-05/0.3839, allocations: 14.77 kB / 0.6775 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.136e-05/0.3839, allocations: 16.38 kB / 0.6775 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.3839, allocations: 1.188 kB / 0.6775 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005427/0.3845, allocations: 337.3 kB / 0.6779 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.11e-05/0.3846, allocations: 17.89 kB / 0.6779 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.914e-05/0.3846, allocations: 16.75 kB / 0.6779 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003811/0.385, allocations: 273.8 kB / 0.6781 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.385, allocations: 1.375 kB / 0.6781 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.513e-06/0.385, allocations: 4 kB / 0.6782 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.385, allocations: 3.938 kB / 0.6782 GB, free: 15.04 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.0004349/0.3855, allocations: 408.9 kB / 0.6785 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3855, allocations: 9.156 kB / 0.6786 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.714e-05/0.3856, allocations: 35.81 kB / 0.6786 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.983e-05/0.3856, allocations: 6.906 kB / 0.6786 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.3858, allocations: 184 kB / 0.6788 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.3858, allocations: 384 / 0.6788 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-06/0.3858, allocations: 1.531 kB / 0.6788 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.665e-05/0.3859, allocations: 45.44 kB / 0.6788 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3859, allocations: 3.984 kB / 0.6788 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.3859, allocations: 1.062 kB / 0.6788 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3859, allocations: 0 / 0.6788 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.995e-05/0.386, allocations: 13.09 kB / 0.6788 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.3861, allocations: 178.5 kB / 0.679 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.3862, allocations: 30.16 kB / 0.679 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.338e-05/0.3862, allocations: 16.61 kB / 0.679 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.3862, allocations: 3.625 kB / 0.6791 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.3863, allocations: 35.59 kB / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3863, allocations: 0 / 0.6791 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001452/0.3864, allocations: 63.14 kB / 0.6791 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.3865, allocations: 59.34 kB / 0.6792 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.3866, allocations: 170.2 kB / 0.6794 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.3867, allocations: 25.83 kB / 0.6794 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.3867, allocations: 95.42 kB / 0.6795 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.146e-05/0.3867, allocations: 8.875 kB / 0.6795 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.3868, allocations: 27.14 kB / 0.6795 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.3869, allocations: 321.5 kB / 0.6798 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.075e-05/0.3869, allocations: 36.77 kB / 0.6799 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.412e-05/0.387, allocations: 37.7 kB / 0.6799 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.835e-05/0.3871, allocations: 68.39 kB / 0.68 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3871, allocations: 0 / 0.68 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000158/0.3872, allocations: 140.1 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.3873, allocations: 6.344 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3873, allocations: 1.406 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.3873, allocations: 1.094 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.188e-05/0.3873, allocations: 0 / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3873, allocations: 0.9375 kB / 0.6801 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.778e-05/0.3874, allocations: 14.06 kB / 0.6801 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.3874, allocations: 1.062 kB / 0.6801 GB, free: 13.17 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.0001326/0.3875, allocations: 128.6 kB / 0.6802 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.3875, allocations: 11 kB / 0.6802 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.3876, allocations: 60.55 kB / 0.6803 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3876, allocations: 3.938 kB / 0.6803 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3877, allocations: 0 / 0.6803 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3877, allocations: 1.094 kB / 0.6803 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.3878, allocations: 166.5 kB / 0.6805 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3878, allocations: 0 / 0.6805 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-06/0.3878, allocations: 9 kB / 0.6805 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3878, allocations: 0 / 0.6805 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-06/0.3878, allocations: 5.188 kB / 0.6805 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3878, allocations: 0 / 0.6805 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3878, allocations: 1.188 kB / 0.6805 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.724e-05/0.3879, allocations: 75.81 kB / 0.6806 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.21e-05/0.388, allocations: 87.42 kB / 0.6806 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.388, allocations: 1.281 kB / 0.6806 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.388, allocations: 0 / 0.6806 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.18e-05/0.388, allocations: 9.172 kB / 0.6806 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.388, allocations: 0 / 0.6806 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.163e-05/0.3881, allocations: 126.1 kB / 0.6808 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3881, allocations: 5 kB / 0.6808 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003379/0.3885, allocations: 84.02 kB / 0.6809 GB, free: 12.48 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.0008305/0.3893, allocations: 0.7455 MB / 0.6816 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002016/0.3895, allocations: 100 kB / 0.6817 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3895, allocations: 0 / 0.6817 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.01e-05/0.3896, allocations: 12.89 kB / 0.6817 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.3897, allocations: 14.17 kB / 0.6817 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.3912, allocations: 1.528 MB / 0.6832 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.3915, allocations: 0.6947 MB / 0.6839 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.907e-05/0.3916, allocations: 1.094 kB / 0.6839 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.3916, allocations: 16.78 kB / 0.6839 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of SimCode: time 2e-07/0.3916, allocations: 0 / 0.6839 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.4118, allocations: 3.507 MB / 0.6873 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.243/7.655, allocations: 4.125 kB / 0.6873 GB, free: 7.918 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)