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 12.0.0-master/package.mo", uses=false) 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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_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.001551/0.001551, allocations: 116.2 kB / 16.42 MB, free: 6.5 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.001655/0.001656, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.388/1.388, allocations: 222.9 MB / 241.1 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.722/2.722, allocations: 472.7 MB / 0.746 GB, free: 480 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 63.91 kB / 1.07 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.001/1.003, allocations: 159.9 MB / 1.226 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001935/1.005, allocations: 0.5161 MB / 1.227 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002305/1.007, allocations: 1.607 MB / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.829e-05/1.007, allocations: 3.938 kB / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001881/1.007, allocations: 55.91 kB / 1.228 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.76e-05/1.007, allocations: 35.89 kB / 1.228 GB, free: 11.29 MB / 0.9512 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.0008906/1.008, allocations: 239.3 kB / 1.229 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.071e-05/1.008, allocations: 43.81 kB / 1.229 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.466e-05/1.008, allocations: 0 / 1.229 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.485e-05/1.008, allocations: 15.98 kB / 1.229 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.498e-05/1.008, allocations: 51.88 kB / 1.229 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/1.008, allocations: 0 / 1.229 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005557/1.009, allocations: 335.5 kB / 1.229 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.188e-05/1.009, allocations: 23.92 kB / 1.229 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/1.009, allocations: 23.75 kB / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004052/1.01, allocations: 295.7 kB / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/1.01, allocations: 0 / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.663e-06/1.01, allocations: 0 / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.439e-06/1.01, allocations: 0 / 1.229 GB, free: 10.28 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.0004776/1.01, allocations: 446.4 kB / 1.23 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/1.01, allocations: 11.97 kB / 1.23 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.855e-05/1.01, allocations: 12.84 kB / 1.23 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/1.01, allocations: 188.2 kB / 1.23 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/1.01, allocations: 384 / 1.23 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/1.01, allocations: 4.375 kB / 1.23 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/1.01, allocations: 46 kB / 1.23 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/1.011, allocations: 0 / 1.23 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-06/1.011, allocations: 0 / 1.23 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/1.011, allocations: 0 / 1.23 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.303e-05/1.011, allocations: 23.98 kB / 1.23 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001884/1.011, allocations: 181.6 kB / 1.23 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.503e-05/1.011, allocations: 34.5 kB / 1.23 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.044e-05/1.011, allocations: 16.91 kB / 1.23 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.763e-05/1.011, allocations: 11.92 kB / 1.23 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/1.011, allocations: 34.5 kB / 1.23 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/1.011, allocations: 4 kB / 1.23 GB, free: 9.125 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.000155/1.011, allocations: 61.64 kB / 1.23 GB, free: 9.059 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/1.011, allocations: 63.34 kB / 1.231 GB, free: 8.984 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/1.011, allocations: 216.2 kB / 1.231 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/1.011, allocations: 25.7 kB / 1.231 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.337e-05/1.011, allocations: 112 kB / 1.231 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/1.011, allocations: 3.984 kB / 1.231 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/1.012, allocations: 29.7 kB / 1.231 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001219/1.012, allocations: 327 kB / 1.231 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.473e-05/1.012, allocations: 55.98 kB / 1.231 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.562e-05/1.012, allocations: 55.91 kB / 1.231 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.467e-05/1.012, allocations: 85.81 kB / 1.231 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.012, allocations: 0 / 1.231 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001773/1.012, allocations: 159.9 kB / 1.232 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.012, allocations: 11.92 kB / 1.232 GB, free: 7.883 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/1.012, allocations: 3.938 kB / 1.232 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/1.012, allocations: 4 kB / 1.232 GB, free: 7.875 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.331e-05/1.012, allocations: 4.062 kB / 1.232 GB, free: 7.871 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/1.012, allocations: 0 / 1.232 GB, free: 7.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.89e-05/1.012, allocations: 15.78 kB / 1.232 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/1.012, allocations: 4 kB / 1.232 GB, free: 7.852 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.0001944/1.012, allocations: 134.3 kB / 1.232 GB, free: 7.711 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/1.012, allocations: 11.89 kB / 1.232 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/1.013, allocations: 58.25 kB / 1.232 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/1.013, allocations: 4.031 kB / 1.232 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/1.013, allocations: 0 / 1.232 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/1.013, allocations: 89 kB / 1.232 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/1.013, allocations: 4 kB / 1.232 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.497e-05/1.013, allocations: 4 kB / 1.232 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.96e-05/1.013, allocations: 0 / 1.232 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.24e-05/1.013, allocations: 132.9 kB / 1.232 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001406/1.013, allocations: 234.7 kB / 1.232 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.57e-05/1.013, allocations: 11.98 kB / 1.232 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001215/1.013, allocations: 156.8 kB / 1.232 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of Backend: time 2.3e-07/1.013, allocations: 0 / 1.232 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008743/1.014, allocations: 331.9 kB / 1.233 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of SimCode: time 0.000514/1.015, allocations: 0.6507 MB / 1.233 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of Templates: time 0.00506/1.02, allocations: 2.192 MB / 1.236 GB, free: 3.762 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (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 & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) 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) Reference file matches