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.001299/0.001299, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001402/0.001402, allocations: 215 kB / 20.13 MB, free: 2.949 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 / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.918/2.918, allocations: 476.7 MB / 0.7678 GB, free: 9.395 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) [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.001994/0.001994, allocations: 63.89 kB / 1.113 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9131/0.9151, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001859/0.917, allocations: 0.5278 MB / 1.279 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002769/0.9198, allocations: 1.67 MB / 1.281 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.631e-05/0.9198, allocations: 5.094 kB / 1.281 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.92, allocations: 20.73 kB / 1.281 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.403e-05/0.92, allocations: 17.16 kB / 1.281 GB, free: 10.23 MB / 0.9981 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.1-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.001066/0.9211, allocations: 238.5 kB / 1.281 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.279e-05/0.9212, allocations: 29.88 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.9212, allocations: 2.859 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.183e-05/0.9212, allocations: 9.578 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.876e-05/0.9213, allocations: 18.3 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.9213, allocations: 4 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007959/0.9221, allocations: 366.9 kB / 1.282 GB, free: 10 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.915e-05/0.9222, allocations: 21.97 kB / 1.282 GB, free: 9.996 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.866e-05/0.9222, allocations: 16.33 kB / 1.282 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006105/0.9228, allocations: 278.6 kB / 1.282 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.9228, allocations: 1.094 kB / 1.282 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.714e-06/0.9228, allocations: 0 / 1.282 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.173e-05/0.9228, allocations: 0 / 1.282 GB, free: 9.91 MB / 0.9981 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.0005579/0.9234, allocations: 412.8 kB / 1.282 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.9234, allocations: 14.5 kB / 1.282 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.296e-05/0.9234, allocations: 192 / 1.282 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.9235, allocations: 36.45 kB / 1.282 GB, free: 9.453 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.9235, allocations: 7.578 kB / 1.282 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.9237, allocations: 177.8 kB / 1.283 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.9237, allocations: 1.75 kB / 1.283 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.9237, allocations: 4.312 kB / 1.283 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.9239, allocations: 45.08 kB / 1.283 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.9239, allocations: 4 kB / 1.283 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.9239, allocations: 1.25 kB / 1.283 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.9239, allocations: 0 / 1.283 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.431e-05/0.9239, allocations: 16.28 kB / 1.283 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.9241, allocations: 173.4 kB / 1.283 GB, free: 9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.018e-05/0.9242, allocations: 27.62 kB / 1.283 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.554e-05/0.9242, allocations: 13.78 kB / 1.283 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.9243, allocations: 9.531 kB / 1.283 GB, free: 8.961 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.9243, allocations: 36.52 kB / 1.283 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.9243, allocations: 0 / 1.283 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001725/0.9245, allocations: 67.56 kB / 1.283 GB, free: 8.875 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.9245, allocations: 56.14 kB / 1.283 GB, free: 8.809 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.9247, allocations: 169.6 kB / 1.283 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.9247, allocations: 26.55 kB / 1.283 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.565e-05/0.9248, allocations: 93.81 kB / 1.283 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-06/0.9248, allocations: 1.375 kB / 1.283 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.082e-05/0.9248, allocations: 31.16 kB / 1.283 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.925, allocations: 320.1 kB / 1.284 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.961e-05/0.9251, allocations: 40.23 kB / 1.284 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.684e-05/0.9251, allocations: 42.97 kB / 1.284 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.426e-05/0.9252, allocations: 67.41 kB / 1.284 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.9252, allocations: 0 / 1.284 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001669/0.9254, allocations: 134 kB / 1.284 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.9254, allocations: 5.938 kB / 1.284 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.9254, allocations: 6.719 kB / 1.284 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.9254, allocations: 0 / 1.284 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.39e-05/0.9254, allocations: 0.6562 kB / 1.284 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.9254, allocations: 1.625 kB / 1.284 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.954e-05/0.9255, allocations: 12.98 kB / 1.284 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.9255, allocations: 1.672 kB / 1.284 GB, free: 8.121 MB / 0.9981 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.00017/0.9256, allocations: 124.1 kB / 1.284 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.9257, allocations: 10.17 kB / 1.284 GB, free: 8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.9258, allocations: 63 kB / 1.284 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.9258, allocations: 1.594 kB / 1.284 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.9258, allocations: 0 / 1.284 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.9258, allocations: 5.328 kB / 1.284 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.926, allocations: 172.5 kB / 1.284 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.926, allocations: 7.875 kB / 1.284 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.044e-06/0.926, allocations: 5.797 kB / 1.284 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.926, allocations: 0 / 1.284 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.926, allocations: 2.047 kB / 1.284 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.926, allocations: 0 / 1.284 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.926, allocations: 4.031 kB / 1.284 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.482e-05/0.9261, allocations: 73.56 kB / 1.284 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.049e-05/0.9261, allocations: 92.64 kB / 1.285 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.9261, allocations: 1.219 kB / 1.285 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.256e-05/0.9262, allocations: 0 / 1.285 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.9262, allocations: 2.125 kB / 1.285 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-06/0.9262, allocations: 0.7969 kB / 1.285 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000115/0.9263, allocations: 125.4 kB / 1.285 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.9263, allocations: 1.469 kB / 1.285 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004245/0.9267, allocations: 86.39 kB / 1.285 GB, free: 7.461 MB / 0.9981 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.0009646/0.9277, allocations: 0.7439 MB / 1.285 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002031/0.9279, allocations: 91.75 kB / 1.286 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.9279, allocations: 0 / 1.286 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.011e-05/0.9279, allocations: 10.95 kB / 1.286 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.9281, allocations: 10.09 kB / 1.286 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.9298, allocations: 1.543 MB / 1.287 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.9303, allocations: 0.701 MB / 1.288 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.291e-05/0.9303, allocations: 6.047 kB / 1.288 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.477e-05/0.9303, allocations: 18.86 kB / 1.288 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of SimCode: time 5.91e-07/0.9303, allocations: 0 / 1.288 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.9534, allocations: 3.547 MB / 1.291 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.449/9.402, allocations: 17.45 kB / 1.291 GB, free: 4.254 MB / 0.9981 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 15.754239921981934]