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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 86.05 kB / 19.87 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 170 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.008/1.008, allocations: 177.1 MB / 203.7 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.269/2.269, allocations: 438.1 MB / 0.682 GB, free: 14.13 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.402e-06/1.402e-06, allocations: 0 / 0.8897 GB, free: 9.781 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.159e-05/1.299e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009487/0.0009617, allocations: 0.5323 MB / 0.8902 GB, free: 9.246 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001532/0.002494, allocations: 1.641 MB / 0.8918 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.785e-05/0.002532, allocations: 0 / 0.8918 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.002669, allocations: 27.84 kB / 0.8918 GB, free: 7.559 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 2.067e-05/0.002689, allocations: 11.98 kB / 0.8919 GB, free: 7.547 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0006433/0.003333, allocations: 277.9 kB / 0.8921 GB, free: 7.277 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 5.393e-05/0.003386, allocations: 27.89 kB / 0.8921 GB, free: 7.25 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 2.741e-05/0.003414, allocations: 8 kB / 0.8922 GB, free: 7.242 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 3.543e-05/0.003449, allocations: 11.98 kB / 0.8922 GB, free: 7.23 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 2.908e-05/0.003478, allocations: 15.98 kB / 0.8922 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.00349, allocations: 0 / 0.8922 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000491/0.003981, allocations: 459 kB / 0.8926 GB, free: 6.766 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 3.755e-05/0.004019, allocations: 19.92 kB / 0.8926 GB, free: 6.746 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 1.29e-05/0.004031, allocations: 4 kB / 0.8926 GB, free: 6.742 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.004341, allocations: 351 kB / 0.893 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.004343, allocations: 0 / 0.893 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of FrontEnd: time 4.81e-07/0.004343, allocations: 4 kB / 0.893 GB, free: 6.395 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.004346, allocations: 4 kB / 0.893 GB, free: 6.391 MB / 0.8542 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.0002979/0.004644, allocations: 439.8 kB / 0.8934 GB, free: 5.926 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.004675, allocations: 8.625 kB / 0.8934 GB, free: 5.918 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.0047, allocations: 12.89 kB / 0.8934 GB, free: 5.906 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.411e-05/0.004794, allocations: 131.5 kB / 0.8936 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.004801, allocations: 384 / 0.8936 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-06/0.004808, allocations: 8.375 kB / 0.8936 GB, free: 5.746 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.856e-05/0.004856, allocations: 26.27 kB / 0.8936 GB, free: 5.715 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.004862, allocations: 4.125 kB / 0.8936 GB, free: 5.711 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-06/0.004866, allocations: 384 / 0.8936 GB, free: 5.711 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.004871, allocations: 11.88 kB / 0.8936 GB, free: 5.699 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.204e-06/0.004879, allocations: 4 kB / 0.8936 GB, free: 5.695 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.379e-05/0.004972, allocations: 109.3 kB / 0.8937 GB, free: 5.562 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 2.601e-05/0.004998, allocations: 27.05 kB / 0.8937 GB, free: 5.523 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.025e-05/0.005009, allocations: 11.75 kB / 0.8937 GB, free: 5.508 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.005042, allocations: 15.97 kB / 0.8938 GB, free: 5.492 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.005059, allocations: 33.39 kB / 0.8938 GB, free: 5.449 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=1): time 6.32e-07/0.00506, allocations: 0 / 0.8938 GB, free: 5.449 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1): time 8.176e-05/0.005142, allocations: 41.59 kB / 0.8938 GB, free: 5.402 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.046e-05/0.005162, allocations: 51.41 kB / 0.8939 GB, free: 5.34 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.822e-05/0.00526, allocations: 225.9 kB / 0.8941 GB, free: 5.102 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.005268, allocations: 25.7 kB / 0.8941 GB, free: 5.07 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/0.005315, allocations: 154.8 kB / 0.8943 GB, free: 4.914 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.644e-06/0.005322, allocations: 3.953 kB / 0.8943 GB, free: 4.91 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.005351, allocations: 35.34 kB / 0.8943 GB, free: 4.867 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.005453, allocations: 0.4923 MB / 0.8948 GB, free: 4.363 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.216e-05/0.005465, allocations: 8 kB / 0.8948 GB, free: 4.355 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.126e-05/0.005476, allocations: 11.94 kB / 0.8948 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.668e-05/0.005513, allocations: 31.62 kB / 0.8948 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.005515, allocations: 0 / 0.8948 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.979e-05/0.005574, allocations: 73.72 kB / 0.8949 GB, free: 4.23 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.005583, allocations: 4 kB / 0.8949 GB, free: 4.227 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.005595, allocations: 4 kB / 0.8949 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.005604, allocations: 0 / 0.8949 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.029e-05/0.005615, allocations: 0 / 0.8949 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-06/0.005617, allocations: 0 / 0.8949 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.629e-05/0.005633, allocations: 11.83 kB / 0.8949 GB, free: 4.211 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.005641, allocations: 7.984 kB / 0.8949 GB, free: 4.203 MB / 0.8542 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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 6.062e-05/0.005701, allocations: 156.6 kB / 0.8951 GB, free: 4.039 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-06/0.005708, allocations: 7.953 kB / 0.8951 GB, free: 4.031 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.793e-05/0.005766, allocations: 49.47 kB / 0.8951 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.005767, allocations: 0 / 0.8951 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-06/0.005769, allocations: 0 / 0.8951 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.005771, allocations: 3.938 kB / 0.8951 GB, free: 3.969 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.832e-05/0.00583, allocations: 113.2 kB / 0.8952 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.005831, allocations: 0 / 0.8952 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-06/0.005832, allocations: 0 / 0.8952 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.91e-07/0.005833, allocations: 0 / 0.8952 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-06/0.005836, allocations: 0 / 0.8952 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.005836, allocations: 0 / 0.8952 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.005838, allocations: 8.031 kB / 0.8953 GB, free: 3.824 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.274e-05/0.005881, allocations: 88.25 kB / 0.8953 GB, free: 3.715 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.873e-06/0.005887, allocations: 3.953 kB / 0.8953 GB, free: 3.711 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-06/0.005895, allocations: 4 kB / 0.8953 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-06/0.0059, allocations: 0 / 0.8953 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.594e-06/0.005908, allocations: 0 / 0.8953 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-06/0.005909, allocations: 0 / 0.8953 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.725e-05/0.005957, allocations: 157 kB / 0.8955 GB, free: 3.555 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.005957, allocations: 0 / 0.8955 GB, free: 3.555 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002057/0.006162, allocations: 87.8 kB / 0.8956 GB, free: 3.469 MB / 0.8542 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.0003413/0.006504, allocations: 262.3 kB / 0.8958 GB, free: 3.23 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 8.455e-05/0.006588, allocations: 65.31 kB / 0.8959 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.006589, allocations: 0 / 0.8959 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.007e-06/0.006598, allocations: 15.62 kB / 0.8959 GB, free: 3.137 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.337e-05/0.006692, allocations: 8.125 kB / 0.8959 GB, free: 3.129 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001626/0.006854, allocations: 146.6 kB / 0.8961 GB, free: 2.957 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.714e-05/0.006882, allocations: 59.34 kB / 0.8961 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.352e-05/0.006895, allocations: 4 kB / 0.8961 GB, free: 2.875 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.006928, allocations: 66.2 kB / 0.8962 GB, free: 2.809 MB / 0.8542 GB Notification: Performance of SimCode: time 4.41e-07/0.006928, allocations: 0 / 0.8962 GB, free: 2.809 MB / 0.8542 GB Notification: Performance of Templates: time 0.003824/0.01075, allocations: 2.624 MB / 0.8987 GB, free: 192 kB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.169643972069025]