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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004106/0.004106, allocations: 102 kB / 15.73 MB, free: 6.441 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.001209/0.001209, allocations: 197.7 kB / 16.67 MB, free: 6.352 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 482.4 MB / 0.7548 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 63.89 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2766, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001458/0.2781, allocations: 0.5126 MB / 1.242 GB, free: 9.727 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002108/0.2802, allocations: 1.606 MB / 1.244 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.666e-05/0.2802, allocations: 0 / 1.244 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.2804, allocations: 63.83 kB / 1.244 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.667e-05/0.2805, allocations: 27.95 kB / 1.244 GB, free: 8.012 MB / 0.9981 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 12.0.0-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.0007707/0.2812, allocations: 244.7 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.2e-05/0.2813, allocations: 35.91 kB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.936e-05/0.2814, allocations: 0 / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.623e-05/0.2814, allocations: 27.91 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.839e-05/0.2815, allocations: 39.89 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.2815, allocations: 4 kB / 1.244 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000537/0.282, allocations: 339.4 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.108e-05/0.2821, allocations: 27.92 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.2821, allocations: 19.75 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.2825, allocations: 295 kB / 1.245 GB, free: 7 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2826, allocations: 8 kB / 1.245 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2826, allocations: 0 / 1.245 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.2826, allocations: 0 / 1.245 GB, free: 6.992 MB / 0.9981 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.0004488/0.283, allocations: 430.5 kB / 1.245 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2831, allocations: 12.03 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.2831, allocations: 34.69 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.2831, allocations: 12.84 kB / 1.245 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.2833, allocations: 192.2 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.2833, allocations: 384 / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.2833, allocations: 4.375 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.754e-05/0.2834, allocations: 45.81 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.2835, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-06/0.2835, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.2835, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.059e-05/0.2835, allocations: 19.94 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001875/0.2837, allocations: 181.7 kB / 1.245 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.625e-05/0.2838, allocations: 30.58 kB / 1.246 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.303e-05/0.2838, allocations: 20.91 kB / 1.246 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.2838, allocations: 4 kB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.2839, allocations: 38.5 kB / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.2839, allocations: 3.938 kB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001828/0.2841, allocations: 81.5 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.2841, allocations: 51.41 kB / 1.246 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.2843, allocations: 207.4 kB / 1.246 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.2844, allocations: 29.83 kB / 1.246 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.2844, allocations: 108.1 kB / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.2844, allocations: 7.891 kB / 1.246 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.2845, allocations: 33.7 kB / 1.246 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2846, allocations: 326.8 kB / 1.246 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.185e-05/0.2847, allocations: 55.97 kB / 1.246 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-05/0.2848, allocations: 51.98 kB / 1.246 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.2849, allocations: 91.62 kB / 1.247 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2849, allocations: 32 / 1.247 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001863/0.2851, allocations: 165.5 kB / 1.247 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.2851, allocations: 4 kB / 1.247 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.2851, allocations: 7.938 kB / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.659e-06/0.2851, allocations: 0 / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.658e-06/0.2852, allocations: 0 / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.2852, allocations: 0 / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.857e-05/0.2852, allocations: 27.77 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.2852, allocations: 0 / 1.247 GB, free: 4.527 MB / 0.9981 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.0001314/0.2854, allocations: 130.4 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.2854, allocations: 11.89 kB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.2855, allocations: 70.17 kB / 1.247 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2855, allocations: 0 / 1.247 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2855, allocations: 0 / 1.247 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2855, allocations: 0 / 1.247 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.2857, allocations: 177.7 kB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2857, allocations: 0 / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-06/0.2857, allocations: 3.938 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.2857, allocations: 0 / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.2857, allocations: 12.02 kB / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2857, allocations: 0 / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2857, allocations: 4 kB / 1.247 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001224/0.2859, allocations: 81.03 kB / 1.247 GB, free: 3.961 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.553e-05/0.2859, allocations: 92.95 kB / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.2859, allocations: 0 / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.294e-05/0.286, allocations: 0 / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.024e-05/0.286, allocations: 8.031 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.286, allocations: 3.984 kB / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001249/0.2861, allocations: 151 kB / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2861, allocations: 0 / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000301/0.2864, allocations: 91.8 kB / 1.248 GB, free: 3.602 MB / 0.9981 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.0008153/0.2872, allocations: 0.7453 MB / 1.248 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001879/0.2874, allocations: 129.7 kB / 1.248 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2875, allocations: 0 / 1.248 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.788e-05/0.2875, allocations: 11.94 kB / 1.248 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.2876, allocations: 16.11 kB / 1.248 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.2894, allocations: 1.796 MB / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.2897, allocations: 0.7041 MB / 1.251 GB, free: 76 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.827e-05/0.2897, allocations: 7.953 kB / 1.251 GB, free: 68 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.666e-05/0.2898, allocations: 27.42 kB / 1.251 GB, free: 40 kB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.2898, allocations: 0 / 1.251 GB, free: 40 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4943/0.7841, allocations: 3.874 MB / 1.255 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/8.496, allocations: 7.531 kB / 1.255 GB, free: 14.39 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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