Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.001342/0.001342, allocations: 80.28 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001482/0.001482, allocations: 170.4 kB / 22.46 MB, free: 5.355 MB / 14.72 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.467/1.467, allocations: 177.1 MB / 202.8 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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 2.85/2.85, allocations: 377.8 MB / 0.6221 GB, free: 12.59 MB / 0.5919 GB " [Timeout remaining time 176] 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.591e-05, allocations: 2.281 kB / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001421/0.001447, allocations: 0.5247 MB / 0.9819 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002471/0.003917, allocations: 1.618 MB / 0.9835 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.482e-05/0.003952, allocations: 4 kB / 0.9835 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.004101, allocations: 19.91 kB / 0.9835 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.572e-05/0.004127, allocations: 7.984 kB / 0.9835 GB, free: 9.82 MB / 0.9356 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.0009907/0.005118, allocations: 285.8 kB / 0.9838 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.226e-05/0.0052, allocations: 19.92 kB / 0.9838 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.339e-05/0.005243, allocations: 3.984 kB / 0.9838 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.315e-05/0.005296, allocations: 15.98 kB / 0.9838 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.601e-05/0.005342, allocations: 15.98 kB / 0.9838 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.005359, allocations: 0 / 0.9838 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008198/0.006178, allocations: 459 kB / 0.9843 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.48e-05/0.006253, allocations: 23.92 kB / 0.9843 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.667e-05/0.00628, allocations: 4 kB / 0.9843 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005462/0.006826, allocations: 347.1 kB / 0.9846 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.006829, allocations: 0 / 0.9846 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.192e-06/0.006831, allocations: 0 / 0.9846 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.746e-06/0.006839, allocations: 0 / 0.9846 GB, free: 8.672 MB / 0.9356 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.0005099/0.007349, allocations: 337.5 kB / 0.9849 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.00739, allocations: 8.031 kB / 0.985 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.007429, allocations: 12.89 kB / 0.985 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.007608, allocations: 129.6 kB / 0.9851 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.472e-06/0.007615, allocations: 4.312 kB / 0.9851 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.007629, allocations: 4.375 kB / 0.9851 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.007735, allocations: 38.25 kB / 0.9851 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.007742, allocations: 4.188 kB / 0.9851 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.007751, allocations: 384 / 0.9851 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.007758, allocations: 7.875 kB / 0.9851 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.29e-05/0.007791, allocations: 15.98 kB / 0.9852 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001813/0.007972, allocations: 125.3 kB / 0.9853 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.926e-05/0.008031, allocations: 30.52 kB / 0.9853 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.252e-05/0.008074, allocations: 16.91 kB / 0.9853 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.008112, allocations: 4 kB / 0.9853 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.008145, allocations: 34.56 kB / 0.9854 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.352e-06/0.008146, allocations: 0 / 0.9854 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001809/0.008327, allocations: 69.58 kB / 0.9854 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.008376, allocations: 55.34 kB / 0.9855 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.008562, allocations: 160.1 kB / 0.9856 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.008582, allocations: 29.7 kB / 0.9857 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.694e-05/0.008659, allocations: 104.1 kB / 0.9858 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 9.748e-06/0.008669, allocations: 4.125 kB / 0.9858 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.31e-05/0.008712, allocations: 29.64 kB / 0.9858 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.008875, allocations: 326.8 kB / 0.9861 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.914e-05/0.008935, allocations: 35.98 kB / 0.9861 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.927e-05/0.008984, allocations: 39.98 kB / 0.9862 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.965e-05/0.009083, allocations: 64.83 kB / 0.9862 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.009085, allocations: 0 / 0.9862 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001785/0.009264, allocations: 125.7 kB / 0.9864 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.009281, allocations: 6.5 kB / 0.9864 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.009302, allocations: 7.984 kB / 0.9864 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.009317, allocations: 64 / 0.9864 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.581e-05/0.009333, allocations: 4 kB / 0.9864 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.009342, allocations: 7.875 kB / 0.9864 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.989e-05/0.009371, allocations: 15.89 kB / 0.9864 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.00938, allocations: 0 / 0.9864 GB, free: 6.684 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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 0.0001803/0.00956, allocations: 121.8 kB / 0.9865 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.203e-05/0.009572, allocations: 3.953 kB / 0.9865 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.009693, allocations: 57.5 kB / 0.9866 GB, free: 6.492 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.009696, allocations: 3.984 kB / 0.9866 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.009703, allocations: 7.969 kB / 0.9866 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.009706, allocations: 0 / 0.9866 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.009834, allocations: 121.3 kB / 0.9867 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.009835, allocations: 0 / 0.9867 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-06/0.009839, allocations: 0 / 0.9867 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.009841, allocations: 0 / 0.9867 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.009848, allocations: 0 / 0.9867 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.009849, allocations: 0 / 0.9867 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.009855, allocations: 7.984 kB / 0.9867 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001092/0.009964, allocations: 80.95 kB / 0.9868 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.009975, allocations: 7.891 kB / 0.9868 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.009997, allocations: 8.031 kB / 0.9868 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.166e-05/0.01001, allocations: 0 / 0.9868 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.657e-05/0.01003, allocations: 0 / 0.9868 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-06/0.01003, allocations: 3.938 kB / 0.9868 GB, free: 6.207 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001048/0.01013, allocations: 128.9 kB / 0.9869 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.01013, allocations: 0 / 0.9869 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003511/0.01049, allocations: 83.8 kB / 0.987 GB, free: 6 MB / 0.9356 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.0006561/0.01114, allocations: 260.1 kB / 0.9873 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000193/0.01133, allocations: 101.6 kB / 0.9874 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01134, allocations: 0 / 0.9874 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.677e-05/0.01135, allocations: 11.94 kB / 0.9874 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001496/0.0115, allocations: 0 / 0.9874 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003279/0.01183, allocations: 173.2 kB / 0.9875 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.408e-05/0.01191, allocations: 79.39 kB / 0.9876 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.575e-05/0.01193, allocations: 4 kB / 0.9876 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.14e-05/0.01195, allocations: 12.5 kB / 0.9876 GB, free: 5.332 MB / 0.9356 GB Notification: Performance of SimCode: time 7.32e-07/0.01195, allocations: 0 / 0.9876 GB, free: 5.332 MB / 0.9356 GB Notification: Performance of Templates: time 0.006814/0.01877, allocations: 2.187 MB / 0.9898 GB, free: 3.152 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.873638391494751]