Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001665/0.001665, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.00174/0.00174, allocations: 188.9 kB / 22.23 MB, free: 5.133 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.541/1.541, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.812/2.812, allocations: 476.7 MB / 0.7646 GB, free: 9.922 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 55.91 kB / 1.109 GB, free: 6.383 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7731/0.775, allocations: 168.8 MB / 1.274 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001886/0.7769, allocations: 0.5177 MB / 1.275 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002622/0.7795, allocations: 1.639 MB / 1.276 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.796e-05/0.7796, allocations: 0 / 1.276 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.7797, allocations: 15.92 kB / 1.276 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.91e-05/0.7798, allocations: 11.98 kB / 1.276 GB, free: 2.039 MB / 0.9669 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.1-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.001041/0.7808, allocations: 267.2 kB / 1.277 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.145e-05/0.7809, allocations: 15.98 kB / 1.277 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.227e-05/0.7809, allocations: 7.938 kB / 1.277 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.12e-05/0.781, allocations: 19.91 kB / 1.277 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.695e-05/0.781, allocations: 27.84 kB / 1.277 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.117e-05/0.781, allocations: 0 / 1.277 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007991/0.7818, allocations: 455.2 kB / 1.277 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.417e-05/0.7819, allocations: 27.92 kB / 1.277 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.953e-05/0.7819, allocations: 15.81 kB / 1.277 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004659/0.7824, allocations: 285.6 kB / 1.278 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.7824, allocations: 0 / 1.278 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.303e-06/0.7824, allocations: 0 / 1.278 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.7824, allocations: 0 / 1.278 GB, free: 0.9453 MB / 0.9669 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.0005321/0.7829, allocations: 337.5 kB / 1.278 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.783, allocations: 12.03 kB / 1.278 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.783, allocations: 8.875 kB / 1.278 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.7832, allocations: 123.8 kB / 1.278 GB, free: 432 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.7832, allocations: 8.375 kB / 1.278 GB, free: 424 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.7832, allocations: 4.375 kB / 1.278 GB, free: 420 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.7833, allocations: 42 kB / 1.278 GB, free: 372 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.7833, allocations: 0 / 1.278 GB, free: 372 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.7833, allocations: 0 / 1.278 GB, free: 372 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.7833, allocations: 4 kB / 1.278 GB, free: 368 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.724e-05/0.7834, allocations: 19.92 kB / 1.278 GB, free: 348 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.7836, allocations: 136.8 kB / 1.278 GB, free: 168 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.258e-05/0.7836, allocations: 30.56 kB / 1.278 GB, free: 128 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.666e-05/0.7836, allocations: 16.86 kB / 1.278 GB, free: 108 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.7837, allocations: 4 kB / 1.278 GB, free: 104 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.7837, allocations: 42.48 kB / 1.278 GB, free: 52 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.7837, allocations: 4 kB / 1.278 GB, free: 48 kB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001866/0.7839, allocations: 65.53 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.7839, allocations: 51.41 kB / 1.278 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.7841, allocations: 168.8 kB / 1.279 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.7841, allocations: 25.7 kB / 1.279 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.7842, allocations: 96.09 kB / 1.279 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.051e-05/0.7842, allocations: 0 / 1.279 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.722e-05/0.7843, allocations: 29.7 kB / 1.279 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.7844, allocations: 318.8 kB / 1.279 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.803e-05/0.7845, allocations: 39.98 kB / 1.279 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.941e-05/0.7845, allocations: 39.98 kB / 1.279 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.327e-05/0.7846, allocations: 76.84 kB / 1.279 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.7846, allocations: 0 / 1.279 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001711/0.7848, allocations: 129.5 kB / 1.279 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.7848, allocations: 13.81 kB / 1.279 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.7848, allocations: 0 / 1.279 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.7848, allocations: 3.938 kB / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.367e-05/0.7848, allocations: 0 / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.7848, allocations: 4 kB / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.306e-05/0.7849, allocations: 3.953 kB / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.7849, allocations: 0 / 1.279 GB, free: 14.95 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: 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.0001627/0.785, allocations: 129.2 kB / 1.279 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.785, allocations: 11.89 kB / 1.279 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.7852, allocations: 65.41 kB / 1.279 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.7852, allocations: 4 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.7852, allocations: 3.938 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.7852, allocations: 0 / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.7853, allocations: 140.7 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.7853, allocations: 0 / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.45e-06/0.7853, allocations: 4.031 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.7853, allocations: 7.938 kB / 1.28 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.7853, allocations: 0 / 1.28 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.7853, allocations: 0 / 1.28 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7853, allocations: 0 / 1.28 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.609e-05/0.7854, allocations: 77.08 kB / 1.28 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.528e-05/0.7854, allocations: 7.891 kB / 1.28 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.7854, allocations: 8.031 kB / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.16e-05/0.7855, allocations: 7.922 kB / 1.28 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.41e-05/0.7855, allocations: 4 kB / 1.28 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.7855, allocations: 0 / 1.28 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001346/0.7856, allocations: 121.9 kB / 1.28 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7856, allocations: 0 / 1.28 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003466/0.786, allocations: 87.8 kB / 1.28 GB, free: 14.2 MB / 0.9825 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.0005476/0.7865, allocations: 225.8 kB / 1.28 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001749/0.7867, allocations: 89.67 kB / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7867, allocations: 0 / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.802e-05/0.7867, allocations: 8 kB / 1.28 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.7869, allocations: 9.719 kB / 1.28 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003447/0.7872, allocations: 181.1 kB / 1.28 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.7875, allocations: 0.6924 MB / 1.281 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.23e-05/0.7876, allocations: 3.984 kB / 1.281 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.729e-05/0.7876, allocations: 11.44 kB / 1.281 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/0.7876, allocations: 0 / 1.281 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of Templates: time 0.006409/0.794, allocations: 2.098 MB / 1.283 GB, free: 10.85 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.7326820185408]