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.0009752/0.0009752, allocations: 76.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.0008306/0.0008306, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8781/0.8781, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.611/1.611, allocations: 359 MB / 0.6044 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] 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 3.276e-06/3.276e-06, allocations: 3.984 kB / 0.9517 GB, free: 3.031 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.793e-05, allocations: 2.281 kB / 0.9517 GB, free: 3.027 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001143/0.001171, allocations: 0.5155 MB / 0.9522 GB, free: 2.508 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001963/0.003134, allocations: 1.615 MB / 0.9538 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.171e-05/0.003176, allocations: 0 / 0.9538 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.003363, allocations: 67.72 kB / 0.9538 GB, free: 0.8086 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 2.562e-05/0.003389, allocations: 27.95 kB / 0.9539 GB, free: 0.7812 MB / 0.9011 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.0007195/0.004108, allocations: 263.1 kB / 0.9541 GB, free: 0.5234 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 7.134e-05/0.00418, allocations: 31.91 kB / 0.9541 GB, free: 0.4922 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.00422, allocations: 4 kB / 0.9541 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 4.542e-05/0.004265, allocations: 27.89 kB / 0.9542 GB, free: 472 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.372e-05/0.004319, allocations: 39.95 kB / 0.9542 GB, free: 432 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.004334, allocations: 0 / 0.9542 GB, free: 432 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004486/0.004782, allocations: 427.1 kB / 0.9546 GB, free: 4 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 6.381e-05/0.004846, allocations: 27.92 kB / 0.9546 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 2.085e-05/0.004867, allocations: 11.94 kB / 0.9546 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.005196, allocations: 359 kB / 0.955 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 2.225e-06/0.005198, allocations: 0 / 0.955 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.112e-06/0.0052, allocations: 4 kB / 0.955 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.005204, allocations: 0 / 0.955 GB, free: 15.61 MB / 0.9167 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.0003335/0.005537, allocations: 357.3 kB / 0.9553 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.005572, allocations: 12.03 kB / 0.9553 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.005604, allocations: 8.844 kB / 0.9554 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.005722, allocations: 129.6 kB / 0.9555 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.005732, allocations: 4.359 kB / 0.9555 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.005742, allocations: 8.375 kB / 0.9555 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.848e-05/0.005831, allocations: 42.19 kB / 0.9555 GB, free: 15 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.005838, allocations: 192 / 0.9555 GB, free: 15 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.005846, allocations: 384 / 0.9555 GB, free: 15 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.005851, allocations: 7.875 kB / 0.9555 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.414e-05/0.005875, allocations: 19.98 kB / 0.9556 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001207/0.005995, allocations: 133.3 kB / 0.9557 GB, free: 14.81 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 4.195e-05/0.006037, allocations: 26.56 kB / 0.9557 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.846e-05/0.006056, allocations: 12.92 kB / 0.9557 GB, free: 14.76 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.573e-05/0.006092, allocations: 4 kB / 0.9557 GB, free: 14.76 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.006114, allocations: 46.48 kB / 0.9558 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=1): time 6.81e-07/0.006115, allocations: 0 / 0.9558 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1): time 0.0001316/0.006246, allocations: 69.59 kB / 0.9558 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.006276, allocations: 55.34 kB / 0.9559 GB, free: 14.56 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.006416, allocations: 216.5 kB / 0.9561 GB, free: 14.34 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.006425, allocations: 29.7 kB / 0.9561 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.00647, allocations: 104.1 kB / 0.9562 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.00648, allocations: 3.953 kB / 0.9562 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.006514, allocations: 29.7 kB / 0.9563 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.658e-05/0.00659, allocations: 322.8 kB / 0.9566 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.925e-05/0.00664, allocations: 60.11 kB / 0.9566 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.484e-05/0.006675, allocations: 55.97 kB / 0.9567 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.818e-05/0.006743, allocations: 96.66 kB / 0.9568 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.006746, allocations: 4 kB / 0.9568 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001154/0.006861, allocations: 157 kB / 0.9569 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.006874, allocations: 8 kB / 0.9569 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.00689, allocations: 3.984 kB / 0.9569 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.006902, allocations: 0 / 0.9569 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.221e-05/0.006915, allocations: 0 / 0.9569 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.00692, allocations: 3.938 kB / 0.9569 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.809e-05/0.006938, allocations: 15.91 kB / 0.957 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.006945, allocations: 4 kB / 0.957 GB, free: 13.43 MB / 0.9167 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.00011/0.007055, allocations: 133.8 kB / 0.9571 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.126e-06/0.007063, allocations: 11.94 kB / 0.9571 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.068e-05/0.007154, allocations: 62.12 kB / 0.9572 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.007155, allocations: 0 / 0.9572 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.00716, allocations: 7.938 kB / 0.9572 GB, free: 13.2 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.007162, allocations: 3.938 kB / 0.9572 GB, free: 13.2 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.415e-05/0.007236, allocations: 129.3 kB / 0.9573 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.007238, allocations: 4.031 kB / 0.9573 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.07e-06/0.007243, allocations: 7.922 kB / 0.9573 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.007244, allocations: 0 / 0.9573 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.00725, allocations: 0 / 0.9573 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.007251, allocations: 0 / 0.9573 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.007252, allocations: 0 / 0.9573 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.137e-05/0.007313, allocations: 92.91 kB / 0.9574 GB, free: 12.92 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.014e-05/0.007324, allocations: 11.91 kB / 0.9574 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.468e-06/0.007333, allocations: 0 / 0.9574 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-06/0.007341, allocations: 0 / 0.9574 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.007354, allocations: 7.984 kB / 0.9574 GB, free: 12.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.007356, allocations: 7.969 kB / 0.9574 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 7.101e-05/0.007427, allocations: 148.3 kB / 0.9576 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007427, allocations: 0 / 0.9576 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002201/0.007648, allocations: 87.8 kB / 0.9576 GB, free: 12.66 MB / 0.9167 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.0003875/0.008035, allocations: 255.1 kB / 0.9579 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001456/0.008181, allocations: 113.7 kB / 0.958 GB, free: 12.31 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.008183, allocations: 0 / 0.958 GB, free: 12.31 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 9.147e-06/0.008192, allocations: 11.94 kB / 0.958 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.008315, allocations: 10.34 kB / 0.958 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002651/0.00858, allocations: 239.5 kB / 0.9582 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.84e-05/0.008639, allocations: 88.25 kB / 0.9583 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.529e-05/0.008654, allocations: 12.5 kB / 0.9583 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of SimCode: time 4.8e-07/0.008654, allocations: 0 / 0.9583 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of Templates: time 0.003403/0.01206, allocations: 2.415 MB / 0.9607 GB, free: 9.488 MB / 0.9167 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.542760870419443]