Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",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.005281/0.005281, allocations: 103 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 190 kB / 16.67 MB, free: 5.965 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 60.09 kB / 1.054 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2972, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001688/0.2989, allocations: 0.5182 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002462/0.3014, allocations: 1.607 MB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.999e-05/0.3015, allocations: 4 kB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.3017, allocations: 59.84 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.53e-05/0.3018, allocations: 35.89 kB / 1.209 GB, free: 7.91 MB / 0.9669 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.0.1-master/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.001135/0.3029, allocations: 242.1 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.303, allocations: 39.83 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.572e-05/0.3031, allocations: 0 / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.562e-05/0.3032, allocations: 23.97 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.446e-05/0.3032, allocations: 39.89 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.3033, allocations: 4 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006986/0.304, allocations: 335.5 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.929e-05/0.304, allocations: 27.91 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.729e-05/0.3041, allocations: 27.73 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000465/0.3046, allocations: 283.4 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3046, allocations: 0 / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3046, allocations: 0 / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.558e-06/0.3046, allocations: 4 kB / 1.21 GB, free: 6.906 MB / 0.9669 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.0005105/0.3051, allocations: 427.2 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3052, allocations: 20.61 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.3052, allocations: 34.69 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.3053, allocations: 12.78 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.3055, allocations: 196.6 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.3055, allocations: 384 / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.3055, allocations: 384 / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.3056, allocations: 45.81 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3056, allocations: 3.938 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.3056, allocations: 0 / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3056, allocations: 0 / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.664e-05/0.3057, allocations: 23.98 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001949/0.3059, allocations: 189.5 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.134e-05/0.3059, allocations: 30.58 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.284e-05/0.306, allocations: 16.86 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.306, allocations: 7.984 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.3061, allocations: 38.5 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 2.535e-06/0.3061, allocations: 0 / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.3062, allocations: 69.53 kB / 1.211 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.3063, allocations: 59.34 kB / 1.212 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.3065, allocations: 206.3 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.3065, allocations: 25.7 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.218e-05/0.3066, allocations: 100.1 kB / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.3066, allocations: 7.906 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.3067, allocations: 29.7 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3068, allocations: 335 kB / 1.212 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.27e-05/0.3069, allocations: 47.98 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.084e-05/0.3069, allocations: 55.97 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.3071, allocations: 94.19 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3071, allocations: 0 / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001872/0.3073, allocations: 165.4 kB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.3073, allocations: 7.938 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.3073, allocations: 0 / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.3073, allocations: 0 / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.701e-05/0.3073, allocations: 4 kB / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.3074, allocations: 4.062 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.3074, allocations: 7.844 kB / 1.213 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.3074, allocations: 4 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001453/0.3076, allocations: 133.8 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.3076, allocations: 15.75 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.3077, allocations: 62.23 kB / 1.213 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.3077, allocations: 4 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3077, allocations: 4.031 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3077, allocations: 0 / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.3079, allocations: 181.7 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3079, allocations: 0 / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.494e-06/0.3079, allocations: 7.875 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.3079, allocations: 0 / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.3079, allocations: 0 / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3079, allocations: 0 / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3079, allocations: 3.938 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.275e-05/0.308, allocations: 89.02 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.17e-05/0.3081, allocations: 92.86 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.3081, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.217e-05/0.3081, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.517e-05/0.3081, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.3082, allocations: 4 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001111/0.3083, allocations: 156.1 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3083, allocations: 0 / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003139/0.3086, allocations: 87.98 kB / 1.213 GB, free: 3.527 MB / 0.9669 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.0007655/0.3094, allocations: 0.7555 MB / 1.214 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001871/0.3096, allocations: 129.7 kB / 1.214 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3096, allocations: 0 / 1.214 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.645e-05/0.3096, allocations: 8 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001483/0.3098, allocations: 10.73 kB / 1.214 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.3115, allocations: 1.81 MB / 1.216 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.3118, allocations: 0.7041 MB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.048e-05/0.3118, allocations: 3.984 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.791e-05/0.3119, allocations: 23.44 kB / 1.217 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3119, allocations: 4.031 kB / 1.217 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.3322, allocations: 3.894 MB / 1.221 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.384, allocations: 9.547 kB / 1.221 GB, free: 12.15 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches