Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007823/0.0007823, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009782/0.001761, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006756/0.0006756, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0007983/0.001474, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9721/0.9721, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08678/1.059, allocations: 53.66 MB / 243.2 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.365/2.365, allocations: 446.7 MB / 0.6745 GB, free: 6.195 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2294/2.595, allocations: 145.9 MB / 0.817 GB, free: 4.195 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 9.61e-07/9.61e-07, allocations: 0 / 0.8183 GB, free: 2.926 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.452e-05/1.548e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.922 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001433/0.001448, allocations: 0.5812 MB / 0.8188 GB, free: 2.34 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001648/0.003096, allocations: 1.661 MB / 0.8205 GB, free: 0.6602 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.475e-05/0.003131, allocations: 3.938 kB / 0.8205 GB, free: 0.6562 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 8.642e-05/0.003218, allocations: 11.98 kB / 0.8205 GB, free: 0.6445 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.592e-05/0.003243, allocations: 19.91 kB / 0.8205 GB, free: 0.625 MB / 0.7917 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.0006059/0.003849, allocations: 251 kB / 0.8207 GB, free: 388 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 6.747e-05/0.003917, allocations: 23.91 kB / 0.8208 GB, free: 364 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 3.657e-05/0.003953, allocations: 7.938 kB / 0.8208 GB, free: 356 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 5.562e-05/0.004009, allocations: 11.98 kB / 0.8208 GB, free: 344 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 3.456e-05/0.004044, allocations: 15.97 kB / 0.8208 GB, free: 328 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.004058, allocations: 4 kB / 0.8208 GB, free: 324 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005925/0.00465, allocations: 467 kB / 0.8212 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.298e-05/0.004693, allocations: 19.92 kB / 0.8213 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.393e-05/0.004707, allocations: 4 kB / 0.8213 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.005004, allocations: 287.2 kB / 0.8215 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.005015, allocations: 0 / 0.8215 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.382e-06/0.005016, allocations: 0 / 0.8215 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.005028, allocations: 0 / 0.8215 GB, free: 15.55 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.0003334/0.005361, allocations: 347.8 kB / 0.8219 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.005391, allocations: 8.625 kB / 0.8219 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.358e-05/0.005415, allocations: 8.938 kB / 0.8219 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.005526, allocations: 133.5 kB / 0.822 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.824e-06/0.005534, allocations: 4.375 kB / 0.822 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-06/0.005541, allocations: 384 / 0.822 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.236e-05/0.005603, allocations: 41.02 kB / 0.822 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.005608, allocations: 192 / 0.8221 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-06/0.005613, allocations: 384 / 0.8221 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.005618, allocations: 3.938 kB / 0.8221 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.779e-06/0.005627, allocations: 4 kB / 0.8221 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.669e-05/0.005704, allocations: 66.7 kB / 0.8221 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 2.813e-05/0.005732, allocations: 18.58 kB / 0.8221 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.151e-05/0.005744, allocations: 12.94 kB / 0.8222 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.005781, allocations: 4 kB / 0.8222 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.005799, allocations: 30.56 kB / 0.8222 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.005799, allocations: 3.938 kB / 0.8222 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 8.067e-05/0.00588, allocations: 37.69 kB / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.005907, allocations: 51.41 kB / 0.8223 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.567e-05/0.005993, allocations: 161.4 kB / 0.8224 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.006002, allocations: 29.64 kB / 0.8225 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.817e-05/0.00603, allocations: 88.12 kB / 0.8225 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 9.679e-06/0.006039, allocations: 8.078 kB / 0.8225 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.006064, allocations: 25.69 kB / 0.8226 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.176e-05/0.006136, allocations: 322.8 kB / 0.8229 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.428e-05/0.006151, allocations: 14.83 kB / 0.8229 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.256e-06/0.006159, allocations: 8 kB / 0.8229 GB, free: 14 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.509e-05/0.006194, allocations: 43.62 kB / 0.8229 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.006196, allocations: 0 / 0.8229 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.243e-05/0.006248, allocations: 53.7 kB / 0.823 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.006258, allocations: 4 kB / 0.823 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.00627, allocations: 4 kB / 0.823 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.754e-06/0.006278, allocations: 4.047 kB / 0.823 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.536e-05/0.006293, allocations: 4 kB / 0.823 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.865e-06/0.006296, allocations: 0 / 0.823 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.175e-05/0.006318, allocations: 11.83 kB / 0.823 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.006325, allocations: 4 kB / 0.823 GB, free: 13.87 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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.778e-05/0.006393, allocations: 119.5 kB / 0.8231 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-06/0.006397, allocations: 0 / 0.8231 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.789e-05/0.006475, allocations: 49.44 kB / 0.8232 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.006475, allocations: 0 / 0.8232 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.006477, allocations: 4.031 kB / 0.8232 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.00648, allocations: 0 / 0.8232 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.449e-05/0.006534, allocations: 77.81 kB / 0.8233 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.006536, allocations: 0 / 0.8233 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.514e-06/0.006538, allocations: 0 / 0.8233 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-06/0.006547, allocations: 11.94 kB / 0.8233 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.006548, allocations: 0 / 0.8233 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-06/0.006551, allocations: 0 / 0.8233 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.006552, allocations: 0 / 0.8233 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.006553, allocations: 0 / 0.8233 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.331e-05/0.006596, allocations: 70.66 kB / 0.8233 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-06/0.006605, allocations: 12.03 kB / 0.8234 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.893e-06/0.006612, allocations: 0 / 0.8234 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-06/0.006621, allocations: 4 kB / 0.8234 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-06/0.006622, allocations: 0 / 0.8234 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.364e-05/0.006645, allocations: 30.45 kB / 0.8234 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.006645, allocations: 0 / 0.8234 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001992/0.006845, allocations: 87.8 kB / 0.8235 GB, free: 13.36 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.0004192/0.007264, allocations: 275.5 kB / 0.8237 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.273e-05/0.007347, allocations: 58.53 kB / 0.8238 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.007353, allocations: 8 kB / 0.8238 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.208e-05/0.007365, allocations: 12.78 kB / 0.8238 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.932e-05/0.007424, allocations: 7.938 kB / 0.8238 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/0.007604, allocations: 154.6 kB / 0.824 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.951e-05/0.007634, allocations: 67.33 kB / 0.824 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.53e-05/0.007649, allocations: 4 kB / 0.824 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.007676, allocations: 51.38 kB / 0.8241 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of SimCode: time 4.01e-07/0.007677, allocations: 0 / 0.8241 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of Templates: time 0.003918/0.0116, allocations: 2.585 MB / 0.8266 GB, free: 10.12 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.ref.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.119861485436559]