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.001702/0.001702, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001885/0.001885, allocations: 163.2 kB / 22.46 MB, free: 5.375 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.457/1.457, allocations: 177.2 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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.895/2.895, allocations: 389 MB / 0.633 GB, free: 1.004 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.252e-06/1.252e-06, allocations: 0 / 1 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.06e-05/2.185e-05, allocations: 2.281 kB / 1 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001497/0.001519, allocations: 0.5246 MB / 1.001 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002567/0.004086, allocations: 1.612 MB / 1.002 GB, free: 5.203 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.898e-05/0.004115, allocations: 0 / 1.002 GB, free: 5.203 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.004307, allocations: 67.77 kB / 1.002 GB, free: 5.137 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.605e-05/0.004353, allocations: 31.95 kB / 1.002 GB, free: 5.105 MB / 0.9512 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.001034/0.005387, allocations: 289.5 kB / 1.003 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.015e-05/0.005467, allocations: 27.91 kB / 1.003 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.005506, allocations: 4 kB / 1.003 GB, free: 4.793 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.451e-05/0.00556, allocations: 23.95 kB / 1.003 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.415e-05/0.005644, allocations: 43.89 kB / 1.003 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.00566, allocations: 4 kB / 1.003 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008422/0.006502, allocations: 455.1 kB / 1.003 GB, free: 4.277 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.703e-05/0.006559, allocations: 19.94 kB / 1.003 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.006587, allocations: 15.92 kB / 1.003 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.007196, allocations: 363 kB / 1.003 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.007198, allocations: 0 / 1.003 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.056e-06/0.007201, allocations: 3.984 kB / 1.003 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.007211, allocations: 0 / 1.003 GB, free: 3.883 MB / 0.9512 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.0005072/0.007718, allocations: 361.4 kB / 1.004 GB, free: 3.5 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.00775, allocations: 8.031 kB / 1.004 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.007788, allocations: 8.891 kB / 1.004 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.007966, allocations: 138 kB / 1.004 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-06/0.007972, allocations: 384 / 1.004 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.007985, allocations: 384 / 1.004 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.731e-05/0.008082, allocations: 38.25 kB / 1.004 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.008091, allocations: 192 / 1.004 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.008098, allocations: 384 / 1.004 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.008103, allocations: 7.938 kB / 1.004 GB, free: 3.273 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.283e-05/0.008136, allocations: 19.92 kB / 1.004 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.008316, allocations: 141.2 kB / 1.004 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.481e-05/0.008371, allocations: 26.56 kB / 1.004 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.629e-05/0.008397, allocations: 16.92 kB / 1.004 GB, free: 3.031 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.008429, allocations: 8 kB / 1.004 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.008463, allocations: 38.5 kB / 1.004 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.008464, allocations: 0 / 1.004 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001623/0.008627, allocations: 73.52 kB / 1.004 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.008671, allocations: 59.34 kB / 1.004 GB, free: 2.828 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002181/0.008889, allocations: 210.8 kB / 1.005 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.008906, allocations: 25.7 kB / 1.005 GB, free: 2.578 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.00898, allocations: 112.1 kB / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.717e-06/0.008988, allocations: 0 / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/0.009032, allocations: 29.84 kB / 1.005 GB, free: 2.43 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.009182, allocations: 330.8 kB / 1.005 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.006e-05/0.009252, allocations: 51.98 kB / 1.005 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.281e-05/0.009315, allocations: 55.97 kB / 1.005 GB, free: 1.992 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.009427, allocations: 92.28 kB / 1.005 GB, free: 1.902 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.009431, allocations: 4 kB / 1.005 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001996/0.00963, allocations: 161.5 kB / 1.005 GB, free: 1.734 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.009642, allocations: 4 kB / 1.005 GB, free: 1.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.009656, allocations: 4 kB / 1.005 GB, free: 1.727 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.009672, allocations: 3.984 kB / 1.005 GB, free: 1.723 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.166e-05/0.009683, allocations: 4.062 kB / 1.005 GB, free: 1.719 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/0.009707, allocations: 3.938 kB / 1.005 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.18e-05/0.009739, allocations: 11.89 kB / 1.005 GB, free: 1.703 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.009749, allocations: 4 kB / 1.005 GB, free: 1.699 MB / 0.9512 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 0.0001497/0.009898, allocations: 126.4 kB / 1.006 GB, free: 1.566 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.822e-05/0.009917, allocations: 11.91 kB / 1.006 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.01004, allocations: 70.11 kB / 1.006 GB, free: 1.477 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.01005, allocations: 3.984 kB / 1.006 GB, free: 1.473 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.01005, allocations: 3.938 kB / 1.006 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.01005, allocations: 4.031 kB / 1.006 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.01017, allocations: 129.3 kB / 1.006 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.01017, allocations: 0 / 1.006 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-06/0.01018, allocations: 0 / 1.006 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.01018, allocations: 4 kB / 1.006 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.01019, allocations: 3.984 kB / 1.006 GB, free: 1.301 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.01019, allocations: 0 / 1.006 GB, free: 1.301 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01019, allocations: 0 / 1.006 GB, free: 1.301 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.01031, allocations: 85.02 kB / 1.006 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.878e-05/0.01033, allocations: 11.91 kB / 1.006 GB, free: 1.188 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.01034, allocations: 4.031 kB / 1.006 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.44e-05/0.01036, allocations: 0 / 1.006 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-06/0.01036, allocations: 3.938 kB / 1.006 GB, free: 1.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.01037, allocations: 7.922 kB / 1.006 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001345/0.01051, allocations: 148.4 kB / 1.006 GB, free: 1.027 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01051, allocations: 3.938 kB / 1.006 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004182/0.01092, allocations: 87.8 kB / 1.006 GB, free: 0.9375 MB / 0.9512 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.0006117/0.01154, allocations: 252.8 kB / 1.006 GB, free: 0.707 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001863/0.01172, allocations: 109.7 kB / 1.006 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01172, allocations: 0 / 1.006 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.288e-05/0.01175, allocations: 12 kB / 1.006 GB, free: 0.582 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.01189, allocations: 5.719 kB / 1.006 GB, free: 0.5781 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003665/0.01226, allocations: 213.7 kB / 1.007 GB, free: 352 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.376e-05/0.01235, allocations: 96.34 kB / 1.007 GB, free: 236 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.025e-05/0.01237, allocations: 11.98 kB / 1.007 GB, free: 224 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.876e-05/0.01239, allocations: 12.44 kB / 1.007 GB, free: 212 kB / 0.9512 GB Notification: Performance of SimCode: time 3.91e-07/0.01239, allocations: 0 / 1.007 GB, free: 212 kB / 0.9512 GB Notification: Performance of Templates: time 0.006187/0.01858, allocations: 2.195 MB / 1.009 GB, free: 14.02 MB / 0.9669 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.109820578247309]