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.0009713/0.0009713, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001015/0.001015, allocations: 169.3 kB / 24.28 MB, free: 280 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.8856/0.8856, allocations: 177.1 MB / 204.6 MB, free: 5.641 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.874/1.874, allocations: 377.8 MB / 0.6239 GB, free: 8.512 MB / 0.5886 GB " [Timeout remaining time 178] 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.503e-06/1.503e-06, allocations: 0 / 0.8115 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.034e-05, allocations: 2.875 kB / 0.8115 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001063/0.001084, allocations: 0.5265 MB / 0.812 GB, free: 1.598 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001853/0.002937, allocations: 1.654 MB / 0.8136 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.8e-05/0.002975, allocations: 4.531 kB / 0.8136 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.003145, allocations: 56.77 kB / 0.8137 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.831e-05/0.003173, allocations: 35.88 kB / 0.8137 GB, free: 15.83 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.0006867/0.00386, allocations: 282 kB / 0.814 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.801e-05/0.003928, allocations: 35.89 kB / 0.814 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.781e-05/0.003966, allocations: 5.234 kB / 0.814 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.004249, allocations: 23.97 kB / 0.814 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.706e-05/0.004306, allocations: 47.88 kB / 0.8141 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.004321, allocations: 2.156 kB / 0.8141 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.004835, allocations: 451.1 kB / 0.8145 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.502e-05/0.00489, allocations: 23.92 kB / 0.8145 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.579e-05/0.004916, allocations: 11.94 kB / 0.8145 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.005278, allocations: 363.8 kB / 0.8149 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.005282, allocations: 4 kB / 0.8149 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.21e-07/0.005282, allocations: 1.375 kB / 0.8149 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.319e-06/0.005287, allocations: 0 / 0.8149 GB, free: 14.61 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.0003682/0.005655, allocations: 467.6 kB / 0.8153 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.005692, allocations: 9.312 kB / 0.8154 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.164e-05/0.005734, allocations: 12.83 kB / 0.8154 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.00586, allocations: 137 kB / 0.8155 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.234e-06/0.005868, allocations: 384 / 0.8155 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-06/0.005876, allocations: 1.031 kB / 0.8155 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.721e-05/0.005953, allocations: 34.98 kB / 0.8155 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-06/0.005958, allocations: 192 / 0.8155 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-06/0.005965, allocations: 1.875 kB / 0.8155 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.005973, allocations: 3.938 kB / 0.8155 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.356e-05/0.005986, allocations: 4 kB / 0.8155 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.006119, allocations: 160.5 kB / 0.8157 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.458e-05/0.006154, allocations: 32.52 kB / 0.8157 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.093e-05/0.006175, allocations: 7.688 kB / 0.8157 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.006215, allocations: 8.062 kB / 0.8157 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.006232, allocations: 37.39 kB / 0.8158 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.006232, allocations: 1.781 kB / 0.8158 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0001075/0.00634, allocations: 41.64 kB / 0.8158 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.006365, allocations: 59.28 kB / 0.8159 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.0065, allocations: 259.8 kB / 0.8161 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.458e-06/0.00651, allocations: 26.8 kB / 0.8161 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.623e-05/0.006566, allocations: 158.8 kB / 0.8163 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 9.127e-06/0.006575, allocations: 1.5 kB / 0.8163 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.006611, allocations: 43.36 kB / 0.8163 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.00672, allocations: 0.4962 MB / 0.8168 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.941e-05/0.006739, allocations: 12 kB / 0.8168 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.418e-05/0.006754, allocations: 16.52 kB / 0.8169 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.255e-05/0.006796, allocations: 39.64 kB / 0.8169 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.006798, allocations: 0.5938 kB / 0.8169 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.933e-05/0.006878, allocations: 99.41 kB / 0.817 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.006888, allocations: 4 kB / 0.817 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.0069, allocations: 4.781 kB / 0.817 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.679e-06/0.006909, allocations: 0 / 0.817 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.849e-06/0.006919, allocations: 0.9062 kB / 0.817 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.006925, allocations: 3.938 kB / 0.817 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.783e-05/0.006943, allocations: 12.42 kB / 0.817 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.006949, allocations: 0.9062 kB / 0.817 GB, free: 12.26 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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 7.286e-05/0.007022, allocations: 164.6 kB / 0.8172 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.00703, allocations: 12.75 kB / 0.8172 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.562e-05/0.007105, allocations: 43.53 kB / 0.8172 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.007106, allocations: 0 / 0.8172 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.007111, allocations: 7.938 kB / 0.8172 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.007114, allocations: 0 / 0.8172 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.819e-05/0.007192, allocations: 149.2 kB / 0.8174 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.007193, allocations: 0.625 kB / 0.8174 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-06/0.007199, allocations: 8 kB / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.007201, allocations: 5.75 kB / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.00721, allocations: 0 / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.007211, allocations: 0 / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.007212, allocations: 0 / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.442e-05/0.007266, allocations: 81.2 kB / 0.8175 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.072e-05/0.007277, allocations: 7.906 kB / 0.8175 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.007289, allocations: 11.45 kB / 0.8175 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.604e-06/0.007297, allocations: 0 / 0.8175 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.00731, allocations: 0 / 0.8175 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.007313, allocations: 7.922 kB / 0.8175 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.764e-05/0.007381, allocations: 171.1 kB / 0.8177 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.007381, allocations: 0 / 0.8177 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002149/0.007595, allocations: 87.8 kB / 0.8177 GB, free: 11.46 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.0004218/0.008017, allocations: 261.2 kB / 0.818 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001251/0.008142, allocations: 86.17 kB / 0.8181 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.008144, allocations: 0 / 0.8181 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.532e-06/0.00815, allocations: 8.781 kB / 0.8181 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001057/0.008256, allocations: 8 kB / 0.8181 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002304/0.008487, allocations: 191.7 kB / 0.8183 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.397e-05/0.008521, allocations: 67.33 kB / 0.8183 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.563e-05/0.008536, allocations: 1.094 kB / 0.8183 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.00855, allocations: 12.5 kB / 0.8183 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of SimCode: time 4.61e-07/0.00855, allocations: 0 / 0.8183 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of Templates: time 0.003849/0.0124, allocations: 2.236 MB / 0.8205 GB, free: 8.586 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: 4.928088491084054]