Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 104.3 kB / 16.45 MB, free: 6.508 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.001295/0.001295, allocations: 196.6 kB / 19.41 MB, free: 3.676 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.46/1.46, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.264/3.264, allocations: 497.2 MB / 0.7811 GB, free: 33.8 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_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 65.22 kB / 1.134 GB, free: 33.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3893, allocations: 173.9 MB / 1.304 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001856/0.3911, allocations: 0.5204 MB / 1.304 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002547/0.3937, allocations: 1.614 MB / 1.306 GB, free: 15.45 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.793e-05/0.3937, allocations: 0 / 1.306 GB, free: 15.45 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.3938, allocations: 23.91 kB / 1.306 GB, free: 15.43 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.609e-05/0.3939, allocations: 7.984 kB / 1.306 GB, free: 15.42 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.0009653/0.3948, allocations: 255.2 kB / 1.306 GB, free: 15.17 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.898e-05/0.3949, allocations: 27.91 kB / 1.306 GB, free: 15.14 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.654e-05/0.3949, allocations: 4 kB / 1.306 GB, free: 15.14 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.327e-05/0.395, allocations: 15.92 kB / 1.306 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.067e-05/0.395, allocations: 15.92 kB / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.395, allocations: 0 / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006705/0.3957, allocations: 363.4 kB / 1.307 GB, free: 14.75 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.3958, allocations: 19.92 kB / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.09e-05/0.3958, allocations: 19.8 kB / 1.307 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004866/0.3963, allocations: 287.4 kB / 1.307 GB, free: 14.43 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3963, allocations: 0 / 1.307 GB, free: 14.43 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3963, allocations: 0 / 1.307 GB, free: 14.43 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.3963, allocations: 4 kB / 1.307 GB, free: 14.43 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.0005204/0.3968, allocations: 406.7 kB / 1.307 GB, free: 13.98 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3968, allocations: 12.62 kB / 1.307 GB, free: 13.97 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.3969, allocations: 34.73 kB / 1.307 GB, free: 13.93 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.3969, allocations: 4.891 kB / 1.307 GB, free: 13.93 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.3971, allocations: 176.3 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.44e-06/0.3971, allocations: 4.312 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.3971, allocations: 4.375 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.3972, allocations: 45.81 kB / 1.308 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3972, allocations: 4 kB / 1.308 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.3972, allocations: 0 / 1.308 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3972, allocations: 3.984 kB / 1.308 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.053e-05/0.3973, allocations: 15.98 kB / 1.308 GB, free: 13.63 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.3975, allocations: 177.6 kB / 1.308 GB, free: 13.41 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.204e-05/0.3975, allocations: 26.52 kB / 1.308 GB, free: 13.38 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.277e-05/0.3975, allocations: 12.92 kB / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.3976, allocations: 11.98 kB / 1.308 GB, free: 13.35 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.3976, allocations: 34.5 kB / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3976, allocations: 0 / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001597/0.3978, allocations: 61.64 kB / 1.308 GB, free: 13.24 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.3978, allocations: 55.41 kB / 1.308 GB, free: 13.17 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.398, allocations: 169.2 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.398, allocations: 25.7 kB / 1.308 GB, free: 12.96 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.3981, allocations: 100.2 kB / 1.308 GB, free: 12.86 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.095e-05/0.3981, allocations: 7.984 kB / 1.308 GB, free: 12.86 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.425e-05/0.3981, allocations: 25.66 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3982, allocations: 322.8 kB / 1.309 GB, free: 12.5 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.105e-05/0.3983, allocations: 35.98 kB / 1.309 GB, free: 12.46 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.092e-05/0.3984, allocations: 43.98 kB / 1.309 GB, free: 12.42 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.606e-05/0.3984, allocations: 72.81 kB / 1.309 GB, free: 12.35 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3984, allocations: 0 / 1.309 GB, free: 12.35 MB / 1.014 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001675/0.3986, allocations: 129.5 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3986, allocations: 12.06 kB / 1.309 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.3986, allocations: 4 kB / 1.309 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3987, allocations: 0 / 1.309 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.237e-05/0.3987, allocations: 0 / 1.309 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3987, allocations: 7.938 kB / 1.309 GB, free: 12.19 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.545e-05/0.3987, allocations: 7.953 kB / 1.309 GB, free: 12.18 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.3987, allocations: 0 / 1.309 GB, free: 12.18 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: 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.0001662/0.3989, allocations: 129.8 kB / 1.309 GB, free: 12.05 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.3989, allocations: 11.89 kB / 1.309 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.399, allocations: 57.56 kB / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.399, allocations: 0 / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.399, allocations: 0 / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.399, allocations: 4 kB / 1.309 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.3992, allocations: 169.7 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3992, allocations: 0 / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.444e-06/0.3992, allocations: 3.938 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.3992, allocations: 0 / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-06/0.3992, allocations: 0 / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3992, allocations: 4.031 kB / 1.309 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3992, allocations: 7.938 kB / 1.309 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.008e-05/0.3993, allocations: 80.95 kB / 1.309 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.3993, allocations: 89 kB / 1.31 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3993, allocations: 4 kB / 1.31 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.212e-05/0.3993, allocations: 0 / 1.31 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.229e-05/0.3994, allocations: 0 / 1.31 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.3994, allocations: 4 kB / 1.31 GB, free: 11.52 MB / 1.014 GB Notification: Performance of sorting global known variables: time 9.378e-05/0.3995, allocations: 123.3 kB / 1.31 GB, free: 11.4 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3995, allocations: 0 / 1.31 GB, free: 11.4 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003581/0.3998, allocations: 83.81 kB / 1.31 GB, free: 11.32 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.0008812/0.4007, allocations: 0.7548 MB / 1.31 GB, free: 10.56 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001756/0.4009, allocations: 93.66 kB / 1.311 GB, free: 10.46 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4009, allocations: 0 / 1.311 GB, free: 10.46 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.652e-05/0.4009, allocations: 8 kB / 1.311 GB, free: 10.45 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.401, allocations: 3.906 kB / 1.311 GB, free: 10.45 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.4026, allocations: 1.538 MB / 1.312 GB, free: 8.836 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.4029, allocations: 0.6963 MB / 1.313 GB, free: 8.113 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.174e-05/0.403, allocations: 0 / 1.313 GB, free: 8.113 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.403, allocations: 19.42 kB / 1.313 GB, free: 8.094 MB / 1.014 GB Notification: Performance of SimCode: time 4.11e-07/0.403, allocations: 0 / 1.313 GB, free: 8.094 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.4313, allocations: 3.504 MB / 1.316 GB, free: 4.688 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.174/8.606, allocations: 9.969 kB / 1.316 GB, free: 4.68 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.341430806554854]