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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 197.5 kB / 16.54 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.699/2.699, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 63.61 kB / 0.9086 GB, free: 34.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2531, allocations: 159.2 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001621/0.2547, allocations: 0.5199 MB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002027/0.2567, allocations: 1.604 MB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.359e-05/0.2568, allocations: 3.938 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.2569, allocations: 15.97 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.606e-05/0.2569, allocations: 15.92 kB / 1.066 GB, free: 12.06 MB / 0.8262 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.0007283/0.2577, allocations: 249.5 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.222e-05/0.2577, allocations: 23.92 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.469e-05/0.2578, allocations: 4 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.368e-05/0.2578, allocations: 7.984 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.577e-05/0.2578, allocations: 15.92 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.2579, allocations: 7.984 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004538/0.2583, allocations: 291.5 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.314e-05/0.2584, allocations: 19.92 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.612e-05/0.2584, allocations: 19.81 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003605/0.2588, allocations: 267.5 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2588, allocations: 7.984 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2588, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2588, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 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.0004071/0.2592, allocations: 407.3 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2593, allocations: 11.97 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.028e-05/0.2593, allocations: 30.75 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.413e-05/0.2593, allocations: 12.84 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.2595, allocations: 188.2 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-06/0.2595, allocations: 384 / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.198e-06/0.2595, allocations: 384 / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.246e-05/0.2596, allocations: 41.62 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.2596, allocations: 3.984 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-06/0.2596, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-06/0.2596, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.02e-05/0.2597, allocations: 12 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.2598, allocations: 185.6 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.684e-05/0.2599, allocations: 22.62 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.885e-05/0.2599, allocations: 12.86 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.26, allocations: 7.938 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.26, allocations: 42.55 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.26, allocations: 0 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001343/0.2601, allocations: 65.53 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.2602, allocations: 51.41 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.2603, allocations: 169 kB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.2604, allocations: 25.7 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.795e-05/0.2604, allocations: 92.14 kB / 1.068 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.13e-05/0.2604, allocations: 7.906 kB / 1.068 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.875e-05/0.2605, allocations: 25.7 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2606, allocations: 322.8 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.021e-05/0.2607, allocations: 44.11 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.234e-05/0.2607, allocations: 35.98 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.149e-05/0.2608, allocations: 72.81 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2608, allocations: 4 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001542/0.261, allocations: 137.4 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.261, allocations: 4 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.261, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.261, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.063e-05/0.261, allocations: 4 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/0.261, allocations: 0 / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.794e-05/0.2611, allocations: 4.062 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.2611, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 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.0001143/0.2612, allocations: 126.8 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.2612, allocations: 15.78 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.527e-05/0.2613, allocations: 61.55 kB / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2613, allocations: 0 / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2613, allocations: 3.938 kB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.2613, allocations: 3.969 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.2615, allocations: 177.6 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2615, allocations: 3.938 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.2615, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.2615, allocations: 4 kB / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-06/0.2615, allocations: 0 / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.2615, allocations: 0 / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2615, allocations: 0 / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.242e-05/0.2616, allocations: 81.03 kB / 1.069 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.2616, allocations: 84.95 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.2617, allocations: 4 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.291e-05/0.2617, allocations: 3.984 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.136e-05/0.2617, allocations: 0 / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.2617, allocations: 0 / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.694e-05/0.2618, allocations: 119.2 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2618, allocations: 0 / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002929/0.2621, allocations: 87.98 kB / 1.07 GB, free: 8.07 MB / 0.8262 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.00074/0.2628, allocations: 0.7444 MB / 1.07 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001535/0.263, allocations: 101.7 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.263, allocations: 7.938 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.866e-05/0.263, allocations: 15.92 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.2632, allocations: 7.625 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.2645, allocations: 1.521 MB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.2648, allocations: 0.6963 MB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.45e-05/0.2648, allocations: 0 / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/0.2649, allocations: 23.42 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2649, allocations: 0 / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.066/1.33, allocations: 3.45 MB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/13.42, allocations: 13.95 kB / 1.076 GB, free: 1.445 MB / 0.8262 GB (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 --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) 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) Reference file matches