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.001813/0.001813, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001404/0.001404, allocations: 217.9 kB / 23.04 MB, free: 5.074 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.796/2.796, allocations: 476.7 MB / 0.7714 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 177] 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.00201/0.00201, allocations: 62.78 kB / 1.118 GB, free: 39.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2993, allocations: 170 MB / 1.284 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001641/0.3009, allocations: 0.5324 MB / 1.285 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00246/0.3034, allocations: 1.675 MB / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.073e-05/0.3034, allocations: 0 / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.3036, allocations: 19.91 kB / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.448e-05/0.3036, allocations: 19.91 kB / 1.286 GB, free: 9.344 MB / 0.9825 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.001024/0.3046, allocations: 263.3 kB / 1.287 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.387e-05/0.3047, allocations: 23.91 kB / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.3047, allocations: 0 / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.419e-05/0.3048, allocations: 15.92 kB / 1.287 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.731e-05/0.3048, allocations: 19.92 kB / 1.287 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.3048, allocations: 0 / 1.287 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007415/0.3056, allocations: 467.2 kB / 1.287 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.613e-05/0.3056, allocations: 15.98 kB / 1.287 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.438e-05/0.3056, allocations: 23.75 kB / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004097/0.306, allocations: 286.7 kB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.306, allocations: 4 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.306, allocations: 0 / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.3061, allocations: 0 / 1.287 GB, free: 8.25 MB / 0.9825 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.0004424/0.3065, allocations: 331.7 kB / 1.288 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3065, allocations: 12.03 kB / 1.288 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.617e-05/0.3066, allocations: 8.125 kB / 1.288 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.3066, allocations: 30.75 kB / 1.288 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.3066, allocations: 8.891 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.3068, allocations: 134.3 kB / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-06/0.3068, allocations: 384 / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.3068, allocations: 384 / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.3069, allocations: 37.64 kB / 1.288 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.3069, allocations: 0 / 1.288 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.3069, allocations: 3.984 kB / 1.288 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3069, allocations: 4 kB / 1.288 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.055e-05/0.307, allocations: 12 kB / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.3072, allocations: 148.7 kB / 1.288 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.599e-05/0.3072, allocations: 30.52 kB / 1.288 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.537e-05/0.3072, allocations: 12.91 kB / 1.288 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.3073, allocations: 11.94 kB / 1.288 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.3073, allocations: 34.56 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3073, allocations: 0 / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001576/0.3075, allocations: 65.56 kB / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.3075, allocations: 51.41 kB / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.3077, allocations: 169 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.3077, allocations: 29.7 kB / 1.288 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.3078, allocations: 96.08 kB / 1.289 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.618e-06/0.3078, allocations: 0 / 1.289 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.3078, allocations: 25.83 kB / 1.289 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.308, allocations: 330.8 kB / 1.289 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-05/0.308, allocations: 43.98 kB / 1.289 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/0.3081, allocations: 35.98 kB / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.847e-05/0.3082, allocations: 68.83 kB / 1.289 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3082, allocations: 0 / 1.289 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00025/0.3084, allocations: 129.5 kB / 1.289 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.3084, allocations: 4 kB / 1.289 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.3085, allocations: 7.922 kB / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.3085, allocations: 8.047 kB / 1.289 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.093e-05/0.3085, allocations: 4 kB / 1.289 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.3085, allocations: 0 / 1.289 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.3085, allocations: 7.891 kB / 1.289 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.3085, allocations: 4 kB / 1.289 GB, free: 6.199 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: 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.0001411/0.3087, allocations: 126.8 kB / 1.289 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.3087, allocations: 11.89 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.3088, allocations: 57.48 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.3088, allocations: 4.031 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3088, allocations: 0 / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3088, allocations: 0 / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.3089, allocations: 144.7 kB / 1.29 GB, free: 5.809 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3089, allocations: 3.938 kB / 1.29 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.629e-06/0.3089, allocations: 0 / 1.29 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3089, allocations: 3.984 kB / 1.29 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.3089, allocations: 0 / 1.29 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.3089, allocations: 0 / 1.29 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3089, allocations: 0 / 1.29 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.418e-05/0.309, allocations: 85.03 kB / 1.29 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.424e-05/0.3091, allocations: 15.83 kB / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.3091, allocations: 0 / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.3091, allocations: 0 / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.377e-05/0.3091, allocations: 0 / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.3091, allocations: 0 / 1.29 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001134/0.3092, allocations: 127.2 kB / 1.29 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3092, allocations: 0 / 1.29 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003171/0.3095, allocations: 87.83 kB / 1.29 GB, free: 5.473 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.0008773/0.3104, allocations: 0.7532 MB / 1.291 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001765/0.3106, allocations: 89.67 kB / 1.291 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3106, allocations: 0 / 1.291 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.833e-05/0.3106, allocations: 11.94 kB / 1.291 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.3107, allocations: 4 kB / 1.291 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.3122, allocations: 1.537 MB / 1.292 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.3125, allocations: 0.6961 MB / 1.293 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.425e-05/0.3126, allocations: 8.016 kB / 1.293 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.3126, allocations: 19.44 kB / 1.293 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.3126, allocations: 0 / 1.293 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.3379, allocations: 3.638 MB / 1.296 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.3, allocations: 14.23 kB / 1.296 GB, free: 14.73 MB / 0.9981 GB " [Timeout remaining time 287] (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: 18.9547512930003]