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/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.0009311/0.0009311, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009795/0.0009795, allocations: 177 kB / 23.36 MB, free: 1.129 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 1.032/1.032, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.344/2.344, allocations: 438.8 MB / 0.6827 GB, free: 13.57 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.8385 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.469e-05/3.644e-05, allocations: 4.422 kB / 0.8385 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001267/0.001303, allocations: 0.5169 MB / 0.839 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001878/0.003181, allocations: 1.665 MB / 0.8407 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.283e-05/0.003224, allocations: 3.938 kB / 0.8407 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0002039/0.003428, allocations: 55.86 kB / 0.8407 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 3.152e-05/0.00346, allocations: 35.89 kB / 0.8408 GB, free: 11.94 MB / 0.8073 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.0007895/0.004249, allocations: 279 kB / 0.841 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.944e-05/0.004318, allocations: 31.91 kB / 0.8411 GB, free: 11.63 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.004355, allocations: 3.984 kB / 0.8411 GB, free: 11.63 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 4.933e-05/0.004404, allocations: 35.91 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.825e-05/0.004452, allocations: 31.95 kB / 0.8411 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.004466, allocations: 0 / 0.8411 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005106/0.004977, allocations: 455 kB / 0.8416 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 5.16e-05/0.005028, allocations: 27.92 kB / 0.8416 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.783e-05/0.005046, allocations: 11.92 kB / 0.8416 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003288/0.005375, allocations: 363 kB / 0.8419 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.005378, allocations: 0 / 0.8419 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.12e-07/0.005378, allocations: 4 kB / 0.842 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.005382, allocations: 0 / 0.842 GB, free: 10.72 MB / 0.8073 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.0003309/0.005713, allocations: 332 kB / 0.8423 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.005751, allocations: 12.62 kB / 0.8423 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.863e-05/0.00578, allocations: 4.922 kB / 0.8423 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.005914, allocations: 142.3 kB / 0.8424 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.005922, allocations: 384 / 0.8424 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.005933, allocations: 384 / 0.8424 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.749e-05/0.00601, allocations: 33.09 kB / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.006e-06/0.006018, allocations: 192 / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-06/0.006025, allocations: 384 / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.006037, allocations: 15.88 kB / 0.8425 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.196e-06/0.006045, allocations: 3.984 kB / 0.8425 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001019/0.006147, allocations: 74.66 kB / 0.8425 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.889e-05/0.006186, allocations: 26.55 kB / 0.8426 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.337e-05/0.006199, allocations: 8.859 kB / 0.8426 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.83e-05/0.006237, allocations: 4.062 kB / 0.8426 GB, free: 9.992 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.00626, allocations: 38.55 kB / 0.8426 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.006262, allocations: 0 / 0.8426 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 9.38e-05/0.006356, allocations: 33.69 kB / 0.8426 GB, free: 9.906 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.006389, allocations: 55.53 kB / 0.8427 GB, free: 9.84 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.006498, allocations: 187.6 kB / 0.8429 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.006509, allocations: 37.62 kB / 0.8429 GB, free: 9.602 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.006541, allocations: 88.12 kB / 0.843 GB, free: 9.512 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 9.528e-06/0.00655, allocations: 3.984 kB / 0.843 GB, free: 9.508 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.00658, allocations: 25.69 kB / 0.843 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.093e-05/0.006661, allocations: 326.8 kB / 0.8433 GB, free: 9.148 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.913e-05/0.00668, allocations: 14.83 kB / 0.8434 GB, free: 9.133 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.251e-05/0.006692, allocations: 15.5 kB / 0.8434 GB, free: 9.121 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.894e-05/0.006731, allocations: 39.61 kB / 0.8434 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006733, allocations: 0 / 0.8434 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 6.696e-05/0.0068, allocations: 73.66 kB / 0.8435 GB, free: 9 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.006812, allocations: 10.34 kB / 0.8435 GB, free: 8.992 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.006824, allocations: 0 / 0.8435 GB, free: 8.992 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.006836, allocations: 0 / 0.8435 GB, free: 8.992 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.546e-05/0.006851, allocations: 7.922 kB / 0.8435 GB, free: 8.984 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-06/0.006854, allocations: 0 / 0.8435 GB, free: 8.984 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.006872, allocations: 15.84 kB / 0.8435 GB, free: 8.969 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.006879, allocations: 0 / 0.8435 GB, free: 8.969 MB / 0.8073 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 6.726e-05/0.006947, allocations: 112.7 kB / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.482e-06/0.006953, allocations: 8.031 kB / 0.8436 GB, free: 8.84 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.457e-05/0.007028, allocations: 50.14 kB / 0.8437 GB, free: 8.785 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.007029, allocations: 0 / 0.8437 GB, free: 8.785 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.007031, allocations: 3.984 kB / 0.8437 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.007034, allocations: 0 / 0.8437 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.28e-05/0.007097, allocations: 85.8 kB / 0.8438 GB, free: 8.68 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.007098, allocations: 0 / 0.8438 GB, free: 8.68 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.525e-06/0.0071, allocations: 3.938 kB / 0.8438 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.007102, allocations: 0 / 0.8438 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-06/0.007105, allocations: 0 / 0.8438 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.007105, allocations: 32 / 0.8438 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.007106, allocations: 7.938 kB / 0.8438 GB, free: 8.668 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.777e-05/0.007154, allocations: 70.72 kB / 0.8438 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.366e-06/0.007162, allocations: 7.906 kB / 0.8438 GB, free: 8.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.317e-06/0.007171, allocations: 4 kB / 0.8438 GB, free: 8.566 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.007179, allocations: 4 kB / 0.8439 GB, free: 8.562 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.007191, allocations: 4 kB / 0.8439 GB, free: 8.559 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-06/0.007193, allocations: 0 / 0.8439 GB, free: 8.559 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.007226, allocations: 45.98 kB / 0.8439 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007226, allocations: 0 / 0.8439 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001987/0.007425, allocations: 91.8 kB / 0.844 GB, free: 8.422 MB / 0.8073 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.0004243/0.007849, allocations: 257.2 kB / 0.8442 GB, free: 8.199 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001013/0.007951, allocations: 74.41 kB / 0.8443 GB, free: 8.117 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.007953, allocations: 0 / 0.8443 GB, free: 8.117 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.273e-06/0.007961, allocations: 12.92 kB / 0.8443 GB, free: 8.102 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.134e-05/0.008022, allocations: 7.938 kB / 0.8443 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000211/0.008233, allocations: 182.8 kB / 0.8445 GB, free: 7.883 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.319e-05/0.008266, allocations: 67.33 kB / 0.8446 GB, free: 7.797 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.776e-05/0.008284, allocations: 4 kB / 0.8446 GB, free: 7.793 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.896e-05/0.008313, allocations: 47.38 kB / 0.8446 GB, free: 7.746 MB / 0.8073 GB Notification: Performance of SimCode: time 5.51e-07/0.008313, allocations: 3.938 kB / 0.8446 GB, free: 7.742 MB / 0.8073 GB Notification: Performance of Templates: time 0.004337/0.01265, allocations: 2.606 MB / 0.8472 GB, free: 5.137 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.291311669163406]