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.001908/0.001908, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002394/0.002394, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.255/3.255, allocations: 0.4892 GB / 0.7943 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 75.27 kB / 1.154 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3209, allocations: 176.1 MB / 1.325 GB, free: 1.898 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001734/0.3226, allocations: 0.5214 MB / 1.326 GB, free: 1.383 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002618/0.3252, allocations: 1.615 MB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.311e-05/0.3253, allocations: 0 / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.3254, allocations: 19.92 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.527e-05/0.3254, allocations: 11.98 kB / 1.328 GB, free: 15.72 MB / 1.029 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.001038/0.3265, allocations: 271.2 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.343e-05/0.3265, allocations: 31.89 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.483e-05/0.3266, allocations: 8 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.883e-05/0.3266, allocations: 7.984 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.116e-05/0.3267, allocations: 19.92 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.3267, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008529/0.3275, allocations: 451.2 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5e-05/0.3276, allocations: 15.94 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.142e-05/0.3276, allocations: 23.84 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005017/0.3281, allocations: 291.1 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3281, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3281, allocations: 4 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.3281, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 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.0004925/0.3286, allocations: 341.6 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.3286, allocations: 8.031 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.3287, allocations: 8.891 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.3288, allocations: 123.4 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-06/0.3289, allocations: 384 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.3289, allocations: 384 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.593e-05/0.329, allocations: 49.94 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.329, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.329, allocations: 4 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.329, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.526e-05/0.329, allocations: 23.97 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.3292, allocations: 121.3 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.233e-05/0.3292, allocations: 26.56 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.535e-05/0.3293, allocations: 12.92 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.3293, allocations: 7.938 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.3293, allocations: 38.55 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3293, allocations: 0 / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.000152/0.3295, allocations: 69.52 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3295, allocations: 59.53 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.3297, allocations: 172.2 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.3297, allocations: 25.7 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.3298, allocations: 100.1 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.867e-06/0.3298, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-05/0.3298, allocations: 29.7 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.33, allocations: 322.8 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.292e-05/0.33, allocations: 35.98 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.274e-05/0.3301, allocations: 43.92 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.983e-05/0.3302, allocations: 68.88 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3302, allocations: 32 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001696/0.3304, allocations: 133.6 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.3304, allocations: 4 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.3304, allocations: 7.875 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3304, allocations: 0 / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.134e-05/0.3304, allocations: 4 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.3304, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.3304, allocations: 3.953 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.3304, allocations: 4 kB / 1.33 GB, free: 12.64 MB / 1.029 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.0001549/0.3306, allocations: 122.3 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.3306, allocations: 15.94 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.3307, allocations: 69.36 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3307, allocations: 0 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3307, allocations: 0 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3307, allocations: 0 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.3309, allocations: 121.3 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3309, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.793e-06/0.3309, allocations: 3.984 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3309, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.3309, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3309, allocations: 7.969 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3309, allocations: 0 / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.353e-05/0.331, allocations: 77.02 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.313e-05/0.331, allocations: 11.89 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.331, allocations: 4 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/0.331, allocations: 3.938 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.331, allocations: 4 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.331, allocations: 3.984 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001045/0.3311, allocations: 121.3 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3311, allocations: 0 / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003499/0.3315, allocations: 87.8 kB / 1.331 GB, free: 11.93 MB / 1.029 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.0005685/0.3321, allocations: 244 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001789/0.3322, allocations: 93.66 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3322, allocations: 0 / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.619e-05/0.3323, allocations: 16 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.3324, allocations: 0 / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003052/0.3327, allocations: 161.3 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.061e-05/0.3328, allocations: 75.33 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.677e-05/0.3328, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.995e-05/0.3328, allocations: 15.42 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3328, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of Templates: time 0.00626/0.3391, allocations: 2.204 MB / 1.334 GB, free: 9.094 MB / 1.029 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: 8.82888776063919]