Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.0009675/0.0009675, allocations: 80.39 kB / 21.47 MB, free: 3.023 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.0009752/0.0009752, allocations: 167.9 kB / 24.86 MB, free: 8.875 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 0.921/0.921, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.709/1.709, allocations: 359 MB / 0.6063 GB, free: 10.92 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.7883 GB, free: 11.16 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.638e-05/1.796e-05, allocations: 2.312 kB / 0.7883 GB, free: 11.16 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001069/0.001087, allocations: 0.5342 MB / 0.7888 GB, free: 10.64 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001939/0.003026, allocations: 1.643 MB / 0.7904 GB, free: 8.984 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.963e-05/0.003066, allocations: 1.375 kB / 0.7904 GB, free: 8.984 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.003265, allocations: 63.78 kB / 0.7904 GB, free: 8.922 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 2.815e-05/0.003293, allocations: 27.95 kB / 0.7905 GB, free: 8.895 MB / 0.698 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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.0006715/0.003965, allocations: 273.7 kB / 0.7907 GB, free: 8.629 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 6.853e-05/0.004033, allocations: 27.91 kB / 0.7908 GB, free: 8.602 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 3.708e-05/0.00407, allocations: 5.219 kB / 0.7908 GB, free: 8.598 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 4.61e-05/0.004117, allocations: 19.97 kB / 0.7908 GB, free: 8.578 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.551e-05/0.004172, allocations: 39.94 kB / 0.7908 GB, free: 8.539 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.004186, allocations: 5.75 kB / 0.7908 GB, free: 8.535 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004817/0.004668, allocations: 431 kB / 0.7912 GB, free: 8.113 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.004714, allocations: 27.92 kB / 0.7913 GB, free: 8.086 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.004731, allocations: 11.92 kB / 0.7913 GB, free: 8.074 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.005031, allocations: 351.9 kB / 0.7916 GB, free: 7.73 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.664e-06/0.005033, allocations: 0 / 0.7916 GB, free: 7.73 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.41e-07/0.005034, allocations: 1.062 kB / 0.7916 GB, free: 7.73 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.005037, allocations: 0 / 0.7916 GB, free: 7.73 MB / 0.698 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.0002989/0.005336, allocations: 467.2 kB / 0.7921 GB, free: 7.238 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.005363, allocations: 9.625 kB / 0.7921 GB, free: 7.23 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.005388, allocations: 12.88 kB / 0.7921 GB, free: 7.219 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.005489, allocations: 136.5 kB / 0.7922 GB, free: 7.059 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.172e-06/0.005495, allocations: 384 / 0.7922 GB, free: 7.059 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-06/0.005501, allocations: 5.906 kB / 0.7922 GB, free: 7.055 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.849e-05/0.00555, allocations: 38.19 kB / 0.7922 GB, free: 7.012 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-06/0.005555, allocations: 192 / 0.7922 GB, free: 7.012 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.05e-06/0.00556, allocations: 384 / 0.7922 GB, free: 7.012 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.005565, allocations: 6.594 kB / 0.7923 GB, free: 7.008 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.915e-06/0.005572, allocations: 4 kB / 0.7923 GB, free: 7.004 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.84e-05/0.005671, allocations: 117.2 kB / 0.7924 GB, free: 6.863 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 2.945e-05/0.0057, allocations: 23.06 kB / 0.7924 GB, free: 6.828 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.112e-05/0.005711, allocations: 11.62 kB / 0.7924 GB, free: 6.812 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.005741, allocations: 12.05 kB / 0.7924 GB, free: 6.801 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.005759, allocations: 41.38 kB / 0.7925 GB, free: 6.75 MB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.00576, allocations: 0.7188 kB / 0.7925 GB, free: 6.75 MB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 7.773e-05/0.005838, allocations: 39.31 kB / 0.7925 GB, free: 6.707 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/0.005861, allocations: 51.41 kB / 0.7925 GB, free: 6.645 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.005998, allocations: 268.3 kB / 0.7928 GB, free: 6.367 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.447e-06/0.006007, allocations: 25.7 kB / 0.7928 GB, free: 6.336 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.006062, allocations: 164.5 kB / 0.793 GB, free: 6.172 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.965e-06/0.006069, allocations: 0 / 0.793 GB, free: 6.172 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.006104, allocations: 39.34 kB / 0.793 GB, free: 6.125 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.006213, allocations: 0.5039 MB / 0.7935 GB, free: 5.609 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.346e-05/0.006226, allocations: 11.94 kB / 0.7935 GB, free: 5.598 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.109e-05/0.006238, allocations: 9.062 kB / 0.7935 GB, free: 5.59 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.684e-05/0.006274, allocations: 41.91 kB / 0.7936 GB, free: 5.547 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006276, allocations: 1.844 kB / 0.7936 GB, free: 5.547 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 6.827e-05/0.006344, allocations: 77.59 kB / 0.7936 GB, free: 5.465 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/0.006353, allocations: 4 kB / 0.7936 GB, free: 5.461 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.006365, allocations: 7.984 kB / 0.7937 GB, free: 5.453 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.441e-06/0.00637, allocations: 0 / 0.7937 GB, free: 5.453 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.814e-06/0.006378, allocations: 2 kB / 0.7937 GB, free: 5.453 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.446e-06/0.006381, allocations: 4 kB / 0.7937 GB, free: 5.449 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.006399, allocations: 19.78 kB / 0.7937 GB, free: 5.43 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.006405, allocations: 0 / 0.7937 GB, free: 5.43 MB / 0.698 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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.584e-05/0.00647, allocations: 161.2 kB / 0.7938 GB, free: 5.262 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-06/0.006477, allocations: 7.953 kB / 0.7938 GB, free: 5.254 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.075e-05/0.006538, allocations: 47.39 kB / 0.7939 GB, free: 5.199 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.82e-07/0.006539, allocations: 0 / 0.7939 GB, free: 5.199 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.00654, allocations: 0.5312 kB / 0.7939 GB, free: 5.199 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.006543, allocations: 7.875 kB / 0.7939 GB, free: 5.191 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.902e-05/0.006612, allocations: 130.6 kB / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.006613, allocations: 0 / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.913e-06/0.006615, allocations: 0 / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.006616, allocations: 0 / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-06/0.006619, allocations: 0.5312 kB / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.006619, allocations: 1.375 kB / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.00662, allocations: 0 / 0.794 GB, free: 5.039 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.673e-05/0.006667, allocations: 88.27 kB / 0.7941 GB, free: 4.93 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.738e-06/0.006676, allocations: 13.06 kB / 0.7941 GB, free: 4.918 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.673e-06/0.006683, allocations: 0 / 0.7941 GB, free: 4.918 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.652e-06/0.00669, allocations: 0 / 0.7941 GB, free: 4.918 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-06/0.006698, allocations: 0 / 0.7941 GB, free: 4.918 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.72e-07/0.006699, allocations: 1.375 kB / 0.7941 GB, free: 4.918 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001338/0.006833, allocations: 172.2 kB / 0.7943 GB, free: 4.75 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.1e-08/0.006833, allocations: 0 / 0.7943 GB, free: 4.75 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002065/0.007039, allocations: 88.7 kB / 0.7944 GB, free: 4.664 MB / 0.698 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.0003378/0.007377, allocations: 265.3 kB / 0.7946 GB, free: 4.426 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 9.343e-05/0.00747, allocations: 81.83 kB / 0.7947 GB, free: 4.336 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.007472, allocations: 0.5938 kB / 0.7947 GB, free: 4.336 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 6.673e-06/0.007478, allocations: 9.531 kB / 0.7947 GB, free: 4.324 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.594e-05/0.007574, allocations: 10.19 kB / 0.7947 GB, free: 4.316 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001838/0.007758, allocations: 186.8 kB / 0.7949 GB, free: 4.102 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3e-05/0.007788, allocations: 67.33 kB / 0.795 GB, free: 4.016 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.42e-05/0.007802, allocations: 4.812 kB / 0.795 GB, free: 4.012 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.007832, allocations: 70.2 kB / 0.795 GB, free: 3.941 MB / 0.698 GB Notification: Performance of SimCode: time 4.31e-07/0.007832, allocations: 3.469 kB / 0.795 GB, free: 3.941 MB / 0.698 GB Notification: Performance of Templates: time 0.003692/0.01152, allocations: 2.541 MB / 0.7975 GB, free: 1.422 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.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: 4.759450301062316]