Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001259/0.001259, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001415/0.001415, allocations: 222.9 kB / 23 MB, free: 4.91 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.321/3.321, allocations: 0.5107 GB / 0.8166 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 67.25 kB / 1.187 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4346, allocations: 181.9 MB / 1.365 GB, free: 13.64 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001834/0.4364, allocations: 0.5242 MB / 1.365 GB, free: 13.11 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002576/0.439, allocations: 1.608 MB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.683e-05/0.439, allocations: 7.938 kB / 1.367 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.4393, allocations: 63.89 kB / 1.367 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.13e-05/0.4393, allocations: 31.89 kB / 1.367 GB, free: 11.39 MB / 1.061 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.0009437/0.4402, allocations: 282.2 kB / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.11e-05/0.4403, allocations: 27.95 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.024e-05/0.4404, allocations: 4 kB / 1.367 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.303e-05/0.4404, allocations: 27.91 kB / 1.367 GB, free: 11.05 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.893e-05/0.4405, allocations: 47.81 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.4405, allocations: 4 kB / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007663/0.4413, allocations: 451.2 kB / 1.368 GB, free: 10.56 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.976e-05/0.4413, allocations: 27.91 kB / 1.368 GB, free: 10.54 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.111e-05/0.4414, allocations: 19.81 kB / 1.368 GB, free: 10.52 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.4418, allocations: 315 kB / 1.368 GB, free: 10.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4418, allocations: 3.984 kB / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.432e-06/0.4418, allocations: 0 / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.4418, allocations: 0 / 1.368 GB, free: 10.2 MB / 1.061 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.0005104/0.4424, allocations: 361.3 kB / 1.368 GB, free: 9.82 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.4424, allocations: 12.03 kB / 1.368 GB, free: 9.809 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.797e-05/0.4424, allocations: 8.891 kB / 1.368 GB, free: 9.801 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.4426, allocations: 130.3 kB / 1.368 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.4426, allocations: 384 / 1.368 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.4426, allocations: 4.375 kB / 1.368 GB, free: 9.645 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.4428, allocations: 46 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4428, allocations: 0 / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.4428, allocations: 0 / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.4428, allocations: 0 / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.759e-05/0.4428, allocations: 23.92 kB / 1.368 GB, free: 9.57 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001919/0.443, allocations: 137.3 kB / 1.369 GB, free: 9.406 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.076e-05/0.4431, allocations: 26.56 kB / 1.369 GB, free: 9.371 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.885e-05/0.4431, allocations: 16.92 kB / 1.369 GB, free: 9.352 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.4431, allocations: 7.938 kB / 1.369 GB, free: 9.344 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.4432, allocations: 34.56 kB / 1.369 GB, free: 9.301 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.4432, allocations: 4 kB / 1.369 GB, free: 9.297 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001848/0.4434, allocations: 73.5 kB / 1.369 GB, free: 9.219 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.4434, allocations: 51.41 kB / 1.369 GB, free: 9.156 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.4436, allocations: 218.8 kB / 1.369 GB, free: 8.93 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.4436, allocations: 25.7 kB / 1.369 GB, free: 8.898 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.246e-05/0.4437, allocations: 104.1 kB / 1.369 GB, free: 8.793 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.241e-05/0.4437, allocations: 3.938 kB / 1.369 GB, free: 8.789 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.4438, allocations: 33.7 kB / 1.369 GB, free: 8.75 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4439, allocations: 322.8 kB / 1.369 GB, free: 8.426 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.748e-05/0.444, allocations: 51.98 kB / 1.37 GB, free: 8.375 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.325e-05/0.4441, allocations: 60.09 kB / 1.37 GB, free: 8.316 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/0.4442, allocations: 95.17 kB / 1.37 GB, free: 8.223 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4442, allocations: 0 / 1.37 GB, free: 8.223 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001954/0.4444, allocations: 161.5 kB / 1.37 GB, free: 8.059 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.4444, allocations: 4 kB / 1.37 GB, free: 8.055 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.4444, allocations: 7.922 kB / 1.37 GB, free: 8.047 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.4444, allocations: 0 / 1.37 GB, free: 8.047 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.715e-05/0.4444, allocations: 4 kB / 1.37 GB, free: 8.043 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.4444, allocations: 0 / 1.37 GB, free: 8.043 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.899e-05/0.4445, allocations: 11.84 kB / 1.37 GB, free: 8.031 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.4445, allocations: 4 kB / 1.37 GB, free: 8.027 MB / 1.061 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.0001614/0.4446, allocations: 134.9 kB / 1.37 GB, free: 7.887 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.4446, allocations: 7.953 kB / 1.37 GB, free: 7.879 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.4448, allocations: 74.05 kB / 1.37 GB, free: 7.797 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.4448, allocations: 4 kB / 1.37 GB, free: 7.793 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.4448, allocations: 0 / 1.37 GB, free: 7.793 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.4448, allocations: 0 / 1.37 GB, free: 7.793 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.4449, allocations: 137.2 kB / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4449, allocations: 0 / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-06/0.4449, allocations: 32 / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.4449, allocations: 7.984 kB / 1.37 GB, free: 7.621 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.4449, allocations: 0 / 1.37 GB, free: 7.621 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.4449, allocations: 3.938 kB / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4449, allocations: 7.984 kB / 1.37 GB, free: 7.609 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.467e-05/0.445, allocations: 77.08 kB / 1.37 GB, free: 7.516 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.65e-05/0.4451, allocations: 7.906 kB / 1.37 GB, free: 7.508 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.4451, allocations: 4 kB / 1.37 GB, free: 7.504 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.766e-05/0.4451, allocations: 7.938 kB / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.4451, allocations: 3.938 kB / 1.37 GB, free: 7.492 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.4451, allocations: 3.984 kB / 1.37 GB, free: 7.488 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001396/0.4452, allocations: 156.2 kB / 1.37 GB, free: 7.336 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4452, allocations: 0 / 1.37 GB, free: 7.336 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003071/0.4456, allocations: 87.8 kB / 1.371 GB, free: 7.25 MB / 1.061 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.0005639/0.4461, allocations: 235 kB / 1.371 GB, free: 7.035 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.4463, allocations: 117.7 kB / 1.371 GB, free: 6.914 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4463, allocations: 3.938 kB / 1.371 GB, free: 6.91 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.697e-05/0.4463, allocations: 8 kB / 1.371 GB, free: 6.902 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.4465, allocations: 4 kB / 1.371 GB, free: 6.898 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.4469, allocations: 243.5 kB / 1.371 GB, free: 6.625 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.447, allocations: 92.12 kB / 1.371 GB, free: 6.516 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.827e-05/0.447, allocations: 11.38 kB / 1.371 GB, free: 6.504 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.447, allocations: 0 / 1.371 GB, free: 6.504 MB / 1.061 GB Notification: Performance of Templates: time 0.005041/0.452, allocations: 2.477 MB / 1.374 GB, free: 4.023 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 13.445744657889009]