Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_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.001302/0.001302, allocations: 108 kB / 15.61 MB, free: 152 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.001178/0.001178, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.341/2.341, allocations: 437.1 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 64.09 kB / 0.8693 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5625/0.5637, allocations: 151.6 MB / 1.017 GB, free: 2.598 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001595/0.5653, allocations: 0.5085 MB / 1.018 GB, free: 2.094 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.5671, allocations: 1.61 MB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.564e-05/0.5672, allocations: 0 / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.5673, allocations: 71.83 kB / 1.02 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.223e-05/0.5674, allocations: 27.95 kB / 1.02 GB, free: 376 kB / 0.7637 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 10.1.1-maint.10.0.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.0007078/0.5681, allocations: 244.7 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.898e-05/0.5682, allocations: 39.91 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.5682, allocations: 0 / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.077e-05/0.5682, allocations: 23.95 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.209e-05/0.5683, allocations: 35.91 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.5683, allocations: 4 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004302/0.5688, allocations: 291.5 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.656e-05/0.5688, allocations: 23.92 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.73e-05/0.5688, allocations: 23.75 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.5692, allocations: 291.3 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.5692, allocations: 4 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5692, allocations: 4 kB / 1.021 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.5692, allocations: 0 / 1.021 GB, free: 15.4 MB / 0.7794 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.0003892/0.5696, allocations: 433.1 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.5696, allocations: 15.98 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.5697, allocations: 30.75 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.5697, allocations: 12.75 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.5698, allocations: 192.1 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-06/0.5699, allocations: 4.312 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.5699, allocations: 4.375 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.816e-05/0.57, allocations: 45.81 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-06/0.57, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.77e-06/0.57, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.57, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.64e-05/0.57, allocations: 23.92 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001565/0.5702, allocations: 185.6 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.667e-05/0.5702, allocations: 26.58 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.296e-05/0.5703, allocations: 24.89 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.5703, allocations: 4 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.5703, allocations: 34.5 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.5703, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001291/0.5705, allocations: 77.52 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.5705, allocations: 55.34 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.5707, allocations: 211.4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.5707, allocations: 25.83 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.5707, allocations: 108 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.394e-06/0.5708, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.5708, allocations: 29.7 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5709, allocations: 326.8 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.702e-05/0.571, allocations: 55.97 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.538e-05/0.571, allocations: 50.23 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.256e-05/0.5711, allocations: 96.7 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.5711, allocations: 0 / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001548/0.5713, allocations: 171.3 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.5713, allocations: 4 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.5713, allocations: 0 / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.5713, allocations: 4 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.391e-05/0.5714, allocations: 3.984 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.5714, allocations: 0 / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.564e-05/0.5714, allocations: 15.69 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.5714, allocations: 4 kB / 1.023 GB, free: 12.95 MB / 0.7794 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.0001141/0.5715, allocations: 135.4 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.5716, allocations: 11.84 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.261e-05/0.5717, allocations: 70.17 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.5717, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.5717, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.5717, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.5718, allocations: 181.6 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.5718, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/0.5718, allocations: 7.922 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.5718, allocations: 3.938 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.539e-06/0.5718, allocations: 4.031 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.5718, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5718, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.894e-05/0.5719, allocations: 84.94 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.572, allocations: 88.95 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.572, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.572, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.572, allocations: 8.016 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.572, allocations: 8 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001048/0.5721, allocations: 148.4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.5721, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002774/0.5724, allocations: 83.98 kB / 1.023 GB, free: 12.03 MB / 0.7794 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.0006296/0.5731, allocations: 0.7534 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00015/0.5732, allocations: 129.7 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5732, allocations: 0 / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.657e-05/0.5732, allocations: 15.92 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.5734, allocations: 9.844 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.5748, allocations: 1.8 MB / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.575, allocations: 0.7002 MB / 1.027 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.386e-05/0.5751, allocations: 4 kB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.163e-05/0.5751, allocations: 27.45 kB / 1.027 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5751, allocations: 0 / 1.027 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2979/0.873, allocations: 3.836 MB / 1.031 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.868, allocations: 1.875 kB / 1.031 GB, free: 4.715 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches