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.008079/0.008079, allocations: 97.62 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.001797/0.001797, allocations: 201.2 kB / 16.68 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.046/1.046, allocations: 143 MB / 433.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 0.595 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.4052, allocations: 82.03 MB / 0.6751 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001525/0.4068, allocations: 0.5138 MB / 0.6756 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002059/0.4088, allocations: 1.615 MB / 0.6772 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.4089, allocations: 1.281 kB / 0.6772 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.409, allocations: 20.88 kB / 0.6772 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.903e-05/0.4091, allocations: 13.42 kB / 0.6772 GB, free: 15.65 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.0009461/0.41, allocations: 241.2 kB / 0.6775 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 6.91e-05/0.4101, allocations: 23.19 kB / 0.6775 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.4102, allocations: 6.109 kB / 0.6775 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.259e-05/0.4102, allocations: 10.19 kB / 0.6775 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.255e-05/0.4103, allocations: 17.58 kB / 0.6775 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.4103, allocations: 3.938 kB / 0.6775 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005766/0.4109, allocations: 341.3 kB / 0.6779 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.03e-05/0.4109, allocations: 14.86 kB / 0.6779 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.504e-05/0.411, allocations: 23.66 kB / 0.6779 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.4114, allocations: 275.2 kB / 0.6782 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4114, allocations: 1.188 kB / 0.6782 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.333e-06/0.4114, allocations: 0 / 0.6782 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.4114, allocations: 0 / 0.6782 GB, free: 15.09 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.0004604/0.4119, allocations: 411.9 kB / 0.6786 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4119, allocations: 9.906 kB / 0.6786 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.151e-05/0.412, allocations: 30.75 kB / 0.6786 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.412, allocations: 7.641 kB / 0.6786 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.4122, allocations: 200.5 kB / 0.6788 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.4122, allocations: 384 / 0.6788 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.4122, allocations: 5.703 kB / 0.6788 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.4123, allocations: 42.12 kB / 0.6788 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.4123, allocations: 0 / 0.6788 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.583e-06/0.4123, allocations: 0 / 0.6788 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.4124, allocations: 0 / 0.6788 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.734e-05/0.4124, allocations: 12.78 kB / 0.6788 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000185/0.4126, allocations: 175.1 kB / 0.679 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.639e-05/0.4126, allocations: 34.25 kB / 0.679 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.479e-05/0.4127, allocations: 11.48 kB / 0.6791 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.4127, allocations: 4.406 kB / 0.6791 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.4127, allocations: 39.59 kB / 0.6791 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.4127, allocations: 0 / 0.6791 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001626/0.4129, allocations: 62.28 kB / 0.6792 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.413, allocations: 52.81 kB / 0.6792 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.4132, allocations: 181.4 kB / 0.6794 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.4132, allocations: 26.83 kB / 0.6794 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.4133, allocations: 87.52 kB / 0.6795 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.4133, allocations: 9 kB / 0.6795 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.196e-05/0.4133, allocations: 26.7 kB / 0.6795 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4135, allocations: 318 kB / 0.6798 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.946e-05/0.4135, allocations: 40.02 kB / 0.6799 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.42e-05/0.4136, allocations: 37.73 kB / 0.6799 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.646e-05/0.4137, allocations: 72.8 kB / 0.68 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4137, allocations: 0 / 0.68 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001469/0.4138, allocations: 128 kB / 0.6801 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.4139, allocations: 8.266 kB / 0.6801 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.4139, allocations: 2.219 kB / 0.6801 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.4139, allocations: 3.938 kB / 0.6801 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.422e-05/0.4139, allocations: 1.125 kB / 0.6801 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.4139, allocations: 0 / 0.6801 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.597e-05/0.414, allocations: 9.953 kB / 0.6801 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-06/0.414, allocations: 1.031 kB / 0.6801 GB, free: 13.22 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.0001782/0.4142, allocations: 132.8 kB / 0.6802 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.4142, allocations: 14.08 kB / 0.6803 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.4143, allocations: 65.14 kB / 0.6803 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4143, allocations: 0 / 0.6803 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.4143, allocations: 0 / 0.6803 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.4143, allocations: 1.156 kB / 0.6803 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.4145, allocations: 162.8 kB / 0.6805 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4145, allocations: 8.016 kB / 0.6805 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-06/0.4145, allocations: 4.969 kB / 0.6805 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4145, allocations: 0 / 0.6805 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.4145, allocations: 5.031 kB / 0.6805 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4145, allocations: 0 / 0.6805 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4145, allocations: 0 / 0.6805 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.52e-05/0.4146, allocations: 77.7 kB / 0.6806 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.892e-05/0.4147, allocations: 86.47 kB / 0.6807 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.4147, allocations: 5.406 kB / 0.6807 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.215e-05/0.4147, allocations: 0 / 0.6807 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.4147, allocations: 5.297 kB / 0.6807 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.4147, allocations: 0 / 0.6807 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.974e-05/0.4148, allocations: 125.8 kB / 0.6808 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.855e-06/0.4148, allocations: 4.969 kB / 0.6808 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003816/0.4152, allocations: 83.08 kB / 0.6809 GB, free: 12.53 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.0008053/0.416, allocations: 0.753 MB / 0.6816 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001885/0.4162, allocations: 99.67 kB / 0.6817 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4162, allocations: 4.812 kB / 0.6817 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.67e-05/0.4163, allocations: 8.062 kB / 0.6817 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.4164, allocations: 13.55 kB / 0.6817 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.4178, allocations: 1.538 MB / 0.6832 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.4181, allocations: 0.6952 MB / 0.6839 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.107e-05/0.4182, allocations: 1.188 kB / 0.6839 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.4182, allocations: 16.53 kB / 0.6839 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.4182, allocations: 0 / 0.6839 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.442, allocations: 3.504 MB / 0.6873 GB, free: 7.945 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.152, allocations: 1.812 kB / 0.6873 GB, free: 7.945 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 & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_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_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)