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.001378/0.001378, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001522/0.001522, allocations: 216.9 kB / 23.01 MB, free: 4.602 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.79/3.79, allocations: 0.49 GB / 0.7958 GB, free: 33.52 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.002053/0.002053, allocations: 67.56 kB / 1.155 GB, free: 25.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.336, allocations: 176.1 MB / 1.327 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001719/0.3377, allocations: 0.5349 MB / 1.328 GB, free: 1.031 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002553/0.3403, allocations: 1.689 MB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.136e-05/0.3403, allocations: 7.938 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.3405, allocations: 15.92 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.388e-05/0.3405, allocations: 7.984 kB / 1.329 GB, free: 15.29 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.0009889/0.3415, allocations: 287.1 kB / 1.33 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.506e-05/0.3416, allocations: 31.91 kB / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.3416, allocations: 0 / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.535e-05/0.3416, allocations: 15.92 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.102e-05/0.3417, allocations: 11.98 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.3417, allocations: 0 / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007996/0.3425, allocations: 491.2 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.275e-05/0.3425, allocations: 19.92 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.3426, allocations: 15.81 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004242/0.343, allocations: 307.1 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.343, allocations: 4 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.193e-06/0.343, allocations: 0 / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.343, allocations: 0 / 1.33 GB, free: 14.13 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.000438/0.3434, allocations: 335.2 kB / 1.331 GB, free: 13.78 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3435, allocations: 8.031 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.3435, allocations: 8.891 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.3437, allocations: 131.2 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-06/0.3437, allocations: 384 / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/0.3437, allocations: 4.375 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.627e-05/0.3438, allocations: 41.95 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.3438, allocations: 0 / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.3438, allocations: 0 / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.3438, allocations: 0 / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.446e-05/0.3438, allocations: 23.97 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001911/0.344, allocations: 148.7 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 4.697e-05/0.3441, allocations: 22.58 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.871e-05/0.3441, allocations: 24.91 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.3441, allocations: 4 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3441, allocations: 38.44 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3441, allocations: 0 / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001456/0.3443, allocations: 57.64 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.3443, allocations: 51.41 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.3445, allocations: 173 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.3445, allocations: 29.83 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.258e-05/0.3446, allocations: 108 kB / 1.332 GB, free: 12.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.097e-06/0.3446, allocations: 0 / 1.332 GB, free: 12.79 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.3446, allocations: 25.7 kB / 1.332 GB, free: 12.76 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3448, allocations: 318.8 kB / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.328e-05/0.3449, allocations: 43.97 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.464e-05/0.3449, allocations: 35.98 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.574e-05/0.345, allocations: 72.83 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.345, allocations: 8.031 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001584/0.3452, allocations: 125.5 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3452, allocations: 7.938 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.3452, allocations: 4 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.3452, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-05/0.3452, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3452, allocations: 3.984 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.521e-05/0.3452, allocations: 11.89 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.3453, allocations: 0 / 1.332 GB, free: 12.12 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.0001606/0.3454, allocations: 131.5 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.3454, allocations: 11.84 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.3455, allocations: 61.38 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3455, allocations: 0 / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3456, allocations: 0 / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3456, allocations: 0 / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.3457, allocations: 144.7 kB / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3457, allocations: 0 / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.037e-06/0.3457, allocations: 0 / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.3457, allocations: 3.938 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.3457, allocations: 4.031 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3457, allocations: 0 / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3457, allocations: 4 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.819e-05/0.3458, allocations: 81 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.243e-05/0.3458, allocations: 11.89 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.3458, allocations: 0 / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.3458, allocations: 0 / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.3458, allocations: 8.031 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.3458, allocations: 0 / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.881e-05/0.3459, allocations: 121.3 kB / 1.333 GB, free: 11.47 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3459, allocations: 7.938 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003325/0.3463, allocations: 87.8 kB / 1.333 GB, free: 11.38 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.0005383/0.3468, allocations: 235.7 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.347, allocations: 97.66 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.347, allocations: 0 / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.388e-05/0.347, allocations: 11.94 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.3471, allocations: 4 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002957/0.3474, allocations: 187 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.3478, allocations: 0.6964 MB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.823e-05/0.3478, allocations: 7.438 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.3478, allocations: 0 / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of Templates: time 0.005003/0.3528, allocations: 2.337 MB / 1.336 GB, free: 7.762 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/jenkins1/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: 13.973686577985063]