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.001392/0.001392, allocations: 111 kB / 16.46 MB, free: 6.453 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.001567/0.001567, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.446/1.446, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.121/3.121, allocations: 0.4899 GB / 0.7915 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 177] 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.002096/0.002096, allocations: 73.09 kB / 1.149 GB, free: 26.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3457, allocations: 176.1 MB / 1.321 GB, free: 2.855 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001816/0.3475, allocations: 0.5303 MB / 1.322 GB, free: 2.328 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00248/0.35, allocations: 1.681 MB / 1.323 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.13e-05/0.3501, allocations: 0 / 1.323 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.3502, allocations: 23.91 kB / 1.323 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.302e-05/0.3502, allocations: 7.984 kB / 1.323 GB, free: 0.5977 MB / 1.014 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.0008998/0.3511, allocations: 264.5 kB / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.221e-05/0.3512, allocations: 23.92 kB / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.3512, allocations: 0 / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.324e-05/0.3513, allocations: 15.92 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.341e-05/0.3513, allocations: 19.97 kB / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.3513, allocations: 4 kB / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000623/0.3519, allocations: 383.4 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.493e-05/0.352, allocations: 19.86 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.167e-05/0.352, allocations: 19.81 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004069/0.3524, allocations: 291.1 kB / 1.324 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3524, allocations: 0 / 1.324 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.607e-06/0.3524, allocations: 4 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.3524, allocations: 0 / 1.324 GB, free: 15.57 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.0005359/0.353, allocations: 414.7 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.353, allocations: 11.98 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.759e-05/0.353, allocations: 8.891 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.3532, allocations: 188.1 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.3532, allocations: 4.375 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.3532, allocations: 384 / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.151e-05/0.3533, allocations: 41.95 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.3533, allocations: 0 / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.3533, allocations: 4 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3533, allocations: 0 / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.931e-05/0.3534, allocations: 19.98 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002492/0.3536, allocations: 173.7 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 4.376e-05/0.3537, allocations: 22.58 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.704e-05/0.3537, allocations: 16.91 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.3537, allocations: 7.938 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.3538, allocations: 34.5 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 4.007e-06/0.3538, allocations: 7.984 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001421/0.3539, allocations: 65.64 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.3539, allocations: 55.39 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.3541, allocations: 164.2 kB / 1.326 GB, free: 14.17 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.3541, allocations: 29.64 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.927e-05/0.3542, allocations: 96.12 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.678e-06/0.3542, allocations: 0 / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3543, allocations: 29.7 kB / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3544, allocations: 319 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.744e-05/0.3545, allocations: 43.97 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.754e-05/0.3546, allocations: 43.92 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.984e-05/0.3546, allocations: 68.88 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3546, allocations: 0 / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001532/0.3548, allocations: 121.6 kB / 1.326 GB, free: 13.4 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.3548, allocations: 11.94 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.3548, allocations: 0 / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.3548, allocations: 0 / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-05/0.3548, allocations: 4.047 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3549, allocations: 8 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.702e-05/0.3549, allocations: 11.89 kB / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.3549, allocations: 3.938 kB / 1.326 GB, free: 13.36 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.0001434/0.355, allocations: 127.5 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.355, allocations: 11.89 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.3552, allocations: 57.56 kB / 1.327 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.3552, allocations: 0 / 1.327 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3552, allocations: 8.016 kB / 1.327 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.3552, allocations: 0 / 1.327 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.3553, allocations: 169.6 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3553, allocations: 0 / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.388e-06/0.3553, allocations: 0 / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.3553, allocations: 7.938 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.3553, allocations: 3.984 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3553, allocations: 0 / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3553, allocations: 0 / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.082e-05/0.3554, allocations: 81.02 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/0.3555, allocations: 85 kB / 1.327 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.3555, allocations: 4 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.4e-05/0.3555, allocations: 4 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-06/0.3555, allocations: 0 / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.3555, allocations: 0 / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.83e-05/0.3556, allocations: 128.8 kB / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3556, allocations: 0 / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003195/0.3559, allocations: 87.8 kB / 1.327 GB, free: 12.5 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.0005451/0.3565, allocations: 239.7 kB / 1.327 GB, free: 12.28 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001597/0.3566, allocations: 97.66 kB / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3566, allocations: 64 / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.786e-05/0.3566, allocations: 15.94 kB / 1.327 GB, free: 12.16 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/0.3568, allocations: 1.719 kB / 1.327 GB, free: 12.16 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002696/0.357, allocations: 161.2 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.3574, allocations: 0.6924 MB / 1.328 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.528e-05/0.3574, allocations: 0 / 1.328 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.689e-05/0.3574, allocations: 11.44 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.3574, allocations: 0 / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of Templates: time 0.005268/0.3627, allocations: 2.181 MB / 1.33 GB, free: 9.062 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/jenkins/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: 8.547197648789734]