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.001641/0.001641, allocations: 108 kB / 15.6 MB, free: 132 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.001756/0.001756, allocations: 195.5 kB / 16.54 MB, free: 6.672 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.616/2.616, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 62.67 kB / 0.9082 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2632, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001711/0.2649, allocations: 0.5069 MB / 1.064 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002103/0.267, allocations: 1.604 MB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.28e-05/0.2671, allocations: 0 / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.2673, allocations: 63.89 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.418e-05/0.2673, allocations: 31.89 kB / 1.066 GB, free: 12.31 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.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.0008738/0.2682, allocations: 248.6 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.896e-05/0.2683, allocations: 35.89 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.924e-05/0.2683, allocations: 4 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.452e-05/0.2684, allocations: 19.97 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.164e-05/0.2685, allocations: 43.89 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.2685, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.2689, allocations: 291.5 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.095e-05/0.269, allocations: 19.92 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.212e-05/0.269, allocations: 27.75 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.2694, allocations: 295.3 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2695, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2695, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.2695, allocations: 0 / 1.067 GB, free: 11.34 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.0004139/0.2699, allocations: 435.2 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2699, allocations: 8.031 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.045e-05/0.27, allocations: 38.69 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.27, allocations: 12.75 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.2702, allocations: 192.7 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-06/0.2702, allocations: 4.375 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.2702, allocations: 384 / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.26e-05/0.2703, allocations: 41.81 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-06/0.2703, allocations: 0 / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-06/0.2703, allocations: 4 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2703, allocations: 0 / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.97e-05/0.2703, allocations: 19.98 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.2705, allocations: 189.6 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.024e-05/0.2706, allocations: 26.56 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.394e-05/0.2706, allocations: 12.92 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.2706, allocations: 4 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.2707, allocations: 46.48 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.343e-06/0.2707, allocations: 3.938 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.2708, allocations: 73.44 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.2708, allocations: 51.41 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.271, allocations: 206.9 kB / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.271, allocations: 25.7 kB / 1.068 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.454e-05/0.2711, allocations: 108 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.018e-05/0.2711, allocations: 0 / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.116e-05/0.2712, allocations: 33.83 kB / 1.068 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.51e-05/0.2713, allocations: 326.8 kB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.161e-05/0.2713, allocations: 51.98 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.915e-05/0.2714, allocations: 59.91 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.768e-05/0.2715, allocations: 85.91 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.2715, allocations: 0 / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001689/0.2717, allocations: 174.4 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2717, allocations: 7.984 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.2717, allocations: 4.062 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2717, allocations: 4 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.048e-05/0.2717, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.197e-06/0.2717, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.872e-05/0.2718, allocations: 11.84 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.2718, allocations: 0 / 1.069 GB, free: 8.898 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: 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.0001333/0.2719, allocations: 131.6 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.272, allocations: 19.73 kB / 1.069 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.2721, allocations: 70.23 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2721, allocations: 0 / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2721, allocations: 3.938 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.2721, allocations: 0 / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.2722, allocations: 181.6 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2722, allocations: 0 / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.433e-06/0.2722, allocations: 3.938 kB / 1.069 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.2722, allocations: 4 kB / 1.069 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.2722, allocations: 0 / 1.069 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.2722, allocations: 7.984 kB / 1.069 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2722, allocations: 0 / 1.069 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.016e-05/0.2723, allocations: 85.06 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.2724, allocations: 88.86 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.2724, allocations: 7.984 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.4e-05/0.2724, allocations: 0 / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.2724, allocations: 0 / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.2725, allocations: 0 / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001122/0.2726, allocations: 156.3 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2726, allocations: 4 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003307/0.2729, allocations: 83.98 kB / 1.07 GB, free: 7.973 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.0006886/0.2736, allocations: 0.7478 MB / 1.07 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.2738, allocations: 125.7 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2738, allocations: 4 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.839e-05/0.2738, allocations: 19.92 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.274, allocations: 3.938 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.2754, allocations: 1.798 MB / 1.072 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.2757, allocations: 0.7041 MB / 1.073 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.86e-05/0.2757, allocations: 3.984 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.475e-05/0.2757, allocations: 23.42 kB / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2757, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.2953, allocations: 3.844 MB / 1.077 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.455, allocations: 19.77 kB / 1.077 GB, free: 0.6523 MB / 0.8262 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 50 --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