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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001206/0.001206, allocations: 189 kB / 22.22 MB, free: 5.105 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.262/1.262, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.813/2.813, allocations: 0.4893 GB / 0.7884 GB, free: 33.18 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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=2500,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=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 70.5 kB / 1.145 GB, free: 30.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2971, allocations: 174.9 MB / 1.316 GB, free: 9.73 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001797/0.2989, allocations: 0.5222 MB / 1.316 GB, free: 9.211 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002187/0.3011, allocations: 1.642 MB / 1.318 GB, free: 7.551 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.579e-05/0.3011, allocations: 0 / 1.318 GB, free: 7.551 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.3012, allocations: 23.91 kB / 1.318 GB, free: 7.527 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.073e-05/0.3012, allocations: 11.92 kB / 1.318 GB, free: 7.516 MB / 1.014 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.0008376/0.3021, allocations: 286 kB / 1.318 GB, free: 7.238 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.3021, allocations: 23.84 kB / 1.318 GB, free: 7.215 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.3022, allocations: 4 kB / 1.318 GB, free: 7.211 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.3022, allocations: 11.98 kB / 1.318 GB, free: 7.199 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.276e-05/0.3022, allocations: 23.91 kB / 1.318 GB, free: 7.176 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.3022, allocations: 0 / 1.318 GB, free: 7.176 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007112/0.3029, allocations: 495.1 kB / 1.319 GB, free: 6.691 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.128e-05/0.303, allocations: 15.92 kB / 1.319 GB, free: 6.676 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.374e-05/0.303, allocations: 23.81 kB / 1.319 GB, free: 6.652 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.3034, allocations: 291.2 kB / 1.319 GB, free: 6.367 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3034, allocations: 0 / 1.319 GB, free: 6.367 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3034, allocations: 0 / 1.319 GB, free: 6.367 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3034, allocations: 3.938 kB / 1.319 GB, free: 6.363 MB / 1.014 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.000392/0.3038, allocations: 341.6 kB / 1.32 GB, free: 6 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 2.82e-05/0.3038, allocations: 8.031 kB / 1.32 GB, free: 5.992 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.3039, allocations: 8.891 kB / 1.32 GB, free: 5.984 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.304, allocations: 123.4 kB / 1.32 GB, free: 5.84 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-06/0.304, allocations: 4.375 kB / 1.32 GB, free: 5.836 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.304, allocations: 4.359 kB / 1.32 GB, free: 5.832 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.134e-05/0.3041, allocations: 42 kB / 1.32 GB, free: 5.785 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.3041, allocations: 0 / 1.32 GB, free: 5.785 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.3041, allocations: 0 / 1.32 GB, free: 5.785 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.3041, allocations: 0 / 1.32 GB, free: 5.785 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.708e-05/0.3042, allocations: 15.98 kB / 1.32 GB, free: 5.77 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.3043, allocations: 156.7 kB / 1.32 GB, free: 5.574 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 4.605e-05/0.3044, allocations: 30.52 kB / 1.32 GB, free: 5.535 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.912e-05/0.3044, allocations: 12.92 kB / 1.32 GB, free: 5.52 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.3044, allocations: 11.98 kB / 1.32 GB, free: 5.508 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3044, allocations: 34.5 kB / 1.32 GB, free: 5.465 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3044, allocations: 0 / 1.32 GB, free: 5.465 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001266/0.3046, allocations: 57.64 kB / 1.32 GB, free: 5.402 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.3046, allocations: 55.41 kB / 1.32 GB, free: 5.336 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.3048, allocations: 178 kB / 1.32 GB, free: 5.156 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.3048, allocations: 25.7 kB / 1.32 GB, free: 5.125 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.3048, allocations: 96.08 kB / 1.32 GB, free: 5.027 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.287e-06/0.3048, allocations: 4 kB / 1.32 GB, free: 5.023 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.578e-05/0.3049, allocations: 21.72 kB / 1.32 GB, free: 4.996 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.305, allocations: 322.8 kB / 1.321 GB, free: 4.672 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.907e-05/0.3051, allocations: 39.92 kB / 1.321 GB, free: 4.633 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.023e-05/0.3051, allocations: 35.98 kB / 1.321 GB, free: 4.598 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.771e-05/0.3052, allocations: 72.86 kB / 1.321 GB, free: 4.523 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3052, allocations: 0 / 1.321 GB, free: 4.523 MB / 1.014 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001418/0.3053, allocations: 129.5 kB / 1.321 GB, free: 4.391 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.3053, allocations: 7.938 kB / 1.321 GB, free: 4.383 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3054, allocations: 4 kB / 1.321 GB, free: 4.379 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3054, allocations: 0 / 1.321 GB, free: 4.379 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.137e-06/0.3054, allocations: 3.938 kB / 1.321 GB, free: 4.375 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-06/0.3054, allocations: 0 / 1.321 GB, free: 4.375 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.131e-05/0.3054, allocations: 7.953 kB / 1.321 GB, free: 4.367 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.809e-06/0.3054, allocations: 7.938 kB / 1.321 GB, free: 4.359 MB / 1.014 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.0001293/0.3056, allocations: 129.9 kB / 1.321 GB, free: 4.223 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.3056, allocations: 11.88 kB / 1.321 GB, free: 4.211 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.841e-05/0.3057, allocations: 61.44 kB / 1.321 GB, free: 4.141 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3057, allocations: 0 / 1.321 GB, free: 4.141 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.3057, allocations: 0 / 1.321 GB, free: 4.141 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.3057, allocations: 0 / 1.321 GB, free: 4.141 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.3058, allocations: 140.7 kB / 1.321 GB, free: 3.961 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3058, allocations: 0 / 1.321 GB, free: 3.961 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.647e-06/0.3058, allocations: 4.031 kB / 1.321 GB, free: 3.957 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3058, allocations: 3.938 kB / 1.321 GB, free: 3.953 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.3058, allocations: 4 kB / 1.321 GB, free: 3.949 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3058, allocations: 3.938 kB / 1.321 GB, free: 3.945 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3058, allocations: 0 / 1.321 GB, free: 3.945 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.656e-05/0.3059, allocations: 73.08 kB / 1.321 GB, free: 3.855 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.452e-05/0.3059, allocations: 15.88 kB / 1.321 GB, free: 3.84 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-06/0.3059, allocations: 0 / 1.321 GB, free: 3.84 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.1e-05/0.3059, allocations: 4.031 kB / 1.321 GB, free: 3.836 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.342e-05/0.3059, allocations: 4 kB / 1.321 GB, free: 3.832 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-06/0.3059, allocations: 4 kB / 1.321 GB, free: 3.828 MB / 1.014 GB Notification: Performance of sorting global known variables: time 9.421e-05/0.306, allocations: 115.2 kB / 1.322 GB, free: 3.715 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.306, allocations: 0 / 1.322 GB, free: 3.715 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002947/0.3063, allocations: 91.8 kB / 1.322 GB, free: 3.625 MB / 1.014 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.0004664/0.3068, allocations: 234.5 kB / 1.322 GB, free: 3.41 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001446/0.3069, allocations: 97.55 kB / 1.322 GB, free: 3.309 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.3069, allocations: 0 / 1.322 GB, free: 3.309 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.555e-05/0.307, allocations: 11.98 kB / 1.322 GB, free: 3.297 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.3071, allocations: 5.719 kB / 1.322 GB, free: 3.293 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00026/0.3074, allocations: 178.7 kB / 1.322 GB, free: 3.094 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.3077, allocations: 0.6963 MB / 1.323 GB, free: 2.371 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.509e-05/0.3077, allocations: 0 / 1.323 GB, free: 2.371 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.379e-05/0.3077, allocations: 11.44 kB / 1.323 GB, free: 2.359 MB / 1.014 GB Notification: Performance of SimCode: time 2.9e-07/0.3077, allocations: 0 / 1.323 GB, free: 2.359 MB / 1.014 GB Notification: Performance of Templates: time 0.004904/0.3126, allocations: 2.185 MB / 1.325 GB, free: 176 kB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.640802634879947]