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) 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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007901/0.007901, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001759/0.001759, allocations: 190 kB / 16.67 MB, free: 5.48 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.653/2.653, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.91 kB / 1.064 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7668/0.7681, allocations: 159.1 MB / 1.22 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001612/0.7698, allocations: 0.5126 MB / 1.22 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002286/0.7721, allocations: 1.612 MB / 1.222 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.619e-05/0.7722, allocations: 0 / 1.222 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.7723, allocations: 55.86 kB / 1.222 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.7724, allocations: 35.88 kB / 1.222 GB, free: 60 kB / 0.9356 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 11.1.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.001031/0.7735, allocations: 243.3 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.136e-05/0.7736, allocations: 39.83 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.308e-05/0.7736, allocations: 8 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.923e-05/0.7737, allocations: 15.98 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.7e-05/0.7737, allocations: 43.88 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.7737, allocations: 0 / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006217/0.7744, allocations: 335.5 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.457e-05/0.7744, allocations: 23.92 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.575e-05/0.7745, allocations: 27.75 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.775, allocations: 294.8 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.775, allocations: 4 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.212e-06/0.775, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.775, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 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.0004562/0.7754, allocations: 434.5 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.7755, allocations: 8.625 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.242e-05/0.7755, allocations: 38.67 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.7756, allocations: 12.84 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.7757, allocations: 193.3 kB / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.94e-06/0.7757, allocations: 384 / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.7758, allocations: 384 / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.826e-05/0.7759, allocations: 45.81 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.7759, allocations: 0 / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.7759, allocations: 4 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.7759, allocations: 0 / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.399e-05/0.7759, allocations: 23.97 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.7761, allocations: 181.6 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 4.619e-05/0.7762, allocations: 35.42 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.113e-05/0.7762, allocations: 16.92 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.7762, allocations: 11.98 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.7763, allocations: 34.5 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.7763, allocations: 3.938 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001499/0.7764, allocations: 61.64 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.7765, allocations: 51.41 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.7766, allocations: 222.1 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.7767, allocations: 33.77 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/0.7767, allocations: 104.1 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.7768, allocations: 4 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.7768, allocations: 29.7 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.7769, allocations: 322.8 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.4e-05/0.777, allocations: 51.98 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.304e-05/0.777, allocations: 55.97 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.922e-05/0.7771, allocations: 95.17 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.7772, allocations: 4.031 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001806/0.7773, allocations: 165.5 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.7774, allocations: 9.562 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.7774, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.7774, allocations: 3.938 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.227e-05/0.7774, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.7774, allocations: 4 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.358e-05/0.7775, allocations: 15.78 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.7775, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 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.0001571/0.7777, allocations: 138.4 kB / 1.225 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.975e-05/0.7777, allocations: 11.89 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.7778, allocations: 58.25 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-06/0.7778, allocations: 0 / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.7778, allocations: 7.984 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.7778, allocations: 0 / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.778, allocations: 177.7 kB / 1.225 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.778, allocations: 4 kB / 1.225 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.995e-06/0.778, allocations: 3.938 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.778, allocations: 4.031 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.778, allocations: 3.938 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.778, allocations: 0 / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.778, allocations: 0 / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.855e-05/0.7781, allocations: 89.02 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.949e-05/0.7782, allocations: 92.95 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.7782, allocations: 0 / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.49e-05/0.7782, allocations: 0 / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.7782, allocations: 4.031 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.7782, allocations: 0 / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001176/0.7783, allocations: 156.1 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.7784, allocations: 0 / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000351/0.7787, allocations: 87.8 kB / 1.226 GB, free: 11.66 MB / 0.9512 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.0007313/0.7794, allocations: 0.7603 MB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.7796, allocations: 121.7 kB / 1.227 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7796, allocations: 4 kB / 1.227 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.636e-05/0.7797, allocations: 8.062 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.7798, allocations: 8.062 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.7814, allocations: 1.82 MB / 1.228 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.7817, allocations: 0.7002 MB / 1.229 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.201e-05/0.7817, allocations: 3.984 kB / 1.229 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.7817, allocations: 27.44 kB / 1.229 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of SimCode: time 2.91e-07/0.7818, allocations: 3.938 kB / 1.229 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.8025, allocations: 3.872 MB / 1.233 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.896/8.698, allocations: 21.12 kB / 1.233 GB, free: 4.297 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/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) Reference file matches