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.0009122/0.0009122, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.00112/0.00112, allocations: 181 kB / 24.09 MB, free: 420 kB / 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.9548/0.9548, allocations: 177.1 MB / 204.5 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.75/1.75, allocations: 359 MB / 0.6055 GB, free: 10.88 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.663e-06/1.663e-06, allocations: 0 / 0.7875 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.055e-05/2.221e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001522/0.001545, allocations: 0.5365 MB / 0.788 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.003839, allocations: 1.643 MB / 0.7896 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.244e-05/0.003881, allocations: 4 kB / 0.7896 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.004084, allocations: 55.84 kB / 0.7897 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.024e-05/0.004125, allocations: 33.05 kB / 0.7897 GB, free: 9.961 MB / 0.7448 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.0008366/0.004961, allocations: 264.7 kB / 0.79 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.843e-05/0.00504, allocations: 38.25 kB / 0.79 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.338e-05/0.005073, allocations: 0 / 0.79 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.206e-05/0.005125, allocations: 19.97 kB / 0.79 GB, free: 9.648 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.783e-05/0.005193, allocations: 47.88 kB / 0.7901 GB, free: 9.602 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.005208, allocations: 0 / 0.7901 GB, free: 9.602 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006496/0.005858, allocations: 433 kB / 0.7905 GB, free: 9.18 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.513e-05/0.005913, allocations: 27.91 kB / 0.7905 GB, free: 9.152 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.067e-05/0.005933, allocations: 11.94 kB / 0.7905 GB, free: 9.141 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004749/0.006408, allocations: 347 kB / 0.7908 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.006411, allocations: 4 kB / 0.7909 GB, free: 8.797 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.152e-06/0.006412, allocations: 0.5 kB / 0.7909 GB, free: 8.797 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.006416, allocations: 0.7188 kB / 0.7909 GB, free: 8.797 MB / 0.7448 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.0004158/0.006832, allocations: 467.6 kB / 0.7913 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.006874, allocations: 8.562 kB / 0.7913 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.006908, allocations: 12.83 kB / 0.7913 GB, free: 8.285 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.007032, allocations: 138.1 kB / 0.7915 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.007042, allocations: 384 / 0.7915 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.00705, allocations: 4.375 kB / 0.7915 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.094e-05/0.007111, allocations: 38.19 kB / 0.7915 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.007118, allocations: 0.7812 kB / 0.7915 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.239e-06/0.007123, allocations: 0.875 kB / 0.7915 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.007131, allocations: 3.938 kB / 0.7915 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.674e-06/0.007139, allocations: 0.875 kB / 0.7915 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001279/0.007267, allocations: 121.2 kB / 0.7916 GB, free: 7.93 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.388e-05/0.007301, allocations: 24.22 kB / 0.7916 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.194e-05/0.007313, allocations: 7.688 kB / 0.7916 GB, free: 7.883 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.007354, allocations: 17.36 kB / 0.7917 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.007377, allocations: 37.38 kB / 0.7917 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.007379, allocations: 0 / 0.7917 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001064/0.007485, allocations: 47.34 kB / 0.7917 GB, free: 7.77 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.007511, allocations: 51.41 kB / 0.7918 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.007695, allocations: 264.3 kB / 0.792 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.007707, allocations: 25.7 kB / 0.7921 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.943e-05/0.007776, allocations: 162.8 kB / 0.7922 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.057e-06/0.007785, allocations: 1.156 kB / 0.7922 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/0.007832, allocations: 39.34 kB / 0.7923 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002245/0.008057, allocations: 0.5001 MB / 0.7928 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.054e-05/0.008077, allocations: 13.31 kB / 0.7928 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.827e-05/0.008096, allocations: 8 kB / 0.7928 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.008146, allocations: 41.72 kB / 0.7928 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.008148, allocations: 1.469 kB / 0.7928 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001038/0.008252, allocations: 89.55 kB / 0.7929 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.008266, allocations: 6.188 kB / 0.7929 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.008282, allocations: 3.984 kB / 0.7929 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.008295, allocations: 6.875 kB / 0.7929 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.437e-05/0.00831, allocations: 0 / 0.7929 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-06/0.008313, allocations: 0 / 0.7929 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.865e-05/0.008342, allocations: 15.83 kB / 0.7929 GB, free: 6.496 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.008349, allocations: 0 / 0.7929 GB, free: 6.496 MB / 0.7448 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 8.31e-05/0.008432, allocations: 160.5 kB / 0.7931 GB, free: 6.328 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.008446, allocations: 11.91 kB / 0.7931 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.241e-05/0.008538, allocations: 52.61 kB / 0.7931 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.00854, allocations: 0 / 0.7931 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.008541, allocations: 0 / 0.7931 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.008545, allocations: 3.938 kB / 0.7931 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.36e-05/0.008638, allocations: 121.2 kB / 0.7933 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.00864, allocations: 6.594 kB / 0.7933 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-06/0.008644, allocations: 0 / 0.7933 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.008646, allocations: 0 / 0.7933 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-06/0.008649, allocations: 0 / 0.7933 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.00865, allocations: 0 / 0.7933 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.008651, allocations: 0 / 0.7933 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.874e-05/0.00872, allocations: 88.27 kB / 0.7934 GB, free: 6 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.387e-05/0.008734, allocations: 12.75 kB / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.618e-06/0.008743, allocations: 0 / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.008754, allocations: 0.8438 kB / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-06/0.008763, allocations: 0 / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-06/0.008765, allocations: 0 / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.353e-05/0.008849, allocations: 173.3 kB / 0.7935 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1e-07/0.008849, allocations: 4 kB / 0.7935 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003161/0.009165, allocations: 87.8 kB / 0.7936 GB, free: 5.73 MB / 0.7448 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.000498/0.009663, allocations: 262.2 kB / 0.7939 GB, free: 5.496 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001196/0.009783, allocations: 77.3 kB / 0.7939 GB, free: 5.41 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.009785, allocations: 3.938 kB / 0.7939 GB, free: 5.406 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.075e-06/0.009793, allocations: 7.688 kB / 0.794 GB, free: 5.395 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.009944, allocations: 12.12 kB / 0.794 GB, free: 5.387 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002534/0.0102, allocations: 182.9 kB / 0.7941 GB, free: 5.18 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.357e-05/0.01024, allocations: 67.33 kB / 0.7942 GB, free: 5.094 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.102e-05/0.01026, allocations: 3.984 kB / 0.7942 GB, free: 5.09 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.729e-05/0.01031, allocations: 71.17 kB / 0.7943 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/0.01031, allocations: 0 / 0.7943 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of Templates: time 0.004969/0.01528, allocations: 2.542 MB / 0.7968 GB, free: 2.488 MB / 0.7448 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.832720476202667]