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.006742/0.006742, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001454/0.001454, allocations: 190.6 kB / 16.67 MB, free: 6.379 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.981/0.981, allocations: 143 MB / 433.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 71.89 kB / 0.595 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4423, allocations: 82.02 MB / 0.6751 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00166/0.4441, allocations: 0.5115 MB / 0.6756 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002189/0.4463, allocations: 1.612 MB / 0.6772 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.469e-05/0.4463, allocations: 3.938 kB / 0.6772 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002294/0.4466, allocations: 64.27 kB / 0.6773 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 7.176e-05/0.4467, allocations: 31.36 kB / 0.6773 GB, free: 15.42 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.001243/0.4479, allocations: 253.6 kB / 0.6775 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.448, allocations: 25.53 kB / 0.6776 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.444e-05/0.4481, allocations: 2.25 kB / 0.6776 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.4482, allocations: 31.11 kB / 0.6776 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.4483, allocations: 36.78 kB / 0.6776 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.4483, allocations: 1.156 kB / 0.6776 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009845/0.4493, allocations: 340.8 kB / 0.678 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.4494, allocations: 26.64 kB / 0.678 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 6.605e-05/0.4495, allocations: 21.09 kB / 0.678 GB, free: 15 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008387/0.4504, allocations: 293.8 kB / 0.6783 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.4504, allocations: 0 / 0.6783 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4504, allocations: 3.938 kB / 0.6783 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.4504, allocations: 1.094 kB / 0.6783 GB, free: 14.83 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.0006853/0.4511, allocations: 434.9 kB / 0.6787 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.4512, allocations: 13.78 kB / 0.6787 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.4512, allocations: 32.16 kB / 0.6787 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.4513, allocations: 7.312 kB / 0.6788 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.4515, allocations: 195.9 kB / 0.6789 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.4516, allocations: 384 / 0.6789 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.4516, allocations: 6.094 kB / 0.6789 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001328/0.4517, allocations: 41.69 kB / 0.679 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.4518, allocations: 1 kB / 0.679 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.4518, allocations: 3.938 kB / 0.679 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.4518, allocations: 0 / 0.679 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.872e-05/0.4519, allocations: 19.81 kB / 0.679 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002639/0.4521, allocations: 184 kB / 0.6792 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 6.795e-05/0.4522, allocations: 26.8 kB / 0.6792 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.801e-05/0.4523, allocations: 17 kB / 0.6792 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/0.4523, allocations: 6.125 kB / 0.6792 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.812e-05/0.4524, allocations: 38.5 kB / 0.6793 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.432e-06/0.4524, allocations: 1.062 kB / 0.6793 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0002352/0.4526, allocations: 74.52 kB / 0.6793 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.4527, allocations: 51.41 kB / 0.6794 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/0.453, allocations: 209.5 kB / 0.6796 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.453, allocations: 29.7 kB / 0.6796 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.35e-05/0.4531, allocations: 106.9 kB / 0.6797 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.177e-05/0.4532, allocations: 0 / 0.6797 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.158e-05/0.4532, allocations: 29.17 kB / 0.6797 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4534, allocations: 327.5 kB / 0.6801 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.4535, allocations: 60 kB / 0.6801 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.044e-05/0.4536, allocations: 58.14 kB / 0.6802 GB, free: 13 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.4538, allocations: 98.33 kB / 0.6803 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4538, allocations: 5.5 kB / 0.6803 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002626/0.4541, allocations: 163.1 kB / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.4541, allocations: 5.094 kB / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4542, allocations: 1.531 kB / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.4542, allocations: 1.375 kB / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-05/0.4542, allocations: 0 / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.4542, allocations: 0 / 0.6804 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.19e-05/0.4543, allocations: 11.22 kB / 0.6804 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.4543, allocations: 5.141 kB / 0.6805 GB, free: 12.87 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.0002167/0.4545, allocations: 133.9 kB / 0.6806 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.4546, allocations: 16.16 kB / 0.6806 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.4547, allocations: 69.14 kB / 0.6807 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.4547, allocations: 0 / 0.6807 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4548, allocations: 0 / 0.6807 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4548, allocations: 5 kB / 0.6807 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.455, allocations: 177.3 kB / 0.6808 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.455, allocations: 3.938 kB / 0.6808 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.275e-06/0.455, allocations: 3.969 kB / 0.6808 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.455, allocations: 5.25 kB / 0.6808 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.455, allocations: 3.984 kB / 0.6809 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.4551, allocations: 1.219 kB / 0.6809 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4551, allocations: 0 / 0.6809 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001573/0.4552, allocations: 80.22 kB / 0.6809 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.4553, allocations: 91.17 kB / 0.681 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.4554, allocations: 5.359 kB / 0.681 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.197e-05/0.4554, allocations: 4.031 kB / 0.681 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.4554, allocations: 1.531 kB / 0.681 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.4554, allocations: 0 / 0.681 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000214/0.4557, allocations: 150.1 kB / 0.6812 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.31e-07/0.4557, allocations: 3.938 kB / 0.6812 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006026/0.4563, allocations: 89.08 kB / 0.6813 GB, free: 12.14 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.00118/0.4575, allocations: 0.7352 MB / 0.682 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002755/0.4578, allocations: 130 kB / 0.6821 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4578, allocations: 96 / 0.6821 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.96e-05/0.4578, allocations: 17.25 kB / 0.6821 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.4581, allocations: 10.83 kB / 0.6821 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.4606, allocations: 1.815 MB / 0.6839 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.461, allocations: 0.7049 MB / 0.6846 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.473e-05/0.461, allocations: 1.344 kB / 0.6846 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/0.4611, allocations: 28.73 kB / 0.6846 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.4611, allocations: 1.406 kB / 0.6846 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.4825, allocations: 3.902 MB / 0.6884 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/8.068, allocations: 14.8 kB / 0.6884 GB, free: 7.277 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 & /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)