Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 113.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.18/3.18, allocations: 497.2 MB / 0.7811 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 65.27 kB / 1.134 GB, free: 33.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.327, allocations: 173.9 MB / 1.304 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001879/0.3289, allocations: 0.5126 MB / 1.304 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002634/0.3315, allocations: 1.622 MB / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.474e-05/0.3316, allocations: 0 / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.3318, allocations: 59.84 kB / 1.306 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.655e-05/0.3318, allocations: 27.97 kB / 1.306 GB, free: 15.43 MB / 1.014 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/Buildings 12.0.0-master/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.001034/0.3329, allocations: 251.2 kB / 1.306 GB, free: 15.18 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.281e-05/0.333, allocations: 31.91 kB / 1.306 GB, free: 15.15 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.743e-05/0.333, allocations: 0 / 1.306 GB, free: 15.15 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.023e-05/0.3331, allocations: 27.89 kB / 1.306 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.3332, allocations: 43.89 kB / 1.306 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.3332, allocations: 0 / 1.306 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006479/0.3338, allocations: 367.4 kB / 1.307 GB, free: 14.72 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.3339, allocations: 31.91 kB / 1.307 GB, free: 14.69 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.3339, allocations: 23.75 kB / 1.307 GB, free: 14.67 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.3344, allocations: 295.3 kB / 1.307 GB, free: 14.38 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3344, allocations: 0 / 1.307 GB, free: 14.38 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.023e-06/0.3344, allocations: 0 / 1.307 GB, free: 14.38 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.3344, allocations: 0 / 1.307 GB, free: 14.38 MB / 1.014 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.0006031/0.335, allocations: 438.4 kB / 1.308 GB, free: 13.9 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.3351, allocations: 12.92 kB / 1.308 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.071e-05/0.3351, allocations: 30.75 kB / 1.308 GB, free: 13.85 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.421e-05/0.3352, allocations: 8.891 kB / 1.308 GB, free: 13.84 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.3354, allocations: 196.8 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.635e-06/0.3354, allocations: 384 / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.3354, allocations: 384 / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.3355, allocations: 49.75 kB / 1.308 GB, free: 13.56 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.3355, allocations: 0 / 1.308 GB, free: 13.56 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.3356, allocations: 4 kB / 1.308 GB, free: 13.55 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3356, allocations: 0 / 1.308 GB, free: 13.55 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.824e-05/0.3356, allocations: 19.98 kB / 1.308 GB, free: 13.54 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002362/0.3358, allocations: 185.6 kB / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.965e-05/0.3359, allocations: 30.56 kB / 1.308 GB, free: 13.27 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.417e-05/0.3359, allocations: 16.86 kB / 1.308 GB, free: 13.25 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.336, allocations: 15.92 kB / 1.308 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.336, allocations: 34.5 kB / 1.308 GB, free: 13.19 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.336, allocations: 0 / 1.308 GB, free: 13.19 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001779/0.3362, allocations: 69.59 kB / 1.308 GB, free: 13.11 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.3362, allocations: 55.53 kB / 1.308 GB, free: 13.05 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.3365, allocations: 219.3 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.3365, allocations: 25.7 kB / 1.308 GB, free: 12.79 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.469e-05/0.3366, allocations: 104.1 kB / 1.309 GB, free: 12.68 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.3366, allocations: 0 / 1.309 GB, free: 12.68 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.3366, allocations: 29.7 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3368, allocations: 330.8 kB / 1.309 GB, free: 12.32 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.379e-05/0.3369, allocations: 47.98 kB / 1.309 GB, free: 12.27 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.608e-05/0.337, allocations: 66.44 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.3371, allocations: 92.78 kB / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3371, allocations: 0 / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002199/0.3373, allocations: 169.4 kB / 1.309 GB, free: 11.94 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3373, allocations: 4 kB / 1.309 GB, free: 11.94 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.3373, allocations: 3.984 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.3374, allocations: 0 / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.544e-05/0.3374, allocations: 4 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.3374, allocations: 0 / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.65e-05/0.3374, allocations: 3.953 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.3374, allocations: 8.062 kB / 1.309 GB, free: 11.92 MB / 1.014 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.0002203/0.3376, allocations: 148.2 kB / 1.309 GB, free: 11.77 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.3377, allocations: 15.84 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.3378, allocations: 58.25 kB / 1.31 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3378, allocations: 4 kB / 1.31 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3378, allocations: 0 / 1.31 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3378, allocations: 0 / 1.31 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.338, allocations: 181.6 kB / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.338, allocations: 4.031 kB / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-06/0.338, allocations: 3.938 kB / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.338, allocations: 0 / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.338, allocations: 0 / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.338, allocations: 0 / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.338, allocations: 0 / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.3381, allocations: 85.02 kB / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.018e-05/0.3382, allocations: 101 kB / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.3382, allocations: 4 kB / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.466e-05/0.3382, allocations: 4 kB / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.3382, allocations: 0 / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3382, allocations: 3.938 kB / 1.31 GB, free: 11.21 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001453/0.3384, allocations: 152.4 kB / 1.31 GB, free: 11.07 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3384, allocations: 0 / 1.31 GB, free: 11.07 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000363/0.3387, allocations: 87.8 kB / 1.31 GB, free: 10.98 MB / 1.014 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.0009065/0.3396, allocations: 0.7421 MB / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002327/0.3399, allocations: 117.7 kB / 1.311 GB, free: 10.11 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3399, allocations: 3.938 kB / 1.311 GB, free: 10.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.879e-05/0.3399, allocations: 11.98 kB / 1.311 GB, free: 10.09 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001543/0.34, allocations: 13.97 kB / 1.311 GB, free: 10.08 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.3421, allocations: 1.814 MB / 1.313 GB, free: 8.172 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.3425, allocations: 0.7041 MB / 1.313 GB, free: 7.441 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.215e-05/0.3425, allocations: 0 / 1.313 GB, free: 7.441 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.3426, allocations: 27.42 kB / 1.313 GB, free: 7.414 MB / 1.014 GB Notification: Performance of SimCode: time 5.81e-07/0.3426, allocations: 0 / 1.313 GB, free: 7.414 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03066/0.3732, allocations: 3.907 MB / 1.317 GB, free: 3.609 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.576, allocations: 2.391 kB / 1.317 GB, free: 3.609 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.23950999835506]