Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001855/0.001855, allocations: 84.91 kB / 19.76 MB, free: 2.023 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.002133/0.002133, allocations: 159.9 kB / 23.01 MB, free: 4.965 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.401/1.401, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.864/2.864, allocations: 394.2 MB / 0.6386 GB, free: 11.95 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_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.003353/0.003353, allocations: 71.88 kB / 1.009 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.775/0.7783, allocations: 181.8 MB / 1.187 GB, free: 16.39 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001673/0.78, allocations: 0.5241 MB / 1.187 GB, free: 16.08 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.002038/0.7821, allocations: 1.609 MB / 1.189 GB, free: 14.98 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.364e-05/0.7821, allocations: 7.938 kB / 1.189 GB, free: 14.97 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.7823, allocations: 62.94 kB / 1.189 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 3.706e-05/0.7823, allocations: 31.34 kB / 1.189 GB, free: 14.96 MB / 1.076 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.0009918/0.7833, allocations: 286.2 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 9.069e-05/0.7834, allocations: 27.33 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.869e-05/0.7834, allocations: 1.859 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.092e-05/0.7835, allocations: 29.88 kB / 1.189 GB, free: 14.83 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 7.032e-05/0.7835, allocations: 43.83 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.7835, allocations: 1.219 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008132/0.7844, allocations: 449.3 kB / 1.19 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.582e-05/0.7844, allocations: 30.72 kB / 1.19 GB, free: 14.69 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.596e-05/0.7844, allocations: 18.31 kB / 1.19 GB, free: 14.68 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.7849, allocations: 314.1 kB / 1.19 GB, free: 14.59 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.7849, allocations: 1.125 kB / 1.19 GB, free: 14.59 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7849, allocations: 0 / 1.19 GB, free: 14.59 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.7849, allocations: 3.938 kB / 1.19 GB, free: 14.58 MB / 1.076 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.0003864/0.7853, allocations: 357.8 kB / 1.19 GB, free: 14.25 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.7854, allocations: 10.38 kB / 1.19 GB, free: 14.25 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.158e-05/0.7854, allocations: 8.359 kB / 1.19 GB, free: 14.25 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.7855, allocations: 133 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-06/0.7855, allocations: 1.531 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.7855, allocations: 1.406 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.038e-05/0.7856, allocations: 47.42 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.7856, allocations: 0 / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-06/0.7856, allocations: 0 / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.7856, allocations: 3.938 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.264e-05/0.7857, allocations: 23.36 kB / 1.19 GB, free: 14.06 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.7858, allocations: 139.2 kB / 1.191 GB, free: 13.92 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 4.53e-05/0.7858, allocations: 30.22 kB / 1.191 GB, free: 13.89 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.106e-05/0.7859, allocations: 19.09 kB / 1.191 GB, free: 13.88 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.7859, allocations: 6.484 kB / 1.191 GB, free: 13.88 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.075e-05/0.7859, allocations: 36.75 kB / 1.191 GB, free: 13.84 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.7859, allocations: 0 / 1.191 GB, free: 13.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001402/0.786, allocations: 72.41 kB / 1.191 GB, free: 13.8 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.839e-05/0.7861, allocations: 52.75 kB / 1.191 GB, free: 13.73 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.7862, allocations: 216.2 kB / 1.191 GB, free: 13.6 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 6.422e-06/0.7862, allocations: 25.7 kB / 1.191 GB, free: 13.57 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.7863, allocations: 106.3 kB / 1.191 GB, free: 13.47 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 9.368e-06/0.7863, allocations: 0 / 1.191 GB, free: 13.47 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.7863, allocations: 33.61 kB / 1.191 GB, free: 13.45 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.468e-05/0.7864, allocations: 323.5 kB / 1.191 GB, free: 13.13 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.338e-05/0.7864, allocations: 54.11 kB / 1.192 GB, free: 13.12 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.076e-05/0.7865, allocations: 57.8 kB / 1.192 GB, free: 13.11 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.71e-05/0.7866, allocations: 95.33 kB / 1.192 GB, free: 13.08 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7866, allocations: 3.938 kB / 1.192 GB, free: 13.08 MB / 1.076 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001603/0.7867, allocations: 158 kB / 1.192 GB, free: 13.02 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.7867, allocations: 12.16 kB / 1.192 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.7868, allocations: 6.922 kB / 1.192 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.7868, allocations: 0 / 1.192 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.281e-05/0.7868, allocations: 2.266 kB / 1.192 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.7868, allocations: 4 kB / 1.192 GB, free: 13.01 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.878e-05/0.7868, allocations: 14.47 kB / 1.192 GB, free: 13 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.7868, allocations: 5.672 kB / 1.192 GB, free: 13 MB / 1.076 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.0001001/0.7869, allocations: 129.2 kB / 1.192 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/0.7869, allocations: 7.891 kB / 1.192 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.787, allocations: 72.14 kB / 1.192 GB, free: 12.83 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.787, allocations: 0 / 1.192 GB, free: 12.83 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.787, allocations: 0 / 1.192 GB, free: 12.83 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.787, allocations: 1.922 kB / 1.192 GB, free: 12.83 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.346e-05/0.7871, allocations: 136.4 kB / 1.192 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.7871, allocations: 0 / 1.192 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.059e-06/0.7871, allocations: 5.703 kB / 1.192 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.7871, allocations: 0.9062 kB / 1.192 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.7871, allocations: 0 / 1.192 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.7871, allocations: 9.906 kB / 1.192 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7871, allocations: 0 / 1.192 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.634e-05/0.7872, allocations: 77.53 kB / 1.192 GB, free: 12.61 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.472e-05/0.7872, allocations: 16.45 kB / 1.192 GB, free: 12.6 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.7872, allocations: 8.594 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.481e-05/0.7872, allocations: 5.281 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.541e-05/0.7873, allocations: 4.781 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.7873, allocations: 5.312 kB / 1.192 GB, free: 12.58 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001047/0.7874, allocations: 148.9 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.7874, allocations: 0 / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003982/0.7878, allocations: 90.06 kB / 1.193 GB, free: 12.48 MB / 1.076 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.000518/0.7883, allocations: 233.2 kB / 1.193 GB, free: 12.35 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000168/0.7885, allocations: 116.1 kB / 1.193 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.7885, allocations: 0 / 1.193 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.712e-05/0.7885, allocations: 14.73 kB / 1.193 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.7886, allocations: 1.797 kB / 1.193 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/0.7889, allocations: 215.7 kB / 1.193 GB, free: 12.15 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.428e-05/0.789, allocations: 88.5 kB / 1.193 GB, free: 12.08 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.75e-05/0.789, allocations: 2.578 kB / 1.193 GB, free: 12.08 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.359e-05/0.789, allocations: 9.625 kB / 1.193 GB, free: 12.07 MB / 1.076 GB Notification: Performance of SimCode: time 4.31e-07/0.789, allocations: 5.188 kB / 1.193 GB, free: 12.07 MB / 1.076 GB Notification: Performance of Templates: time 0.005764/0.7948, allocations: 2.177 MB / 1.195 GB, free: 11.87 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.513667598948814]