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) 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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007854/0.0007852, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0008313/0.0008315, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.879/2.879, allocations: 462.6 MB / 0.736 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003895, allocations: 16.23 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3939, allocations: 159.6 MB / 1.058 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0008831/0.3949, allocations: 242.3 kB / 1.058 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002707/0.3976, allocations: 1.545 MB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.624e-05/0.3977, allocations: 3.938 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.3979, allocations: 19.97 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.165e-05/0.3979, allocations: 7.984 kB / 1.06 GB, free: 3.52 MB / 0.8106 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3989, allocations: 203.4 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.896e-05/0.399, allocations: 19.98 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.219e-05/0.3991, allocations: 3.938 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.624e-05/0.3992, allocations: 11.98 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.407e-05/0.3992, allocations: 19.92 kB / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.3993, allocations: 0 / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007298/0.4, allocations: 251.6 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.455e-05/0.4001, allocations: 15.92 kB / 1.06 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.127e-05/0.4001, allocations: 33.7 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004368/0.4006, allocations: 191.6 kB / 1.06 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.4006, allocations: 0 / 1.06 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4006, allocations: 4 kB / 1.06 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.281e-05/0.4006, allocations: 0 / 1.06 GB, free: 2.773 MB / 0.8106 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.0006423/0.4013, allocations: 403.3 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.047e-05/0.4013, allocations: 8.031 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.232e-05/0.4014, allocations: 7.906 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.4016, allocations: 188.7 kB / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.4017, allocations: 0 / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.4017, allocations: 7.953 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001379/0.4018, allocations: 37.69 kB / 1.061 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.4019, allocations: 4 kB / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.4019, allocations: 0 / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.4019, allocations: 0 / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.679e-05/0.4019, allocations: 23.98 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002576/0.4022, allocations: 169.7 kB / 1.061 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.281e-05/0.4023, allocations: 26.52 kB / 1.061 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.764e-05/0.4023, allocations: 12.92 kB / 1.061 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.653e-05/0.4024, allocations: 15.94 kB / 1.061 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.4024, allocations: 30.56 kB / 1.061 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.462e-06/0.4024, allocations: 0 / 1.061 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002093/0.4026, allocations: 61.59 kB / 1.061 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.4027, allocations: 55.34 kB / 1.061 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.4029, allocations: 175.5 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.4029, allocations: 25.7 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.736e-05/0.403, allocations: 96.25 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.403, allocations: 4 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.403, allocations: 0 / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4032, allocations: 322.8 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.802e-05/0.4032, allocations: 35.98 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.576e-05/0.4033, allocations: 43.92 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.655e-05/0.4034, allocations: 39.98 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4034, allocations: 0 / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001688/0.4035, allocations: 121.6 kB / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.4036, allocations: 11.95 kB / 1.062 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.4036, allocations: 4.062 kB / 1.062 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.4036, allocations: 0 / 1.062 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.622e-05/0.4036, allocations: 7.875 kB / 1.062 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.4036, allocations: 0 / 1.062 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.555e-05/0.4037, allocations: 11.91 kB / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.4037, allocations: 0 / 1.062 GB, free: 0.6484 MB / 0.8106 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001535/0.4039, allocations: 121.8 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.4039, allocations: 7.906 kB / 1.062 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.404, allocations: 65.5 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.404, allocations: 0 / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.404, allocations: 0 / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.404, allocations: 4 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.4042, allocations: 173.6 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4042, allocations: 0 / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-06/0.4042, allocations: 0 / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.4042, allocations: 0 / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.4042, allocations: 0 / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.4042, allocations: 3.953 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.4042, allocations: 7.938 kB / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.154e-05/0.4043, allocations: 73.06 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.4044, allocations: 85.02 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.4044, allocations: 3.984 kB / 1.063 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.518e-05/0.4044, allocations: 7.938 kB / 1.063 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.819e-05/0.4044, allocations: 3.953 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.4045, allocations: 4.047 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.257e-05/0.4046, allocations: 122.1 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.21e-07/0.4046, allocations: 0 / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003869/0.405, allocations: 87.98 kB / 1.063 GB, free: 15.79 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005661/0.4055, allocations: 234.7 kB / 1.063 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001762/0.4057, allocations: 105.6 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4057, allocations: 0 / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.631e-05/0.4058, allocations: 8 kB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.4059, allocations: 4 kB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003222/0.4063, allocations: 167.2 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.4066, allocations: 0.6926 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.274e-05/0.4066, allocations: 7.938 kB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.712e-05/0.4066, allocations: 11.44 kB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.4066, allocations: 0 / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of Templates: time 0.006167/0.4128, allocations: 2.056 MB / 1.066 GB, free: 12.47 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (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 & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches