Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 120.6 kB / 16.81 MB, free: 5.758 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.00129/0.00129, allocations: 199.1 kB / 17.77 MB, free: 5.125 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.466/1.466, allocations: 225.6 MB / 244.2 MB, free: 13.9 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.708/2.708, allocations: 476.7 MB / 0.7556 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.7 kB / 1.097 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3466, allocations: 168.7 MB / 1.262 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001645/0.3483, allocations: 0.5074 MB / 1.263 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002388/0.3507, allocations: 1.619 MB / 1.264 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.3507, allocations: 7.938 kB / 1.264 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001823/0.3509, allocations: 51.91 kB / 1.264 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.619e-05/0.351, allocations: 39.89 kB / 1.264 GB, free: 10.75 MB / 0.9825 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-maint.11.x/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.0008321/0.3518, allocations: 235.3 kB / 1.264 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.786e-05/0.3519, allocations: 39.89 kB / 1.264 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.3519, allocations: 3.984 kB / 1.264 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.143e-05/0.3519, allocations: 23.92 kB / 1.264 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.442e-05/0.352, allocations: 51.86 kB / 1.265 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.352, allocations: 0 / 1.265 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006128/0.3526, allocations: 367.4 kB / 1.265 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.3527, allocations: 23.92 kB / 1.265 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.724e-05/0.3527, allocations: 23.75 kB / 1.265 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004366/0.3532, allocations: 299.1 kB / 1.265 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3532, allocations: 0 / 1.265 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.314e-06/0.3532, allocations: 4 kB / 1.265 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.3532, allocations: 0 / 1.265 GB, free: 9.695 MB / 0.9825 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.000551/0.3537, allocations: 438.4 kB / 1.266 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3538, allocations: 8.031 kB / 1.266 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.3538, allocations: 12.84 kB / 1.266 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.354, allocations: 189.3 kB / 1.266 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.3541, allocations: 384 / 1.266 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.3541, allocations: 4.375 kB / 1.266 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.3542, allocations: 53.98 kB / 1.266 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3542, allocations: 4 kB / 1.266 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3542, allocations: 0 / 1.266 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3542, allocations: 0 / 1.266 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.456e-05/0.3543, allocations: 19.98 kB / 1.266 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002151/0.3545, allocations: 185.6 kB / 1.266 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.055e-05/0.3545, allocations: 30.52 kB / 1.266 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.684e-05/0.3546, allocations: 16.91 kB / 1.266 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.3546, allocations: 8 kB / 1.266 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.3546, allocations: 34.5 kB / 1.266 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3546, allocations: 0 / 1.266 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.3548, allocations: 65.62 kB / 1.266 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.3548, allocations: 59.34 kB / 1.266 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.3551, allocations: 214.8 kB / 1.266 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.3551, allocations: 29.64 kB / 1.267 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.061e-05/0.3551, allocations: 108.2 kB / 1.267 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.518e-06/0.3552, allocations: 4 kB / 1.267 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.3552, allocations: 29.7 kB / 1.267 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3554, allocations: 322.8 kB / 1.267 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.022e-05/0.3554, allocations: 51.97 kB / 1.267 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.869e-05/0.3555, allocations: 59.92 kB / 1.267 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.3556, allocations: 92.77 kB / 1.267 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3556, allocations: 0 / 1.267 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001999/0.3558, allocations: 168.4 kB / 1.267 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3558, allocations: 13.56 kB / 1.267 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3558, allocations: 0 / 1.267 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3559, allocations: 0 / 1.267 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.516e-05/0.3559, allocations: 7.984 kB / 1.267 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.3559, allocations: 0 / 1.267 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.728e-05/0.3559, allocations: 7.906 kB / 1.267 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.3559, allocations: 4 kB / 1.267 GB, free: 7.277 MB / 0.9825 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.0001743/0.3561, allocations: 126.6 kB / 1.267 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.3561, allocations: 23.83 kB / 1.268 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.3562, allocations: 62.23 kB / 1.268 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3562, allocations: 0 / 1.268 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3562, allocations: 0 / 1.268 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.3563, allocations: 85.02 kB / 1.268 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.3563, allocations: 4 kB / 1.268 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.321e-05/0.3563, allocations: 0 / 1.268 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.271e-05/0.3564, allocations: 11.92 kB / 1.268 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001064/0.3565, allocations: 125 kB / 1.268 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001565/0.3566, allocations: 234.7 kB / 1.268 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.958e-05/0.3566, allocations: 15.92 kB / 1.268 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000129/0.3568, allocations: 148.3 kB / 1.268 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of Backend: time 2.3e-07/0.3568, allocations: 0 / 1.268 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009515/0.3577, allocations: 319.1 kB / 1.268 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of SimCode: time 0.0005671/0.3583, allocations: 0.6507 MB / 1.269 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of Templates: time 0.006034/0.3643, allocations: 2.197 MB / 1.271 GB, free: 3.195 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches