Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001462/0.001462, allocations: 84.3 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.001676/0.001676, allocations: 169.5 kB / 24.87 MB, free: 8.746 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.99/0.99, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.894/1.894, allocations: 377.9 MB / 0.6247 GB, free: 8.355 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 0.8127 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.137e-05, allocations: 2.312 kB / 0.8127 GB, free: 1.465 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001235/0.001257, allocations: 0.5298 MB / 0.8132 GB, free: 0.9531 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.00307, allocations: 1.647 MB / 0.8148 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.202e-05/0.003112, allocations: 0.875 kB / 0.8149 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.003288, allocations: 59.84 kB / 0.8149 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.981e-05/0.003318, allocations: 32.72 kB / 0.8149 GB, free: 15.2 MB / 0.7761 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.0008213/0.004139, allocations: 278.2 kB / 0.8152 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 7.306e-05/0.004212, allocations: 35.89 kB / 0.8152 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.025e-05/0.004242, allocations: 0 / 0.8152 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.395e-05/0.004286, allocations: 28.41 kB / 0.8153 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.467e-05/0.004341, allocations: 49.3 kB / 0.8153 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.004352, allocations: 0 / 0.8153 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005765/0.004929, allocations: 452.8 kB / 0.8157 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.063e-05/0.004979, allocations: 35.84 kB / 0.8158 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.005, allocations: 7.938 kB / 0.8158 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000387/0.005387, allocations: 359.1 kB / 0.8161 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.005389, allocations: 0.9062 kB / 0.8161 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.12e-07/0.00539, allocations: 0 / 0.8161 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.005393, allocations: 0 / 0.8161 GB, free: 13.98 MB / 0.7761 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.0003416/0.005735, allocations: 472.2 kB / 0.8166 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.005767, allocations: 12.69 kB / 0.8166 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.73e-05/0.005795, allocations: 12.89 kB / 0.8166 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.005908, allocations: 134.3 kB / 0.8167 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-06/0.005915, allocations: 384 / 0.8167 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.123e-06/0.005922, allocations: 8.359 kB / 0.8167 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.383e-05/0.005976, allocations: 28.83 kB / 0.8168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.839e-06/0.005981, allocations: 192 / 0.8168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.66e-06/0.005986, allocations: 384 / 0.8168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.005992, allocations: 3.938 kB / 0.8168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.556e-06/0.006001, allocations: 7.938 kB / 0.8168 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001093/0.00611, allocations: 129.1 kB / 0.8169 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.486e-05/0.006145, allocations: 31.58 kB / 0.8169 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.034e-05/0.006155, allocations: 7.688 kB / 0.8169 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.006185, allocations: 4.781 kB / 0.8169 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.006202, allocations: 33.39 kB / 0.817 GB, free: 13 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.006203, allocations: 4.531 kB / 0.817 GB, free: 13 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 9.144e-05/0.006294, allocations: 47.2 kB / 0.817 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.483e-05/0.006319, allocations: 51.41 kB / 0.8171 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.006449, allocations: 263.6 kB / 0.8173 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.225e-06/0.006457, allocations: 26.3 kB / 0.8174 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.496e-05/0.006512, allocations: 162.8 kB / 0.8175 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 9.959e-06/0.006522, allocations: 0.6875 kB / 0.8175 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.006557, allocations: 39.34 kB / 0.8175 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.006678, allocations: 0.5007 MB / 0.818 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.597e-05/0.006694, allocations: 8 kB / 0.818 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.62e-05/0.00671, allocations: 23.69 kB / 0.8181 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.006e-05/0.00675, allocations: 31.64 kB / 0.8181 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.006752, allocations: 0.8125 kB / 0.8181 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.83e-05/0.00683, allocations: 85.47 kB / 0.8182 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.006842, allocations: 8.938 kB / 0.8182 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.006854, allocations: 4 kB / 0.8182 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.006861, allocations: 0 / 0.8182 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.759e-06/0.006871, allocations: 1.219 kB / 0.8182 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.006877, allocations: 0 / 0.8182 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.317e-05/0.0069, allocations: 15.83 kB / 0.8182 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.006906, allocations: 0.8438 kB / 0.8182 GB, free: 11.68 MB / 0.7761 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 7.751e-05/0.006983, allocations: 168.3 kB / 0.8184 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.278e-06/0.006993, allocations: 11.91 kB / 0.8184 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.367e-05/0.007066, allocations: 50.12 kB / 0.8184 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.007069, allocations: 0 / 0.8184 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.00707, allocations: 0 / 0.8184 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.007074, allocations: 6.875 kB / 0.8184 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.135e-05/0.007145, allocations: 117.2 kB / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.007146, allocations: 0 / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.697e-06/0.00715, allocations: 0 / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.007151, allocations: 0 / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-06/0.007154, allocations: 0 / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.007155, allocations: 4 kB / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.007155, allocations: 0 / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.655e-05/0.007212, allocations: 81.77 kB / 0.8186 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.112e-05/0.007223, allocations: 11.91 kB / 0.8186 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-06/0.007231, allocations: 0 / 0.8186 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-06/0.007239, allocations: 3.938 kB / 0.8186 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.082e-05/0.00725, allocations: 8.562 kB / 0.8186 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.007252, allocations: 4.547 kB / 0.8187 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.313e-05/0.007315, allocations: 167.1 kB / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.007315, allocations: 0.5625 kB / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002567/0.007572, allocations: 89.05 kB / 0.8189 GB, free: 10.92 MB / 0.7761 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.0004392/0.008011, allocations: 269.7 kB / 0.8192 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000116/0.008127, allocations: 77.3 kB / 0.8192 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.008129, allocations: 3.875 kB / 0.8192 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.071e-05/0.00814, allocations: 11.69 kB / 0.8192 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001074/0.008247, allocations: 4 kB / 0.8192 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002239/0.008471, allocations: 182.8 kB / 0.8194 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.615e-05/0.008507, allocations: 67.33 kB / 0.8195 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.822e-05/0.008526, allocations: 7.938 kB / 0.8195 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.008561, allocations: 70.2 kB / 0.8196 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of SimCode: time 8.71e-07/0.008562, allocations: 0 / 0.8196 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of Templates: time 0.004571/0.01313, allocations: 2.615 MB / 0.8221 GB, free: 7.602 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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: 5.217284236103296]