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.0008253/0.0008253, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008499/0.0008499, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.8974/0.8974, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.748/1.748, allocations: 377.8 MB / 0.6229 GB, free: 8.648 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.465e-06/2.465e-06, allocations: 0 / 0.9821 GB, free: 2.145 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.906e-05/4.153e-05, allocations: 6.281 kB / 0.9822 GB, free: 2.137 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001928/0.00197, allocations: 0.5158 MB / 0.9827 GB, free: 1.625 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.002659/0.004628, allocations: 1.618 MB / 0.9842 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.687e-05/0.004685, allocations: 3.938 kB / 0.9842 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.004892, allocations: 59.84 kB / 0.9843 GB, free: 15.93 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 2.741e-05/0.00492, allocations: 35.89 kB / 0.9843 GB, free: 15.89 MB / 0.948 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.0009595/0.005879, allocations: 271 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.005993, allocations: 35.89 kB / 0.9846 GB, free: 15.59 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 4.659e-05/0.00604, allocations: 7.984 kB / 0.9846 GB, free: 15.58 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.871e-05/0.006089, allocations: 19.98 kB / 0.9847 GB, free: 15.56 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.035e-05/0.006149, allocations: 51.86 kB / 0.9847 GB, free: 15.51 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.006164, allocations: 0 / 0.9847 GB, free: 15.51 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005523/0.006716, allocations: 447.1 kB / 0.9851 GB, free: 15.07 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 5.865e-05/0.006775, allocations: 31.91 kB / 0.9852 GB, free: 15.04 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 2.258e-05/0.006798, allocations: 7.938 kB / 0.9852 GB, free: 15.04 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.007218, allocations: 367 kB / 0.9855 GB, free: 14.68 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.007225, allocations: 0 / 0.9855 GB, free: 14.68 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.033e-06/0.007227, allocations: 4 kB / 0.9855 GB, free: 14.67 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.007233, allocations: 0 / 0.9855 GB, free: 14.67 MB / 0.948 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.0004142/0.007647, allocations: 361.3 kB / 0.9859 GB, free: 14.29 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.007685, allocations: 8.031 kB / 0.9859 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.007726, allocations: 20.78 kB / 0.9859 GB, free: 14.26 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.007876, allocations: 138.1 kB / 0.986 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.007885, allocations: 384 / 0.986 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.699e-06/0.007895, allocations: 384 / 0.986 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.007998, allocations: 46.2 kB / 0.9861 GB, free: 14.05 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.008006, allocations: 192 / 0.9861 GB, free: 14.05 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.008016, allocations: 8.359 kB / 0.9861 GB, free: 14.04 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.008023, allocations: 3.938 kB / 0.9861 GB, free: 14.04 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.652e-05/0.00805, allocations: 16 kB / 0.9861 GB, free: 14.02 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.008209, allocations: 133.3 kB / 0.9862 GB, free: 13.86 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.992e-05/0.008259, allocations: 30.56 kB / 0.9863 GB, free: 13.82 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.005e-05/0.008279, allocations: 12.92 kB / 0.9863 GB, free: 13.81 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.241e-05/0.008321, allocations: 7.984 kB / 0.9863 GB, free: 13.8 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.008343, allocations: 34.5 kB / 0.9863 GB, free: 13.76 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.008344, allocations: 4 kB / 0.9863 GB, free: 13.75 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.0001666/0.00851, allocations: 65.58 kB / 0.9864 GB, free: 13.68 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.008543, allocations: 59.47 kB / 0.9864 GB, free: 13.61 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.0087, allocations: 215.7 kB / 0.9866 GB, free: 13.39 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.008713, allocations: 29.7 kB / 0.9867 GB, free: 13.36 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.961e-05/0.008763, allocations: 100.1 kB / 0.9868 GB, free: 13.26 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.008777, allocations: 7.953 kB / 0.9868 GB, free: 13.25 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.008815, allocations: 29.7 kB / 0.9868 GB, free: 13.21 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.008917, allocations: 322.8 kB / 0.9871 GB, free: 12.89 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.691e-05/0.008973, allocations: 51.98 kB / 0.9872 GB, free: 12.84 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.00911, allocations: 59.97 kB / 0.9872 GB, free: 12.78 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.399e-05/0.009194, allocations: 88.77 kB / 0.9873 GB, free: 12.69 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.009197, allocations: 4.031 kB / 0.9873 GB, free: 12.69 MB / 0.948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001404/0.009337, allocations: 160.5 kB / 0.9875 GB, free: 12.53 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.009353, allocations: 8 kB / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.009372, allocations: 0 / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.009384, allocations: 0 / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.428e-05/0.009398, allocations: 0 / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.009405, allocations: 3.938 kB / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.409e-05/0.009439, allocations: 23.77 kB / 0.9875 GB, free: 12.49 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.009448, allocations: 0 / 0.9875 GB, free: 12.49 MB / 0.948 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.0001524/0.0096, allocations: 133.8 kB / 0.9876 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-06/0.009608, allocations: 15.92 kB / 0.9876 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.009714, allocations: 62.12 kB / 0.9877 GB, free: 12.27 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.009716, allocations: 0 / 0.9877 GB, free: 12.27 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.009722, allocations: 11.92 kB / 0.9877 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.009725, allocations: 0 / 0.9877 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.791e-05/0.009803, allocations: 133.3 kB / 0.9878 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.009804, allocations: 0 / 0.9878 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-06/0.009808, allocations: 0 / 0.9878 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.009811, allocations: 0 / 0.9878 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.009817, allocations: 0 / 0.9878 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.009818, allocations: 4.031 kB / 0.9878 GB, free: 12.09 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.00982, allocations: 4 kB / 0.9878 GB, free: 12.09 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.221e-05/0.009882, allocations: 88.91 kB / 0.9879 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.009894, allocations: 11.91 kB / 0.9879 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.009906, allocations: 3.984 kB / 0.9879 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.009914, allocations: 0 / 0.9879 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.624e-05/0.009931, allocations: 8 kB / 0.9879 GB, free: 11.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.009933, allocations: 3.938 kB / 0.9879 GB, free: 11.96 MB / 0.948 GB Notification: Performance of sorting global known variables: time 7.982e-05/0.01001, allocations: 147.2 kB / 0.9881 GB, free: 11.81 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01001, allocations: 0 / 0.9881 GB, free: 11.81 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002443/0.01026, allocations: 91.83 kB / 0.9882 GB, free: 11.72 MB / 0.948 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.0004361/0.01069, allocations: 255.7 kB / 0.9884 GB, free: 11.49 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.01085, allocations: 117.7 kB / 0.9885 GB, free: 11.37 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01085, allocations: 0 / 0.9885 GB, free: 11.37 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.458e-06/0.01086, allocations: 16.05 kB / 0.9885 GB, free: 11.36 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.01098, allocations: 7.938 kB / 0.9886 GB, free: 11.35 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003194/0.0113, allocations: 243.4 kB / 0.9888 GB, free: 11.08 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.142e-05/0.01137, allocations: 92.25 kB / 0.9889 GB, free: 10.97 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.026e-05/0.01139, allocations: 12.5 kB / 0.9889 GB, free: 10.96 MB / 0.948 GB Notification: Performance of SimCode: time 1.162e-06/0.01139, allocations: 0 / 0.9889 GB, free: 10.96 MB / 0.948 GB Notification: Performance of Templates: time 0.003616/0.015, allocations: 2.497 MB / 0.9913 GB, free: 8.457 MB / 0.948 GB " [Timeout remaining time 300] 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/jenkins/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: 8.215868577361107]