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.0009186/0.0009186, allocations: 83.59 kB / 20.45 MB, free: 4.113 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.0009052/0.0009052, allocations: 169 kB / 23.82 MB, free: 0.7422 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.8855/0.8855, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.844/1.844, allocations: 377.8 MB / 0.6236 GB, free: 8.5 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.472e-06/1.472e-06, allocations: 0 / 0.8115 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.296e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.746 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001134/0.001156, allocations: 0.5355 MB / 0.812 GB, free: 1.23 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.00291, allocations: 1.659 MB / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.024e-05/0.00295, allocations: 0 / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.003143, allocations: 68.64 kB / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.872e-05/0.003172, allocations: 28.73 kB / 0.8137 GB, free: 15.46 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.0008218/0.003994, allocations: 286.2 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.124e-05/0.004075, allocations: 31.91 kB / 0.814 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.799e-05/0.004113, allocations: 4 kB / 0.814 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.465e-05/0.004157, allocations: 23.95 kB / 0.8141 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.566e-05/0.004213, allocations: 41.69 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.004228, allocations: 4 kB / 0.8141 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005987/0.004827, allocations: 460 kB / 0.8145 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.547e-05/0.004882, allocations: 23.92 kB / 0.8146 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.32e-05/0.004905, allocations: 11.88 kB / 0.8146 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003822/0.005287, allocations: 363.6 kB / 0.8149 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.00529, allocations: 4.719 kB / 0.8149 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.263e-06/0.005291, allocations: 4 kB / 0.8149 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.005296, allocations: 1.156 kB / 0.8149 GB, free: 14.23 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.0003912/0.005687, allocations: 463.6 kB / 0.8154 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.005725, allocations: 8.031 kB / 0.8154 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.29e-05/0.005768, allocations: 11.39 kB / 0.8154 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.005897, allocations: 141 kB / 0.8155 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.005906, allocations: 384 / 0.8155 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.005915, allocations: 384 / 0.8155 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.307e-05/0.005988, allocations: 38.19 kB / 0.8156 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.005994, allocations: 192 / 0.8156 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.006001, allocations: 0.9062 kB / 0.8156 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.006008, allocations: 3.938 kB / 0.8156 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.939e-06/0.006018, allocations: 0.7188 kB / 0.8156 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.006154, allocations: 161.1 kB / 0.8157 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.571e-05/0.00619, allocations: 27.06 kB / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.038e-05/0.00621, allocations: 9.312 kB / 0.8158 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.86e-05/0.006249, allocations: 12.05 kB / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.006268, allocations: 33.39 kB / 0.8158 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.006269, allocations: 0 / 0.8158 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0001178/0.006387, allocations: 42.22 kB / 0.8158 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.006414, allocations: 56.03 kB / 0.8159 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.006558, allocations: 264.4 kB / 0.8161 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.006569, allocations: 25.7 kB / 0.8162 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.006629, allocations: 159.7 kB / 0.8163 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 9.959e-06/0.006639, allocations: 0 / 0.8163 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.006675, allocations: 39.36 kB / 0.8164 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.006797, allocations: 0.5053 MB / 0.8169 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.249e-05/0.00682, allocations: 12 kB / 0.8169 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.698e-05/0.006837, allocations: 16 kB / 0.8169 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.093e-05/0.006888, allocations: 44.44 kB / 0.8169 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.00689, allocations: 0 / 0.8169 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 9.015e-05/0.00698, allocations: 96.09 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.006993, allocations: 4 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.007009, allocations: 4 kB / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.007021, allocations: 1.219 kB / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.444e-05/0.007036, allocations: 0 / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.007042, allocations: 3.938 kB / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.987e-05/0.007062, allocations: 8.797 kB / 0.817 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.00707, allocations: 4 kB / 0.817 GB, free: 11.89 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 8.631e-05/0.007156, allocations: 162.8 kB / 0.8172 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.007166, allocations: 11.91 kB / 0.8172 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.032e-05/0.007246, allocations: 46.19 kB / 0.8173 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.007248, allocations: 0 / 0.8173 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.007252, allocations: 10.94 kB / 0.8173 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.007255, allocations: 3.938 kB / 0.8173 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.396e-05/0.007339, allocations: 152.6 kB / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.00734, allocations: 0 / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.717e-06/0.007344, allocations: 0 / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.007346, allocations: 4 kB / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.007353, allocations: 4 kB / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.007354, allocations: 0 / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.007355, allocations: 1.312 kB / 0.8174 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.064e-05/0.007406, allocations: 76.33 kB / 0.8175 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.121e-05/0.007417, allocations: 15.91 kB / 0.8175 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-06/0.007427, allocations: 0.625 kB / 0.8175 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-06/0.007434, allocations: 4 kB / 0.8175 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.007448, allocations: 0.5625 kB / 0.8175 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.007451, allocations: 5.125 kB / 0.8175 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.537e-05/0.007516, allocations: 171.1 kB / 0.8177 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.007516, allocations: 0 / 0.8177 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002359/0.007752, allocations: 91.73 kB / 0.8178 GB, free: 11.08 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.0004658/0.008218, allocations: 269.8 kB / 0.818 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001227/0.00834, allocations: 73.38 kB / 0.8181 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.008342, allocations: 1.031 kB / 0.8181 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.008538, allocations: 7.688 kB / 0.8181 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.008656, allocations: 13.11 kB / 0.8181 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002501/0.008906, allocations: 190.7 kB / 0.8183 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.377e-05/0.00894, allocations: 67.33 kB / 0.8184 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.912e-05/0.008959, allocations: 5.062 kB / 0.8184 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.54e-05/0.008974, allocations: 12.5 kB / 0.8184 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of SimCode: time 9.21e-07/0.008975, allocations: 0.9688 kB / 0.8184 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of Templates: time 0.004926/0.0139, allocations: 2.637 MB / 0.821 GB, free: 7.793 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.8831280139274895]