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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 216.6 kB / 22.26 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.474/3.474, allocations: 0.505 GB / 0.8101 GB, free: 22.02 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 64.92 kB / 1.177 GB, free: 17.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3966, allocations: 180.2 MB / 1.353 GB, free: 8.492 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001997/0.3986, allocations: 0.5223 MB / 1.353 GB, free: 7.973 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002799/0.4014, allocations: 1.693 MB / 1.355 GB, free: 6.262 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.406e-05/0.4014, allocations: 3.938 kB / 1.355 GB, free: 6.258 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.4016, allocations: 63.83 kB / 1.355 GB, free: 6.195 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.336e-05/0.4017, allocations: 27.95 kB / 1.355 GB, free: 6.168 MB / 1.045 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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'. Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.4029, allocations: 287.7 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.403, allocations: 31.91 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.403, allocations: 4.281 kB / 1.355 GB, free: 5.852 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 5.074e-05/0.4031, allocations: 19.95 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.192e-05/0.4032, allocations: 43.89 kB / 1.355 GB, free: 5.789 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.4032, allocations: 0 / 1.355 GB, free: 5.789 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009204/0.4041, allocations: 0.4913 MB / 1.356 GB, free: 5.297 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.649e-05/0.4041, allocations: 27.91 kB / 1.356 GB, free: 5.27 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.4042, allocations: 35.67 kB / 1.356 GB, free: 5.234 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005182/0.4047, allocations: 303.1 kB / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.4047, allocations: 0 / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4047, allocations: 0 / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.4047, allocations: 0 / 1.356 GB, free: 4.938 MB / 1.045 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.0004985/0.4052, allocations: 365.3 kB / 1.357 GB, free: 4.551 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4053, allocations: 15.97 kB / 1.357 GB, free: 4.535 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.25e-05/0.4053, allocations: 30.75 kB / 1.357 GB, free: 4.496 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.778e-05/0.4053, allocations: 12.84 kB / 1.357 GB, free: 4.484 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.4055, allocations: 138.4 kB / 1.357 GB, free: 4.324 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.4055, allocations: 384 / 1.357 GB, free: 4.324 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.817e-06/0.4055, allocations: 384 / 1.357 GB, free: 4.324 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.4056, allocations: 37.83 kB / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.4057, allocations: 0 / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.4057, allocations: 4 kB / 1.357 GB, free: 4.277 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4057, allocations: 0 / 1.357 GB, free: 4.277 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.405e-05/0.4057, allocations: 19.98 kB / 1.357 GB, free: 4.258 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001942/0.4059, allocations: 160.7 kB / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.076e-05/0.406, allocations: 26.52 kB / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.477e-05/0.406, allocations: 12.92 kB / 1.357 GB, free: 4.008 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.406, allocations: 11.98 kB / 1.357 GB, free: 3.996 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.4061, allocations: 38.5 kB / 1.357 GB, free: 3.949 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4061, allocations: 4 kB / 1.357 GB, free: 3.945 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001831/0.4062, allocations: 69.53 kB / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.4063, allocations: 51.41 kB / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.4065, allocations: 214.8 kB / 1.357 GB, free: 3.59 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.4065, allocations: 25.7 kB / 1.357 GB, free: 3.559 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.738e-05/0.4066, allocations: 100.1 kB / 1.358 GB, free: 3.457 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.282e-05/0.4066, allocations: 7.891 kB / 1.358 GB, free: 3.449 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.008e-05/0.4067, allocations: 29.7 kB / 1.358 GB, free: 3.414 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4068, allocations: 331 kB / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.802e-05/0.4069, allocations: 55.92 kB / 1.358 GB, free: 3.027 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.998e-05/0.4069, allocations: 55.97 kB / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.407, allocations: 94.33 kB / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.407, allocations: 0 / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001965/0.4072, allocations: 165.5 kB / 1.358 GB, free: 2.711 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.4073, allocations: 10.19 kB / 1.358 GB, free: 2.703 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.4073, allocations: 3.938 kB / 1.358 GB, free: 2.699 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.4073, allocations: 0 / 1.358 GB, free: 2.699 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.29e-05/0.4073, allocations: 4.062 kB / 1.358 GB, free: 2.695 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.4073, allocations: 4 kB / 1.358 GB, free: 2.691 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.464e-05/0.4074, allocations: 15.84 kB / 1.358 GB, free: 2.676 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.4074, allocations: 0 / 1.358 GB, free: 2.676 MB / 1.045 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.0001936/0.4076, allocations: 140.6 kB / 1.358 GB, free: 2.531 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.4076, allocations: 11.89 kB / 1.358 GB, free: 2.52 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.4077, allocations: 62.17 kB / 1.359 GB, free: 2.449 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.4077, allocations: 4.031 kB / 1.359 GB, free: 2.445 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.4077, allocations: 4 kB / 1.359 GB, free: 2.441 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.4077, allocations: 0 / 1.359 GB, free: 2.441 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.4079, allocations: 152.7 kB / 1.359 GB, free: 2.25 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4079, allocations: 0 / 1.359 GB, free: 2.25 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-06/0.4079, allocations: 3.938 kB / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.4079, allocations: 0 / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.4079, allocations: 0 / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4079, allocations: 0 / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4079, allocations: 3.938 kB / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.408, allocations: 93.02 kB / 1.359 GB, free: 2.133 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.488e-05/0.408, allocations: 15.84 kB / 1.359 GB, free: 2.117 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.408, allocations: 0 / 1.359 GB, free: 2.117 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.071e-05/0.4081, allocations: 0 / 1.359 GB, free: 2.117 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.173e-05/0.4081, allocations: 0 / 1.359 GB, free: 2.117 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.4081, allocations: 4 kB / 1.359 GB, free: 2.113 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000155/0.4082, allocations: 151.1 kB / 1.359 GB, free: 1.965 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4082, allocations: 0 / 1.359 GB, free: 1.965 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004073/0.4087, allocations: 95.83 kB / 1.359 GB, free: 1.871 MB / 1.045 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.0009622/0.4096, allocations: 0.7525 MB / 1.36 GB, free: 1.105 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002566/0.4099, allocations: 113.7 kB / 1.36 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4099, allocations: 0 / 1.36 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 3.408e-05/0.4099, allocations: 11.94 kB / 1.36 GB, free: 0.9766 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.4101, allocations: 4 kB / 1.36 GB, free: 0.9727 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.4122, allocations: 1.823 MB / 1.362 GB, free: 15.07 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.4126, allocations: 0.7118 MB / 1.362 GB, free: 14.33 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.963e-05/0.4126, allocations: 7.953 kB / 1.362 GB, free: 14.32 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.78e-05/0.4127, allocations: 27.45 kB / 1.362 GB, free: 14.29 MB / 1.061 GB Notification: Performance of SimCode: time 3.71e-07/0.4127, allocations: 0 / 1.362 GB, free: 14.29 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03293/0.4456, allocations: 4.082 MB / 1.366 GB, free: 10.34 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.64, allocations: 16.16 kB / 1.366 GB, free: 10.33 MB / 1.061 GB " [Timeout remaining time 288] (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/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: 18.68398980400525]