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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 225.6 MB / 249.4 MB, free: 3.129 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 496.2 MB / 0.7819 GB, free: 12.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001995/0.001995, allocations: 75.88 kB / 1.136 GB, free: 12.45 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8948/0.8968, allocations: 173.6 MB / 1.305 GB, free: 33.43 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001494/0.8983, allocations: 0.5286 MB / 1.306 GB, free: 33.12 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.8999, allocations: 1.629 MB / 1.307 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.81e-05/0.9, allocations: 3.938 kB / 1.307 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.9001, allocations: 18.58 kB / 1.308 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.115e-05/0.9001, allocations: 12.95 kB / 1.308 GB, free: 31.96 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.9008, allocations: 238.3 kB / 1.308 GB, free: 31.86 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.388e-05/0.9009, allocations: 30.55 kB / 1.308 GB, free: 31.85 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.591e-05/0.9009, allocations: 4 kB / 1.308 GB, free: 31.85 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.487e-05/0.9009, allocations: 13.3 kB / 1.308 GB, free: 31.84 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 3.57e-05/0.901, allocations: 22.47 kB / 1.308 GB, free: 31.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.768e-06/0.901, allocations: 0 / 1.308 GB, free: 31.84 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.9014, allocations: 365.3 kB / 1.308 GB, free: 31.73 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.297e-05/0.9015, allocations: 18.38 kB / 1.308 GB, free: 31.72 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.9015, allocations: 18.69 kB / 1.308 GB, free: 31.71 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.9018, allocations: 275.7 kB / 1.308 GB, free: 31.64 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.9018, allocations: 4 kB / 1.308 GB, free: 31.64 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.112e-06/0.9018, allocations: 0 / 1.308 GB, free: 31.64 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.9018, allocations: 0 / 1.308 GB, free: 31.64 MB / 1.061 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.0003302/0.9021, allocations: 419 kB / 1.309 GB, free: 31.22 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.9022, allocations: 11.06 kB / 1.309 GB, free: 31.22 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.9022, allocations: 11.08 kB / 1.309 GB, free: 31.21 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.9023, allocations: 182 kB / 1.309 GB, free: 31 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.9023, allocations: 384 / 1.309 GB, free: 31 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.9023, allocations: 6.453 kB / 1.309 GB, free: 31 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.133e-05/0.9024, allocations: 42.27 kB / 1.309 GB, free: 30.96 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.9024, allocations: 3.938 kB / 1.309 GB, free: 30.96 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.9024, allocations: 0 / 1.309 GB, free: 30.96 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.9024, allocations: 0 / 1.309 GB, free: 30.96 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.441e-05/0.9024, allocations: 15.17 kB / 1.309 GB, free: 30.96 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001213/0.9026, allocations: 171 kB / 1.309 GB, free: 30.77 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.76e-05/0.9026, allocations: 32.81 kB / 1.309 GB, free: 30.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.9026, allocations: 17.52 kB / 1.309 GB, free: 30.72 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/0.9026, allocations: 14.19 kB / 1.309 GB, free: 30.71 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.9027, allocations: 37.38 kB / 1.309 GB, free: 30.67 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.9027, allocations: 0 / 1.309 GB, free: 30.67 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001257/0.9028, allocations: 59.92 kB / 1.309 GB, free: 30.63 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.218e-05/0.9028, allocations: 58.22 kB / 1.31 GB, free: 30.57 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.9029, allocations: 167.8 kB / 1.31 GB, free: 30.45 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.632e-06/0.9029, allocations: 25.7 kB / 1.31 GB, free: 30.42 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.007e-05/0.903, allocations: 102.5 kB / 1.31 GB, free: 30.32 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.335e-06/0.903, allocations: 0 / 1.31 GB, free: 30.32 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.903, allocations: 25 kB / 1.31 GB, free: 30.3 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.221e-05/0.903, allocations: 321.5 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.194e-05/0.9031, allocations: 42.94 kB / 1.31 GB, free: 29.98 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.003e-05/0.9031, allocations: 34.48 kB / 1.31 GB, free: 29.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.151e-05/0.9032, allocations: 71.14 kB / 1.31 GB, free: 29.95 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9032, allocations: 2.656 kB / 1.31 GB, free: 29.95 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001084/0.9033, allocations: 132.2 kB / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.9033, allocations: 10.03 kB / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.9033, allocations: 3.328 kB / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.9033, allocations: 2.906 kB / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.154e-05/0.9033, allocations: 0 / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.9033, allocations: 0 / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.011e-05/0.9034, allocations: 6.609 kB / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.9034, allocations: 0 / 1.31 GB, free: 29.89 MB / 1.061 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 8.49e-05/0.9034, allocations: 120.9 kB / 1.311 GB, free: 29.77 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.041e-05/0.9035, allocations: 15.02 kB / 1.311 GB, free: 29.76 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-05/0.9035, allocations: 57.58 kB / 1.311 GB, free: 29.72 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.9035, allocations: 0 / 1.311 GB, free: 29.72 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.9035, allocations: 0 / 1.311 GB, free: 29.72 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.9035, allocations: 6.719 kB / 1.311 GB, free: 29.71 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.387e-05/0.9036, allocations: 168.5 kB / 1.311 GB, free: 29.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.9036, allocations: 0 / 1.311 GB, free: 29.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-06/0.9036, allocations: 10.78 kB / 1.311 GB, free: 29.51 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.9036, allocations: 3.938 kB / 1.311 GB, free: 29.51 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-06/0.9036, allocations: 7.453 kB / 1.311 GB, free: 29.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.9036, allocations: 0 / 1.311 GB, free: 29.5 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.9036, allocations: 3.938 kB / 1.311 GB, free: 29.5 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.706e-05/0.9037, allocations: 77.06 kB / 1.311 GB, free: 29.43 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.955e-05/0.9037, allocations: 87.94 kB / 1.311 GB, free: 29.33 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.9037, allocations: 0 / 1.311 GB, free: 29.33 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.9037, allocations: 0 / 1.311 GB, free: 29.33 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.126e-05/0.9037, allocations: 3.281 kB / 1.311 GB, free: 29.33 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.9037, allocations: 6.688 kB / 1.311 GB, free: 29.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.676e-05/0.9038, allocations: 122.3 kB / 1.311 GB, free: 29.24 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9038, allocations: 0 / 1.311 GB, free: 29.24 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002793/0.9041, allocations: 88.39 kB / 1.311 GB, free: 29.23 MB / 1.061 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.0004328/0.9045, allocations: 226.5 kB / 1.311 GB, free: 29.1 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001258/0.9046, allocations: 96.78 kB / 1.311 GB, free: 29.05 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.9046, allocations: 0 / 1.311 GB, free: 29.05 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.241e-05/0.9046, allocations: 11.78 kB / 1.311 GB, free: 29.05 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.9048, allocations: 9.016 kB / 1.311 GB, free: 29.05 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/0.905, allocations: 173.7 kB / 1.312 GB, free: 28.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.9051, allocations: 0.6953 MB / 1.312 GB, free: 28.21 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.727e-05/0.9051, allocations: 6.688 kB / 1.312 GB, free: 28.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.246e-05/0.9051, allocations: 7.438 kB / 1.312 GB, free: 28.2 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.9051, allocations: 0 / 1.312 GB, free: 28.2 MB / 1.061 GB Notification: Performance of Templates: time 0.004414/0.9096, allocations: 2.093 MB / 1.314 GB, free: 28.02 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.707130485214293]