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.001371/0.001371, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001515/0.001515, allocations: 163.1 kB / 22.46 MB, free: 5.375 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.422/1.422, allocations: 177.2 MB / 202.8 MB, free: 9.18 MB / 190.1 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.638/2.638, allocations: 359 MB / 0.6037 GB, free: 14.97 MB / 0.5762 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.192e-06/1.192e-06, allocations: 0 / 0.9509 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.077e-05, allocations: 2.281 kB / 0.9509 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001396/0.001417, allocations: 0.5169 MB / 0.9514 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002545/0.003962, allocations: 1.619 MB / 0.953 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.003994, allocations: 3.938 kB / 0.953 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.004127, allocations: 15.98 kB / 0.953 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.838e-05/0.004156, allocations: 11.92 kB / 0.953 GB, free: 9.43 MB / 0.8575 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.001005/0.005161, allocations: 263 kB / 0.9533 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.109e-05/0.005232, allocations: 23.92 kB / 0.9533 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 2.919e-05/0.005261, allocations: 0 / 0.9533 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.111e-05/0.005302, allocations: 15.97 kB / 0.9533 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.17e-05/0.005344, allocations: 23.91 kB / 0.9534 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.005358, allocations: 0 / 0.9534 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007222/0.00608, allocations: 431.1 kB / 0.9538 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.016e-05/0.00613, allocations: 19.92 kB / 0.9538 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.006151, allocations: 11.94 kB / 0.9538 GB, free: 8.656 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004927/0.006644, allocations: 331.2 kB / 0.9541 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.006646, allocations: 3.938 kB / 0.9541 GB, free: 8.328 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.51e-07/0.006647, allocations: 4 kB / 0.9541 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.00665, allocations: 0 / 0.9541 GB, free: 8.324 MB / 0.8575 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.0004514/0.007102, allocations: 329.6 kB / 0.9544 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.007134, allocations: 8.031 kB / 0.9544 GB, free: 7.965 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.007167, allocations: 12.84 kB / 0.9545 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.00732, allocations: 131.7 kB / 0.9546 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.00733, allocations: 384 / 0.9546 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-06/0.007338, allocations: 384 / 0.9546 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.94e-05/0.007438, allocations: 38.25 kB / 0.9546 GB, free: 7.758 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.007445, allocations: 192 / 0.9546 GB, free: 7.758 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-06/0.007451, allocations: 384 / 0.9546 GB, free: 7.758 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.007461, allocations: 3.938 kB / 0.9546 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.069e-05/0.007491, allocations: 19.94 kB / 0.9546 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.00764, allocations: 121.3 kB / 0.9548 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.941e-05/0.00769, allocations: 22.58 kB / 0.9548 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.098e-05/0.007721, allocations: 16.91 kB / 0.9548 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.007751, allocations: 8 kB / 0.9548 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.007781, allocations: 34.56 kB / 0.9548 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.007782, allocations: 0 / 0.9548 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.007935, allocations: 61.58 kB / 0.9549 GB, free: 7.418 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.007977, allocations: 63.33 kB / 0.955 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.008143, allocations: 171.4 kB / 0.9551 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.00816, allocations: 25.7 kB / 0.9551 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.636e-05/0.008226, allocations: 100.1 kB / 0.9552 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.053e-05/0.008237, allocations: 3.953 kB / 0.9552 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.008279, allocations: 25.83 kB / 0.9553 GB, free: 7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.008417, allocations: 322.8 kB / 0.9556 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.934e-05/0.008476, allocations: 43.97 kB / 0.9556 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.051e-05/0.008527, allocations: 39.98 kB / 0.9557 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.297e-05/0.00862, allocations: 76.86 kB / 0.9557 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.008622, allocations: 3.938 kB / 0.9557 GB, free: 6.512 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001514/0.008773, allocations: 117.6 kB / 0.9558 GB, free: 6.391 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.008787, allocations: 8 kB / 0.9558 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.008798, allocations: 0 / 0.9558 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.00881, allocations: 0 / 0.9558 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.291e-05/0.008823, allocations: 3.984 kB / 0.9559 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.008832, allocations: 11.94 kB / 0.9559 GB, free: 6.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.718e-05/0.008859, allocations: 7.953 kB / 0.9559 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.008866, allocations: 0 / 0.9559 GB, free: 6.359 MB / 0.8575 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.0001157/0.008982, allocations: 121.8 kB / 0.956 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/0.008995, allocations: 7.953 kB / 0.956 GB, free: 6.223 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.009099, allocations: 65.38 kB / 0.9561 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.0091, allocations: 0 / 0.9561 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.009106, allocations: 3.938 kB / 0.9561 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.00911, allocations: 3.984 kB / 0.9561 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001045/0.009214, allocations: 125.3 kB / 0.9562 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.009215, allocations: 0 / 0.9562 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.498e-06/0.009219, allocations: 0 / 0.9562 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.009223, allocations: 4 kB / 0.9562 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-06/0.009228, allocations: 0 / 0.9562 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.009229, allocations: 0 / 0.9562 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.009229, allocations: 0 / 0.9562 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.778e-05/0.009327, allocations: 81 kB / 0.9563 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.43e-05/0.009341, allocations: 11.95 kB / 0.9563 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.009355, allocations: 3.984 kB / 0.9563 GB, free: 5.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.22e-05/0.009367, allocations: 32 / 0.9563 GB, free: 5.879 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.009379, allocations: 11.88 kB / 0.9563 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.009383, allocations: 3.938 kB / 0.9563 GB, free: 5.863 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.776e-05/0.009481, allocations: 130.3 kB / 0.9564 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/0.009481, allocations: 0 / 0.9564 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003288/0.00981, allocations: 87.8 kB / 0.9565 GB, free: 5.652 MB / 0.8575 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.0005573/0.01037, allocations: 245.4 kB / 0.9567 GB, free: 5.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.01052, allocations: 89.67 kB / 0.9568 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.01052, allocations: 0 / 0.9568 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.877e-05/0.01054, allocations: 11.98 kB / 0.9568 GB, free: 5.324 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.01068, allocations: 8 kB / 0.9568 GB, free: 5.316 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/0.01096, allocations: 159.3 kB / 0.957 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.132e-05/0.01103, allocations: 79.2 kB / 0.9571 GB, free: 5.035 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.209e-05/0.01105, allocations: 8.125 kB / 0.9571 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.837e-05/0.01107, allocations: 12.5 kB / 0.9571 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of SimCode: time 3e-07/0.01107, allocations: 0 / 0.9571 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of Templates: time 0.005561/0.01663, allocations: 2.101 MB / 0.9591 GB, free: 2.918 MB / 0.8575 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] 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.435122463852167]