Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001795/0.001795, allocations: 88.39 kB / 20.23 MB, free: 4.176 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.002172/0.002172, allocations: 161.3 kB / 23.55 MB, free: 0.8672 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.471/1.471, allocations: 177.1 MB / 203.9 MB, free: 5.605 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.679/2.679, allocations: 359 MB / 0.6048 GB, free: 10.98 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 0.7863 GB, free: 12.89 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.924e-05/3.101e-05, allocations: 5.125 kB / 0.7863 GB, free: 12.88 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001899/0.00193, allocations: 0.5279 MB / 0.7868 GB, free: 12.37 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002885/0.004816, allocations: 1.612 MB / 0.7884 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.805e-05/0.004854, allocations: 3.938 kB / 0.7884 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.005079, allocations: 65.39 kB / 0.7885 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.738e-05/0.005126, allocations: 31.89 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.001108/0.006235, allocations: 260.8 kB / 0.7888 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.834e-05/0.006323, allocations: 38.27 kB / 0.7888 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.006361, allocations: 3.984 kB / 0.7888 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 6.206e-05/0.006423, allocations: 23.97 kB / 0.7888 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.508e-05/0.006509, allocations: 47.88 kB / 0.7889 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.006524, allocations: 0 / 0.7889 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008399/0.007364, allocations: 421 kB / 0.7893 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.934e-05/0.007433, allocations: 27.92 kB / 0.7893 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.574e-05/0.007469, allocations: 15.92 kB / 0.7893 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.008134, allocations: 351 kB / 0.7896 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.008138, allocations: 0 / 0.7896 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.273e-06/0.008139, allocations: 0.5312 kB / 0.7896 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.008144, allocations: 1.469 kB / 0.7896 GB, free: 9.484 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.0005688/0.008713, allocations: 361.3 kB / 0.79 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.008752, allocations: 8.031 kB / 0.79 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.008801, allocations: 8.891 kB / 0.79 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.00899, allocations: 135.4 kB / 0.7901 GB, free: 8.93 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.009, allocations: 384 / 0.7901 GB, free: 8.93 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.834e-06/0.009008, allocations: 384 / 0.7901 GB, free: 8.93 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.009119, allocations: 50.19 kB / 0.7902 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.009127, allocations: 192 / 0.7902 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.009136, allocations: 1.469 kB / 0.7902 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.009143, allocations: 3.938 kB / 0.7902 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.512e-05/0.009178, allocations: 16 kB / 0.7902 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001891/0.009367, allocations: 135.2 kB / 0.7903 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.127e-05/0.009428, allocations: 34.52 kB / 0.7904 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.071e-05/0.009459, allocations: 12.92 kB / 0.7904 GB, free: 8.637 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.009498, allocations: 7.984 kB / 0.7904 GB, free: 8.629 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.009533, allocations: 37.09 kB / 0.7904 GB, free: 8.586 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.009534, allocations: 0 / 0.7904 GB, free: 8.586 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001866/0.009721, allocations: 65.64 kB / 0.7905 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.009768, allocations: 55.34 kB / 0.7905 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.01001, allocations: 220.8 kB / 0.7907 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.01003, allocations: 25.7 kB / 0.7908 GB, free: 8.195 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.01012, allocations: 112.8 kB / 0.7909 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.899e-06/0.01013, allocations: 0 / 0.7909 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/0.01018, allocations: 30.23 kB / 0.7909 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.01035, allocations: 322.8 kB / 0.7912 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.952e-05/0.01043, allocations: 53.64 kB / 0.7913 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.895e-05/0.0105, allocations: 59.97 kB / 0.7913 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.01062, allocations: 91.95 kB / 0.7914 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.01062, allocations: 4 kB / 0.7914 GB, free: 7.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002261/0.01085, allocations: 158.2 kB / 0.7916 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.01086, allocations: 8.5 kB / 0.7916 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.01088, allocations: 0 / 0.7916 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.01089, allocations: 0.875 kB / 0.7916 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.281e-05/0.01091, allocations: 0 / 0.7916 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.01091, allocations: 5.094 kB / 0.7916 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.859e-05/0.01095, allocations: 19.78 kB / 0.7916 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.01096, allocations: 0 / 0.7916 GB, free: 7.328 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: 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.0001819/0.01114, allocations: 135.2 kB / 0.7917 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.01116, allocations: 11.95 kB / 0.7917 GB, free: 7.176 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.01129, allocations: 62.95 kB / 0.7918 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.01129, allocations: 4 kB / 0.7918 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.0113, allocations: 4.781 kB / 0.7918 GB, free: 7.102 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.0113, allocations: 0 / 0.7918 GB, free: 7.102 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.01144, allocations: 142.5 kB / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.01145, allocations: 0 / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-06/0.01145, allocations: 0 / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.01145, allocations: 0 / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-06/0.01146, allocations: 0.8438 kB / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.01146, allocations: 0 / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.01146, allocations: 1.156 kB / 0.7919 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.01158, allocations: 84.95 kB / 0.792 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.548e-05/0.01161, allocations: 23.88 kB / 0.7921 GB, free: 6.809 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.01162, allocations: 1.375 kB / 0.7921 GB, free: 6.809 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.671e-05/0.01164, allocations: 4 kB / 0.7921 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.01165, allocations: 0 / 0.7921 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.01166, allocations: 5.438 kB / 0.7921 GB, free: 6.801 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001414/0.0118, allocations: 152.3 kB / 0.7922 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.0118, allocations: 3.938 kB / 0.7922 GB, free: 6.648 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003721/0.01217, allocations: 87.8 kB / 0.7923 GB, free: 6.562 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.0006768/0.01285, allocations: 244 kB / 0.7925 GB, free: 6.344 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.01305, allocations: 114.2 kB / 0.7926 GB, free: 6.227 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01305, allocations: 0.5 kB / 0.7926 GB, free: 6.227 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.44e-05/0.01308, allocations: 17.27 kB / 0.7927 GB, free: 6.211 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.01324, allocations: 8 kB / 0.7927 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.01363, allocations: 217.2 kB / 0.7929 GB, free: 5.965 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.579e-05/0.01373, allocations: 85.41 kB / 0.793 GB, free: 5.863 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.048e-05/0.01375, allocations: 4 kB / 0.793 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.554e-05/0.01377, allocations: 9.156 kB / 0.793 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of SimCode: time 5.01e-07/0.01377, allocations: 0 / 0.793 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of Templates: time 0.006367/0.02014, allocations: 2.132 MB / 0.795 GB, free: 3.734 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.369249384035356]