Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.028/2.028, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 181.3 kB / 490.8 MB, free: 1.969 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 221.3 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 90.05 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.71e-06/5.74e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2815, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7705/1.052, allocations: 151 MB / 1.359 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/1.052, allocations: 74.59 kB / 1.359 GB, free: 17.52 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 FrontEnd: time 0.02067/1.073, allocations: 5.526 MB / 1.364 GB, free: 17.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.795e-05/1.073, allocations: 1.375 kB / 1.364 GB, free: 17.2 MB / 0.823 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.0006759/1.074, allocations: 426.9 kB / 1.365 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/1.074, allocations: 13.44 kB / 1.365 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.383e-05/1.074, allocations: 14.47 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/1.074, allocations: 195.5 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/1.074, allocations: 0 / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/1.074, allocations: 1.312 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001087/1.074, allocations: 27.64 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.417e-05/1.074, allocations: 46.66 kB / 1.365 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/1.074, allocations: 1.375 kB / 1.365 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/1.074, allocations: 0 / 1.365 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/1.075, allocations: 0 / 1.365 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000218/1.075, allocations: 173 kB / 1.365 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.607e-05/1.075, allocations: 32.86 kB / 1.365 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.43e-05/1.075, allocations: 18 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.081e-05/1.075, allocations: 2.719 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/1.075, allocations: 31.45 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/1.075, allocations: 1.312 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.00027/1.075, allocations: 75.7 kB / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/1.075, allocations: 52.72 kB / 1.366 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/1.076, allocations: 185.5 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/1.076, allocations: 26.97 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.28e-05/1.076, allocations: 95.7 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.534e-05/1.076, allocations: 0 / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/1.076, allocations: 0 / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001499/1.076, allocations: 326.5 kB / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/1.076, allocations: 58.33 kB / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.784e-05/1.076, allocations: 63.89 kB / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/1.076, allocations: 74.66 kB / 1.366 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/1.076, allocations: 0 / 1.366 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003192/1.077, allocations: 194.2 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/1.077, allocations: 8.75 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/1.077, allocations: 3.281 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/1.077, allocations: 1.359 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.54e-05/1.077, allocations: 1.094 kB / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/1.077, allocations: 0 / 1.367 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.639e-05/1.077, allocations: 20.78 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.85e-05/1.077, allocations: 7.469 kB / 1.367 GB, free: 31.59 MB / 0.8386 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001024/1.077, allocations: 106.4 kB / 1.367 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.578e-05/1.077, allocations: 11.06 kB / 1.367 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/1.077, allocations: 96.84 kB / 1.367 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/1.077, allocations: 1 kB / 1.367 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.077, allocations: 0 / 1.367 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/1.077, allocations: 1.156 kB / 1.367 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/1.077, allocations: 158.3 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/1.077, allocations: 1.156 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.185e-06/1.077, allocations: 2.062 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/1.077, allocations: 5.344 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/1.077, allocations: 0 / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/1.077, allocations: 3.281 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.077, allocations: 0 / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001514/1.077, allocations: 93.67 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.945e-05/1.078, allocations: 88.11 kB / 1.367 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/1.078, allocations: 4 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.679e-05/1.078, allocations: 6.672 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.175e-05/1.078, allocations: 0 / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/1.078, allocations: 3.891 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002042/1.078, allocations: 141.6 kB / 1.367 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004998/1.078, allocations: 116.4 kB / 1.367 GB, free: 30.98 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006296/1.079, allocations: 247.3 kB / 1.368 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002282/1.079, allocations: 130.9 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.079, allocations: 0 / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.756e-05/1.079, allocations: 15.33 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001137/1.079, allocations: 8.25 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003259/1.08, allocations: 151.9 kB / 1.368 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003059/1.08, allocations: 0.7179 MB / 1.369 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.08, allocations: 0 / 1.369 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of Templates: time 0.006417/1.086, allocations: 2.466 MB / 1.371 GB, free: 29.81 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches