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/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_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.009249/0.009249, allocations: 97.39 kB / 15.73 MB, free: 6.035 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.001975/0.001975, allocations: 201.9 kB / 16.68 MB, free: 5.961 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.328 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 1.011/1.011, allocations: 143 MB / 433.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.89 kB / 0.595 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3792, allocations: 82.03 MB / 0.6751 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001378/0.3806, allocations: 0.5094 MB / 0.6756 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001819/0.3825, allocations: 1.616 MB / 0.6772 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.364e-05/0.3825, allocations: 4 kB / 0.6772 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.3827, allocations: 60.28 kB / 0.6773 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 3.63e-05/0.3828, allocations: 31.12 kB / 0.6773 GB, free: 15.55 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.0008239/0.3836, allocations: 246.1 kB / 0.6775 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.085e-05/0.3837, allocations: 34.05 kB / 0.6776 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.664e-05/0.3837, allocations: 5.188 kB / 0.6776 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.651e-05/0.3838, allocations: 23.69 kB / 0.6776 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.248e-05/0.3838, allocations: 40.98 kB / 0.6776 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.3838, allocations: 0 / 0.6776 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005164/0.3844, allocations: 338.2 kB / 0.678 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.04e-05/0.3844, allocations: 25.58 kB / 0.678 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.199e-05/0.3845, allocations: 25.22 kB / 0.678 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.3849, allocations: 302.1 kB / 0.6783 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3849, allocations: 0 / 0.6783 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3849, allocations: 4.875 kB / 0.6783 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.3849, allocations: 0 / 0.6783 GB, free: 14.96 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.0004449/0.3854, allocations: 433.6 kB / 0.6787 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.3854, allocations: 9.094 kB / 0.6787 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.843e-05/0.3854, allocations: 31.81 kB / 0.6787 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.3855, allocations: 12.34 kB / 0.6788 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.3856, allocations: 194.8 kB / 0.6789 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3857, allocations: 1.562 kB / 0.6789 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.3857, allocations: 8.25 kB / 0.679 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.995e-05/0.3858, allocations: 55.23 kB / 0.679 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.3858, allocations: 0 / 0.679 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.031e-06/0.3858, allocations: 0 / 0.679 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.3858, allocations: 1.094 kB / 0.679 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.455e-05/0.3858, allocations: 23.67 kB / 0.679 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.386, allocations: 179.1 kB / 0.6792 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.277e-05/0.3861, allocations: 27.08 kB / 0.6792 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.204e-05/0.3861, allocations: 17.81 kB / 0.6792 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.3861, allocations: 8.375 kB / 0.6793 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.3862, allocations: 35.62 kB / 0.6793 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3862, allocations: 0 / 0.6793 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001882/0.3864, allocations: 75.05 kB / 0.6794 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.3864, allocations: 52.44 kB / 0.6794 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.3866, allocations: 220.8 kB / 0.6796 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.3866, allocations: 25.7 kB / 0.6796 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.3867, allocations: 103.3 kB / 0.6797 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.083e-05/0.3867, allocations: 3.984 kB / 0.6797 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.951e-05/0.3867, allocations: 29.66 kB / 0.6798 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3868, allocations: 323.1 kB / 0.6801 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.047e-05/0.3869, allocations: 54.53 kB / 0.6801 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.394e-05/0.387, allocations: 60.56 kB / 0.6802 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.149e-05/0.3871, allocations: 86.88 kB / 0.6803 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3871, allocations: 0 / 0.6803 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000183/0.3873, allocations: 171.1 kB / 0.6804 GB, free: 13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3873, allocations: 11.31 kB / 0.6804 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.3873, allocations: 1 kB / 0.6804 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3873, allocations: 1.406 kB / 0.6804 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-05/0.3873, allocations: 3.984 kB / 0.6805 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.3874, allocations: 0 / 0.6805 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.555e-05/0.3874, allocations: 10.39 kB / 0.6805 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3874, allocations: 1.125 kB / 0.6805 GB, free: 12.99 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: 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.00014/0.3875, allocations: 127.1 kB / 0.6806 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.3876, allocations: 19.19 kB / 0.6806 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.3877, allocations: 68.86 kB / 0.6807 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3877, allocations: 1.156 kB / 0.6807 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3877, allocations: 3.938 kB / 0.6807 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3877, allocations: 1.25 kB / 0.6807 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.3878, allocations: 180.4 kB / 0.6808 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3878, allocations: 3.984 kB / 0.6809 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-06/0.3879, allocations: 5.25 kB / 0.6809 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.3879, allocations: 0 / 0.6809 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.3879, allocations: 9.156 kB / 0.6809 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3879, allocations: 0 / 0.6809 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3879, allocations: 0 / 0.6809 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.407e-05/0.388, allocations: 83.88 kB / 0.6809 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.388, allocations: 87.91 kB / 0.681 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.3881, allocations: 1.281 kB / 0.681 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.3881, allocations: 0 / 0.681 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.3881, allocations: 9.078 kB / 0.681 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.3881, allocations: 9.406 kB / 0.681 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001067/0.3882, allocations: 141.2 kB / 0.6812 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3882, allocations: 0 / 0.6812 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000322/0.3885, allocations: 89.14 kB / 0.6813 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.0007141/0.3893, allocations: 0.7497 MB / 0.682 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001847/0.3895, allocations: 126.1 kB / 0.6821 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3895, allocations: 0 / 0.6821 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.66e-05/0.3895, allocations: 17.02 kB / 0.6821 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.3896, allocations: 9.344 kB / 0.6821 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.3912, allocations: 1.816 MB / 0.6839 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.3915, allocations: 0.7013 MB / 0.6846 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.725e-05/0.3915, allocations: 1.25 kB / 0.6846 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.811e-05/0.3916, allocations: 28.92 kB / 0.6846 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.3916, allocations: 0 / 0.6846 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.4115, allocations: 3.885 MB / 0.6884 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.01/8.422, allocations: 7.141 kB / 0.6884 GB, free: 7.41 MB / 0.5137 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 & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)