Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00243/0.00243, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 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.002824/0.002824, allocations: 157.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 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.569/1.569, allocations: 177.1 MB / 203.9 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.845/2.845, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.7863 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.794e-05, allocations: 6.25 kB / 0.7863 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001633/0.001661, allocations: 0.5289 MB / 0.7869 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002799/0.00446, allocations: 1.628 MB / 0.7884 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.141e-05/0.004491, allocations: 3.938 kB / 0.7884 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.004652, allocations: 21.42 kB / 0.7885 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.749e-05/0.004679, allocations: 11.94 kB / 0.7885 GB, free: 10.64 MB / 0.7448 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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.0009887/0.005668, allocations: 266.2 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.017e-05/0.005748, allocations: 27.91 kB / 0.7888 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.511e-05/0.005783, allocations: 4 kB / 0.7888 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.426e-05/0.005828, allocations: 7.984 kB / 0.7888 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.817e-05/0.005886, allocations: 23.91 kB / 0.7888 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.005902, allocations: 0 / 0.7888 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008006/0.006703, allocations: 424.1 kB / 0.7892 GB, free: 9.906 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.439e-05/0.006767, allocations: 23.92 kB / 0.7892 GB, free: 9.883 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.454e-05/0.006792, allocations: 8.531 kB / 0.7892 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000527/0.007319, allocations: 336.4 kB / 0.7895 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.007322, allocations: 4 kB / 0.7896 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.72e-07/0.007323, allocations: 0 / 0.7896 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.007327, allocations: 0 / 0.7896 GB, free: 9.543 MB / 0.7448 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.0005213/0.007848, allocations: 432.5 kB / 0.79 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.007883, allocations: 8.031 kB / 0.79 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.675e-05/0.00793, allocations: 13.59 kB / 0.79 GB, free: 9.066 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.008097, allocations: 128.5 kB / 0.7901 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.008106, allocations: 0.9688 kB / 0.7901 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.008113, allocations: 384 / 0.7901 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.219e-05/0.008195, allocations: 39.56 kB / 0.7901 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.008202, allocations: 192 / 0.7901 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.021e-06/0.008208, allocations: 384 / 0.7901 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.008214, allocations: 5.5 kB / 0.7902 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.061e-05/0.008234, allocations: 4 kB / 0.7902 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001922/0.008426, allocations: 136.6 kB / 0.7903 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.755e-05/0.008484, allocations: 27.06 kB / 0.7903 GB, free: 8.656 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.187e-05/0.008506, allocations: 9.219 kB / 0.7903 GB, free: 8.645 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.008545, allocations: 8.047 kB / 0.7903 GB, free: 8.637 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.008581, allocations: 45.33 kB / 0.7904 GB, free: 8.582 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.008582, allocations: 0 / 0.7904 GB, free: 8.582 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001422/0.008724, allocations: 38.22 kB / 0.7904 GB, free: 8.539 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.008771, allocations: 56.91 kB / 0.7905 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.008984, allocations: 229.9 kB / 0.7907 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.009007, allocations: 25.7 kB / 0.7907 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.009107, allocations: 150.8 kB / 0.7909 GB, free: 8.051 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.716e-06/0.009116, allocations: 0.5 kB / 0.7909 GB, free: 8.051 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/0.009171, allocations: 37.45 kB / 0.7909 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000272/0.009443, allocations: 0.4962 MB / 0.7914 GB, free: 7.5 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.499e-05/0.009468, allocations: 8 kB / 0.7914 GB, free: 7.492 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.055e-05/0.009489, allocations: 11.94 kB / 0.7914 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.179e-05/0.00955, allocations: 35.67 kB / 0.7914 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.009552, allocations: 0 / 0.7914 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001097/0.009662, allocations: 62.19 kB / 0.7915 GB, free: 7.375 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.009674, allocations: 4.719 kB / 0.7915 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.00969, allocations: 4 kB / 0.7915 GB, free: 7.367 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.009704, allocations: 4.484 kB / 0.7915 GB, free: 7.363 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.194e-05/0.009716, allocations: 1.531 kB / 0.7915 GB, free: 7.363 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.009723, allocations: 3.938 kB / 0.7915 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.979e-05/0.009753, allocations: 15.89 kB / 0.7915 GB, free: 7.344 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.00976, allocations: 0 / 0.7915 GB, free: 7.344 MB / 0.7448 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.000124/0.009884, allocations: 161.1 kB / 0.7917 GB, free: 7.176 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.009902, allocations: 9.047 kB / 0.7917 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.96e-05/0.01, allocations: 41.5 kB / 0.7917 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.01, allocations: 0.8438 kB / 0.7917 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.01001, allocations: 7.938 kB / 0.7917 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.01002, allocations: 0.5 kB / 0.7917 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.01015, allocations: 132.6 kB / 0.7919 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.01015, allocations: 0.8438 kB / 0.7919 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-06/0.01015, allocations: 0 / 0.7919 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.01016, allocations: 2.094 kB / 0.7919 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.01016, allocations: 4 kB / 0.7919 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.01016, allocations: 0 / 0.7919 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.01017, allocations: 7.984 kB / 0.7919 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.01028, allocations: 80.27 kB / 0.7919 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.37e-05/0.01029, allocations: 8.484 kB / 0.792 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.0103, allocations: 2.562 kB / 0.792 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.01032, allocations: 0 / 0.792 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.612e-05/0.01033, allocations: 0 / 0.792 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.01034, allocations: 7.875 kB / 0.792 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001132/0.01045, allocations: 155.2 kB / 0.7921 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01045, allocations: 0 / 0.7921 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003223/0.01077, allocations: 87.8 kB / 0.7922 GB, free: 6.582 MB / 0.7448 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.0006855/0.01146, allocations: 250.8 kB / 0.7924 GB, free: 6.359 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001514/0.01161, allocations: 65.36 kB / 0.7925 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.01161, allocations: 9.688 kB / 0.7925 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.766e-05/0.01163, allocations: 11.62 kB / 0.7925 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.01176, allocations: 0 / 0.7925 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002896/0.01205, allocations: 154.5 kB / 0.7927 GB, free: 6.082 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.238e-05/0.01214, allocations: 80.02 kB / 0.7927 GB, free: 5.984 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.651e-05/0.01216, allocations: 0.5938 kB / 0.7927 GB, free: 5.984 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.805e-05/0.01218, allocations: 9.594 kB / 0.7928 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of SimCode: time 4.3e-07/0.01218, allocations: 0 / 0.7928 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of Templates: time 0.006121/0.0183, allocations: 2.117 MB / 0.7948 GB, free: 3.871 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.8601896999171]