Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001818/0.001818, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00234/0.00234, allocations: 216 kB / 22.26 MB, free: 5.078 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.283/3.283, allocations: 0.49 GB / 0.7951 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_12_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.002053/0.002053, allocations: 69.92 kB / 1.154 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3327, allocations: 176.1 MB / 1.326 GB, free: 1.961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001999/0.3347, allocations: 0.5214 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002745/0.3375, allocations: 1.693 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.662e-05/0.3375, allocations: 3.938 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.3377, allocations: 19.91 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.193e-05/0.3377, allocations: 11.98 kB / 1.328 GB, free: 15.7 MB / 1.029 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.001111/0.3388, allocations: 279.2 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.901e-05/0.3389, allocations: 35.89 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.022e-05/0.3389, allocations: 288 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.214e-05/0.339, allocations: 15.92 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.762e-05/0.339, allocations: 15.98 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.339, allocations: 0 / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008587/0.3399, allocations: 487.1 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.3399, allocations: 19.98 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.34, allocations: 15.81 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005038/0.3405, allocations: 311.1 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3405, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3405, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.3405, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 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.0004756/0.341, allocations: 335.2 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.341, allocations: 12.03 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.341, allocations: 38.69 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.758e-05/0.3411, allocations: 4.891 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.3412, allocations: 130.3 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.3413, allocations: 8.375 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.3413, allocations: 384 / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.3414, allocations: 45.75 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.3414, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.3414, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.3414, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.093e-05/0.3414, allocations: 15.98 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001776/0.3416, allocations: 144.8 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.102e-05/0.3416, allocations: 26.58 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.428e-05/0.3417, allocations: 12.92 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.3417, allocations: 7.984 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.3417, allocations: 42.44 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3417, allocations: 0 / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.3419, allocations: 57.64 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.3419, allocations: 51.41 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.3421, allocations: 176.7 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.3421, allocations: 29.7 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.429e-05/0.3422, allocations: 100.1 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.355e-05/0.3422, allocations: 4 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.3422, allocations: 21.72 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3424, allocations: 322.8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.068e-05/0.3424, allocations: 39.98 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.609e-05/0.3425, allocations: 39.92 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.363e-05/0.3426, allocations: 72.86 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3426, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00016/0.3427, allocations: 133.5 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3428, allocations: 5.562 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3428, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3428, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.235e-05/0.3428, allocations: 4 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.3428, allocations: 3.938 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.333e-05/0.3428, allocations: 3.953 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.3428, allocations: 4 kB / 1.331 GB, free: 12.5 MB / 1.029 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.0001692/0.343, allocations: 126.4 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.343, allocations: 19.81 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3431, allocations: 61.42 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3431, allocations: 0 / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.3431, allocations: 0 / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3431, allocations: 0 / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.3433, allocations: 144.7 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3433, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-06/0.3433, allocations: 11.97 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3433, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-06/0.3433, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3433, allocations: 4 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3433, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.364e-05/0.3434, allocations: 81.02 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.125e-05/0.3434, allocations: 15.88 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3434, allocations: 0 / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.433e-05/0.3434, allocations: 4.031 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.024e-05/0.3434, allocations: 3.938 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.3435, allocations: 0 / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.904e-05/0.3435, allocations: 124.5 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3435, allocations: 0 / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003578/0.3439, allocations: 83.8 kB / 1.332 GB, free: 11.75 MB / 1.029 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.0008951/0.3448, allocations: 0.7525 MB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001692/0.345, allocations: 93.66 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.345, allocations: 4.094 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.277e-05/0.345, allocations: 8 kB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.3451, allocations: 8 kB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.3467, allocations: 1.526 MB / 1.334 GB, free: 9.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.3471, allocations: 0.6963 MB / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.901e-05/0.3471, allocations: 0 / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/0.3472, allocations: 27.42 kB / 1.335 GB, free: 8.52 MB / 1.029 GB Notification: Performance of SimCode: time 3.4e-07/0.3472, allocations: 0 / 1.335 GB, free: 8.52 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9508/1.298, allocations: 3.695 MB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/13.01, allocations: 8.391 kB / 1.338 GB, free: 4.949 MB / 1.029 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 20.106634724885225]