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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 108 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002034/0.002034, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.841/2.841, allocations: 476.7 MB / 0.7611 GB, free: 11.32 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 71.89 kB / 1.104 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8889/0.891, allocations: 168.7 MB / 1.269 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001892/0.8929, allocations: 0.5155 MB / 1.269 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002499/0.8954, allocations: 1.625 MB / 1.271 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.012e-05/0.8954, allocations: 0 / 1.271 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.8957, allocations: 63.83 kB / 1.271 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.109e-05/0.8957, allocations: 23.97 kB / 1.271 GB, free: 2.965 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0-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.0009767/0.8967, allocations: 255.2 kB / 1.271 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.499e-05/0.8968, allocations: 27.91 kB / 1.271 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.851e-05/0.8968, allocations: 8 kB / 1.271 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.897, allocations: 27.89 kB / 1.271 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.835e-05/0.897, allocations: 39.89 kB / 1.271 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.8971, allocations: 4 kB / 1.271 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007018/0.8978, allocations: 359.4 kB / 1.272 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.8978, allocations: 23.92 kB / 1.272 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.898, allocations: 27.73 kB / 1.272 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.8984, allocations: 308.9 kB / 1.272 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.8985, allocations: 0 / 1.272 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8985, allocations: 0 / 1.272 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.8985, allocations: 0 / 1.272 GB, free: 1.906 MB / 0.9669 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.0006061/0.8991, allocations: 434.4 kB / 1.272 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.8991, allocations: 12.03 kB / 1.272 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.167e-05/0.8992, allocations: 30.75 kB / 1.272 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.04e-05/0.8992, allocations: 12.84 kB / 1.272 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.8994, allocations: 188.2 kB / 1.273 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.8994, allocations: 4.375 kB / 1.273 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.8994, allocations: 8.375 kB / 1.273 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.8996, allocations: 41.81 kB / 1.273 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.8996, allocations: 3.938 kB / 1.273 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.8996, allocations: 0 / 1.273 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.8996, allocations: 0 / 1.273 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.64e-05/0.8996, allocations: 19.98 kB / 1.273 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002432/0.8999, allocations: 185.6 kB / 1.273 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.012e-05/0.8999, allocations: 30.56 kB / 1.273 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.86e-05/0.9, allocations: 16.86 kB / 1.273 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.5e-05/0.9, allocations: 7.984 kB / 1.273 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.9, allocations: 34.5 kB / 1.273 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.9, allocations: 0 / 1.273 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001841/0.9002, allocations: 73.58 kB / 1.273 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.9003, allocations: 51.41 kB / 1.273 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.9005, allocations: 211.6 kB / 1.273 GB, free: 376 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.9006, allocations: 29.7 kB / 1.273 GB, free: 340 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/0.9007, allocations: 112 kB / 1.273 GB, free: 224 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.9007, allocations: 0 / 1.273 GB, free: 224 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.9008, allocations: 29.7 kB / 1.273 GB, free: 188 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002372/0.901, allocations: 322.8 kB / 1.274 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.975e-05/0.9011, allocations: 55.98 kB / 1.274 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.503e-05/0.9012, allocations: 55.97 kB / 1.274 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.9013, allocations: 88.72 kB / 1.274 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.9013, allocations: 4.031 kB / 1.274 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002427/0.9015, allocations: 165.5 kB / 1.274 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.9016, allocations: 6.344 kB / 1.274 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.9016, allocations: 4 kB / 1.274 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.9016, allocations: 0 / 1.274 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.765e-05/0.9016, allocations: 0 / 1.274 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.9016, allocations: 0 / 1.274 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/0.9017, allocations: 19.78 kB / 1.274 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.9017, allocations: 4 kB / 1.274 GB, free: 15.46 MB / 0.9825 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.0004322/0.9021, allocations: 139.4 kB / 1.274 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.064e-05/0.9021, allocations: 11.89 kB / 1.274 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001498/0.9023, allocations: 70.17 kB / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.9023, allocations: 0 / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.9023, allocations: 0 / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.9023, allocations: 3.984 kB / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002693/0.9026, allocations: 177.7 kB / 1.274 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.9026, allocations: 0 / 1.274 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.806e-06/0.9026, allocations: 3.938 kB / 1.274 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.9026, allocations: 4.031 kB / 1.274 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.9026, allocations: 0 / 1.274 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.9026, allocations: 0 / 1.274 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.9026, allocations: 4 kB / 1.274 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.9028, allocations: 84.97 kB / 1.275 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.591e-05/0.9029, allocations: 96.94 kB / 1.275 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.9029, allocations: 0 / 1.275 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.581e-05/0.9029, allocations: 4.031 kB / 1.275 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.9029, allocations: 4 kB / 1.275 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.9029, allocations: 0 / 1.275 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001685/0.9031, allocations: 152.7 kB / 1.275 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.9031, allocations: 0 / 1.275 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004244/0.9035, allocations: 95.73 kB / 1.275 GB, free: 14.52 MB / 0.9825 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.0009886/0.9045, allocations: 0.7391 MB / 1.276 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000293/0.9048, allocations: 117.6 kB / 1.276 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.9048, allocations: 0 / 1.276 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.976e-05/0.9048, allocations: 20.08 kB / 1.276 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.905, allocations: 8.094 kB / 1.276 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.9073, allocations: 1.81 MB / 1.278 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000632/0.908, allocations: 0.7002 MB / 1.278 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.104e-05/0.908, allocations: 4 kB / 1.278 GB, free: 11 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.9081, allocations: 27.42 kB / 1.278 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of SimCode: time 9.52e-07/0.9081, allocations: 0 / 1.278 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.9375, allocations: 3.911 MB / 1.282 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.612/9.55, allocations: 7.422 kB / 1.282 GB, free: 7.156 MB / 0.9825 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.614167634863406]