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.005227/0.005227, allocations: 101 kB / 15.73 MB, free: 6.441 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.001438/0.001438, allocations: 195.8 kB / 16.68 MB, free: 6.355 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.273 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.9398/0.9398, allocations: 143 MB / 433.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.001401, allocations: 67.91 kB / 0.595 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.422/0.4234, allocations: 82.01 MB / 0.6751 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001537/0.425, allocations: 0.5201 MB / 0.6756 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002027/0.4271, allocations: 1.619 MB / 0.6772 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.422e-05/0.4271, allocations: 1.062 kB / 0.6772 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.4273, allocations: 55.2 kB / 0.6773 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 3.861e-05/0.4274, allocations: 32.12 kB / 0.6773 GB, free: 15.47 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.0009163/0.4283, allocations: 247.8 kB / 0.6775 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.895e-05/0.4284, allocations: 29.84 kB / 0.6776 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.4284, allocations: 9.156 kB / 0.6776 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.697e-05/0.4285, allocations: 19.83 kB / 0.6776 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.33e-05/0.4285, allocations: 40.05 kB / 0.6776 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.4286, allocations: 5.094 kB / 0.6776 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005286/0.4291, allocations: 338 kB / 0.678 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.296e-05/0.4292, allocations: 25.14 kB / 0.678 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.936e-05/0.4292, allocations: 33.33 kB / 0.678 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.4296, allocations: 290 kB / 0.6783 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4296, allocations: 3.938 kB / 0.6783 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.213e-06/0.4296, allocations: 0 / 0.6783 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.4297, allocations: 1.469 kB / 0.6783 GB, free: 14.88 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.0004517/0.4301, allocations: 430.9 kB / 0.6787 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.4302, allocations: 9.344 kB / 0.6787 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.842e-05/0.4302, allocations: 32.09 kB / 0.6787 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.135e-05/0.4302, allocations: 12.06 kB / 0.6788 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.4304, allocations: 194.9 kB / 0.6789 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.4304, allocations: 1.406 kB / 0.6789 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.208e-06/0.4304, allocations: 1.625 kB / 0.6789 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.4305, allocations: 46.22 kB / 0.679 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.4306, allocations: 0 / 0.679 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.4306, allocations: 0 / 0.679 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.4306, allocations: 4.844 kB / 0.679 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.44e-05/0.4306, allocations: 22.77 kB / 0.679 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.4308, allocations: 183.8 kB / 0.6792 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.949e-05/0.4309, allocations: 27.66 kB / 0.6792 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.303e-05/0.4309, allocations: 12.8 kB / 0.6792 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.803e-05/0.4309, allocations: 9.703 kB / 0.6792 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.431, allocations: 35.66 kB / 0.6793 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.431, allocations: 0 / 0.6793 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001666/0.4311, allocations: 74.72 kB / 0.6793 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.4312, allocations: 55.44 kB / 0.6794 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.4314, allocations: 213.3 kB / 0.6796 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.4314, allocations: 26.8 kB / 0.6796 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.615e-05/0.4315, allocations: 101.9 kB / 0.6797 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.028e-05/0.4315, allocations: 0 / 0.6797 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.4315, allocations: 29.86 kB / 0.6798 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4317, allocations: 323.8 kB / 0.6801 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.269e-05/0.4317, allocations: 59.14 kB / 0.6801 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.984e-05/0.4318, allocations: 57.72 kB / 0.6802 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.955e-05/0.4319, allocations: 95.88 kB / 0.6803 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4319, allocations: 3.938 kB / 0.6803 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001779/0.4321, allocations: 166.1 kB / 0.6804 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4321, allocations: 9.672 kB / 0.6804 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.4322, allocations: 5.094 kB / 0.6804 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4322, allocations: 0 / 0.6804 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.335e-05/0.4322, allocations: 1 kB / 0.6804 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.4322, allocations: 0 / 0.6804 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.875e-05/0.4322, allocations: 18.16 kB / 0.6805 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.4323, allocations: 1.938 kB / 0.6805 GB, free: 12.91 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.0001688/0.4324, allocations: 135 kB / 0.6806 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.832e-05/0.4325, allocations: 15.19 kB / 0.6806 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.4326, allocations: 60.75 kB / 0.6807 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.4326, allocations: 0 / 0.6807 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4326, allocations: 1.125 kB / 0.6807 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.4326, allocations: 32 / 0.6807 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.4327, allocations: 189.5 kB / 0.6808 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.4327, allocations: 0 / 0.6808 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.226e-06/0.4328, allocations: 12.92 kB / 0.6809 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4328, allocations: 0 / 0.6809 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.4328, allocations: 1.094 kB / 0.6809 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.4328, allocations: 0 / 0.6809 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4328, allocations: 0 / 0.6809 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.671e-05/0.4329, allocations: 84.31 kB / 0.6809 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.4329, allocations: 96.22 kB / 0.681 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.4329, allocations: 3.938 kB / 0.681 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.38e-05/0.433, allocations: 1.125 kB / 0.681 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.433, allocations: 0 / 0.681 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.433, allocations: 1.125 kB / 0.681 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001193/0.4331, allocations: 146 kB / 0.6812 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4331, allocations: 0 / 0.6812 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003959/0.4335, allocations: 89.64 kB / 0.6813 GB, free: 12.2 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.0007165/0.4342, allocations: 0.7378 MB / 0.682 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001967/0.4344, allocations: 132.6 kB / 0.6821 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4345, allocations: 1.031 kB / 0.6821 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.715e-05/0.4345, allocations: 12.23 kB / 0.6821 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001452/0.4346, allocations: 6.406 kB / 0.6821 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.4363, allocations: 1.82 MB / 0.6839 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.4366, allocations: 0.7021 MB / 0.6846 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.217e-05/0.4366, allocations: 1.188 kB / 0.6846 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.503e-05/0.4367, allocations: 24.48 kB / 0.6846 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.4367, allocations: 0 / 0.6846 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.4569, allocations: 3.897 MB / 0.6884 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.397/7.854, allocations: 16.3 kB / 0.6884 GB, free: 7.34 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)