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.001406/0.001406, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001641/0.001641, allocations: 215.1 kB / 22.25 MB, free: 5.121 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 8 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.771/2.771, allocations: 476.7 MB / 0.7707 GB, free: 4.277 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",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.002009/0.002009, allocations: 67.45 kB / 1.117 GB, free: 40.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2871, allocations: 170 MB / 1.283 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001752/0.2888, allocations: 0.5325 MB / 1.284 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00246/0.2913, allocations: 1.678 MB / 1.285 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.447e-05/0.2913, allocations: 3.938 kB / 1.285 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.2914, allocations: 27.89 kB / 1.286 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.177e-05/0.2915, allocations: 8 kB / 1.286 GB, free: 9.445 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.0009734/0.2924, allocations: 270.8 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.645e-05/0.2925, allocations: 15.98 kB / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.885e-05/0.2926, allocations: 7.984 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.13e-05/0.2926, allocations: 11.92 kB / 1.286 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.935e-05/0.2926, allocations: 27.86 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.2927, allocations: 4 kB / 1.286 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007916/0.2934, allocations: 455.2 kB / 1.286 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.2935, allocations: 23.92 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.831e-05/0.2935, allocations: 11.88 kB / 1.286 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.294, allocations: 294.7 kB / 1.287 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.294, allocations: 0 / 1.287 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.843e-06/0.294, allocations: 0 / 1.287 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.294, allocations: 3.938 kB / 1.287 GB, free: 8.348 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.0004457/0.2945, allocations: 339.6 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2945, allocations: 12.03 kB / 1.287 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.186e-05/0.2945, allocations: 30.75 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.2946, allocations: 8.891 kB / 1.287 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.2947, allocations: 129.3 kB / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.2947, allocations: 384 / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-06/0.2947, allocations: 384 / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.59e-05/0.2948, allocations: 41.81 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.2948, allocations: 0 / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-06/0.2948, allocations: 0 / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2949, allocations: 4 kB / 1.287 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.051e-05/0.2949, allocations: 23.92 kB / 1.287 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.2951, allocations: 144.7 kB / 1.287 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.858e-05/0.2951, allocations: 22.58 kB / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.2951, allocations: 12.92 kB / 1.287 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.2952, allocations: 11.98 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.2952, allocations: 38.44 kB / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.2952, allocations: 4 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001563/0.2953, allocations: 61.58 kB / 1.287 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.2954, allocations: 51.41 kB / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.2956, allocations: 170.2 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.2956, allocations: 25.7 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.961e-05/0.2956, allocations: 96.12 kB / 1.288 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.306e-06/0.2956, allocations: 0 / 1.288 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.2957, allocations: 21.72 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.2958, allocations: 327 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.19e-05/0.2959, allocations: 39.98 kB / 1.288 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.937e-05/0.2959, allocations: 47.97 kB / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.565e-05/0.296, allocations: 68.78 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.296, allocations: 0 / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001724/0.2962, allocations: 129.5 kB / 1.288 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2962, allocations: 4 kB / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.2962, allocations: 4 kB / 1.288 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.2962, allocations: 0 / 1.288 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-05/0.2962, allocations: 4.062 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.2962, allocations: 0 / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.52e-05/0.2963, allocations: 7.953 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.2963, allocations: 0 / 1.288 GB, free: 6.316 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.0001918/0.2965, allocations: 125.8 kB / 1.289 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.2965, allocations: 11.84 kB / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2966, allocations: 61.44 kB / 1.289 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2966, allocations: 3.938 kB / 1.289 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2966, allocations: 4.031 kB / 1.289 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2966, allocations: 0 / 1.289 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.2967, allocations: 148.7 kB / 1.289 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.2967, allocations: 0 / 1.289 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-06/0.2967, allocations: 3.938 kB / 1.289 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.2967, allocations: 4 kB / 1.289 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.2967, allocations: 3.984 kB / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2967, allocations: 0 / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2967, allocations: 4 kB / 1.289 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.956e-05/0.2968, allocations: 81.08 kB / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.64e-05/0.2969, allocations: 15.81 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.2969, allocations: 0 / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.2969, allocations: 0 / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-06/0.2969, allocations: 4 kB / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.2969, allocations: 0 / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.237e-05/0.297, allocations: 121.7 kB / 1.289 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.297, allocations: 0 / 1.289 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003482/0.2973, allocations: 91.83 kB / 1.289 GB, free: 5.57 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.0008752/0.2982, allocations: 0.7363 MB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001687/0.2984, allocations: 93.61 kB / 1.29 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2984, allocations: 0 / 1.29 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.734e-05/0.2984, allocations: 11.98 kB / 1.29 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.2985, allocations: 8 kB / 1.29 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.3, allocations: 1.534 MB / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.3003, allocations: 0.6961 MB / 1.292 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.918e-05/0.3003, allocations: 0 / 1.292 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.3004, allocations: 23.45 kB / 1.292 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of SimCode: time 3.9e-07/0.3004, allocations: 0 / 1.292 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03125/0.3316, allocations: 3.616 MB / 1.296 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.55, allocations: 7.875 kB / 1.296 GB, free: 14.87 MB / 0.9981 GB " [Timeout remaining time 288] (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.082220681011677]