Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001963/0.001963, allocations: 111.5 kB / 17.13 MB, free: 6.008 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.002411/0.002411, allocations: 213.8 kB / 20.1 MB, free: 3.055 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.478/1.478, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.929/2.929, allocations: 0.49 GB / 0.7923 GB, free: 1.273 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [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.001984/0.001984, allocations: 59.91 kB / 1.15 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9358/0.9378, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001724/0.9395, allocations: 0.5215 MB / 1.322 GB, free: 24.72 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001861/0.9414, allocations: 1.686 MB / 1.324 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.064e-05/0.9414, allocations: 0 / 1.324 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.9416, allocations: 63.38 kB / 1.324 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.044e-05/0.9416, allocations: 37.72 kB / 1.324 GB, free: 23.51 MB / 1.061 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.0007997/0.9424, allocations: 257.2 kB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.546e-05/0.9425, allocations: 33.61 kB / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.889e-05/0.9425, allocations: 0 / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.313e-05/0.9426, allocations: 25.59 kB / 1.324 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.902e-05/0.9426, allocations: 41.19 kB / 1.325 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.9426, allocations: 3.938 kB / 1.325 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005208/0.9432, allocations: 388.1 kB / 1.325 GB, free: 23.27 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.168e-05/0.9432, allocations: 27.66 kB / 1.325 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.107e-05/0.9433, allocations: 32.84 kB / 1.325 GB, free: 23.24 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.9436, allocations: 305.5 kB / 1.325 GB, free: 23.15 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.9436, allocations: 0 / 1.325 GB, free: 23.15 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.094e-06/0.9436, allocations: 0 / 1.325 GB, free: 23.15 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.9436, allocations: 0 / 1.325 GB, free: 23.15 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.0003831/0.944, allocations: 435.9 kB / 1.326 GB, free: 22.73 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.9441, allocations: 14.17 kB / 1.326 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.9441, allocations: 11.53 kB / 1.326 GB, free: 22.72 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.9442, allocations: 190.5 kB / 1.326 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.9442, allocations: 8.375 kB / 1.326 GB, free: 22.5 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.9443, allocations: 7.094 kB / 1.326 GB, free: 22.5 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.853e-05/0.9443, allocations: 40.81 kB / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.9444, allocations: 0 / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.9444, allocations: 0 / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.9444, allocations: 0 / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.958e-05/0.9444, allocations: 24.3 kB / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001391/0.9445, allocations: 184.8 kB / 1.326 GB, free: 22.25 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 4.111e-05/0.9446, allocations: 29.7 kB / 1.326 GB, free: 22.23 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.976e-05/0.9446, allocations: 13.73 kB / 1.326 GB, free: 22.22 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.9446, allocations: 5.125 kB / 1.326 GB, free: 22.22 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.9446, allocations: 37.19 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.9446, allocations: 0 / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001428/0.9448, allocations: 76.5 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.9448, allocations: 51.41 kB / 1.326 GB, free: 22.07 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.945, allocations: 215.1 kB / 1.327 GB, free: 21.93 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.945, allocations: 31.72 kB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.945, allocations: 104.4 kB / 1.327 GB, free: 21.8 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.945, allocations: 0 / 1.327 GB, free: 21.8 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.9451, allocations: 32.39 kB / 1.327 GB, free: 21.78 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.694e-05/0.9451, allocations: 327.6 kB / 1.327 GB, free: 21.46 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.888e-05/0.9452, allocations: 56.45 kB / 1.327 GB, free: 21.45 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.499e-05/0.9452, allocations: 55.89 kB / 1.327 GB, free: 21.44 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.9454, allocations: 93.17 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.9454, allocations: 0 / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002253/0.9456, allocations: 169.1 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.9456, allocations: 9.219 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.9456, allocations: 1.469 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.9456, allocations: 0.7812 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.589e-05/0.9457, allocations: 0.8125 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.9457, allocations: 0 / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.687e-05/0.9457, allocations: 6.516 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.9457, allocations: 4.594 kB / 1.327 GB, free: 21.34 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: 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.0001586/0.9459, allocations: 136.1 kB / 1.327 GB, free: 21.21 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.97e-05/0.9459, allocations: 19.42 kB / 1.328 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.946, allocations: 67.98 kB / 1.328 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.946, allocations: 3.984 kB / 1.328 GB, free: 21.15 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.946, allocations: 4.656 kB / 1.328 GB, free: 21.15 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.946, allocations: 0 / 1.328 GB, free: 21.15 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.9462, allocations: 176 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.9462, allocations: 4.031 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-06/0.9462, allocations: 8.062 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.9462, allocations: 4.594 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.9462, allocations: 0.9688 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.9462, allocations: 0 / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.9462, allocations: 0.75 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.693e-05/0.9463, allocations: 83.5 kB / 1.328 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.9463, allocations: 90.94 kB / 1.328 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.9463, allocations: 4.562 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.33e-05/0.9463, allocations: 0.5938 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.9463, allocations: 0.5625 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.9463, allocations: 1.125 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001164/0.9465, allocations: 152.6 kB / 1.328 GB, free: 20.67 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9465, allocations: 3.938 kB / 1.328 GB, free: 20.66 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004066/0.9469, allocations: 88.3 kB / 1.328 GB, free: 20.65 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.0006262/0.9475, allocations: 234.9 kB / 1.328 GB, free: 20.52 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002241/0.9477, allocations: 113.3 kB / 1.329 GB, free: 20.48 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.9477, allocations: 0 / 1.329 GB, free: 20.48 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.198e-05/0.9477, allocations: 12.97 kB / 1.329 GB, free: 20.48 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.9479, allocations: 5.062 kB / 1.329 GB, free: 20.48 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003586/0.9483, allocations: 241.8 kB / 1.329 GB, free: 20.3 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.9484, allocations: 0.7059 MB / 1.329 GB, free: 19.6 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.603e-05/0.9484, allocations: 8.875 kB / 1.329 GB, free: 19.59 MB / 1.061 GB Notification: Performance of SimCode: time 2.81e-07/0.9484, allocations: 0.75 kB / 1.329 GB, free: 19.59 MB / 1.061 GB Notification: Performance of Templates: time 0.006133/0.9546, allocations: 2.463 MB / 1.332 GB, free: 19.38 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 14.02402069499658]