Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.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_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_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.009294/0.009294, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.002488/0.002488, allocations: 197.5 kB / 16.67 MB, free: 5.973 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.435/2.435, allocations: 469.8 MB / 0.7425 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 63.91 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2391, allocations: 159.1 MB / 1.22 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001264/0.2404, allocations: 0.5188 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001792/0.2422, allocations: 1.604 MB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.2422, allocations: 7.938 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.2424, allocations: 59.84 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.327e-05/0.2424, allocations: 27.95 kB / 1.222 GB, free: 12.12 MB / 0.9825 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.0006618/0.2431, allocations: 247.3 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.1e-05/0.2431, allocations: 35.84 kB / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 2.792e-05/0.2432, allocations: 7.984 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.91e-05/0.2432, allocations: 19.97 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.2433, allocations: 43.89 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.2433, allocations: 4 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004579/0.2437, allocations: 327.5 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.29e-05/0.2438, allocations: 27.91 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.2438, allocations: 27.73 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.2442, allocations: 291 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.2442, allocations: 4 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2442, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.2442, allocations: 4 kB / 1.223 GB, free: 11.11 MB / 0.9825 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.000383/0.2446, allocations: 434.5 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.2446, allocations: 12.03 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.627e-05/0.2447, allocations: 30.75 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.2447, allocations: 16.78 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.2448, allocations: 192.2 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.512e-06/0.2448, allocations: 384 / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.2449, allocations: 4.375 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.621e-05/0.2449, allocations: 45.77 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.245, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-06/0.245, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-06/0.245, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.746e-05/0.245, allocations: 19.98 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.2452, allocations: 185.6 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 3.895e-05/0.2452, allocations: 30.58 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.156e-05/0.2452, allocations: 16.91 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.2453, allocations: 11.94 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.2453, allocations: 34.5 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 2.465e-06/0.2453, allocations: 0 / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001193/0.2454, allocations: 73.58 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.2455, allocations: 55.39 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.2456, allocations: 207.1 kB / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.2456, allocations: 25.7 kB / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.2457, allocations: 116.1 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.314e-06/0.2457, allocations: 7.875 kB / 1.225 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.2458, allocations: 33.7 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.2459, allocations: 326.8 kB / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.2459, allocations: 55.97 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-05/0.246, allocations: 55.92 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.557e-05/0.2461, allocations: 87.31 kB / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2461, allocations: 0 / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001622/0.2463, allocations: 165.5 kB / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.907e-06/0.2463, allocations: 8.062 kB / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.2463, allocations: 4 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.2463, allocations: 0 / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.875e-06/0.2463, allocations: 0 / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.2463, allocations: 0 / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.629e-05/0.2464, allocations: 19.78 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.2464, allocations: 0 / 1.225 GB, free: 8.645 MB / 0.9825 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.0001089/0.2465, allocations: 137.8 kB / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.2465, allocations: 11.89 kB / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.263e-05/0.2466, allocations: 70.23 kB / 1.226 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.2466, allocations: 4 kB / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2466, allocations: 0 / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.2466, allocations: 0 / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.2467, allocations: 177.7 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2467, allocations: 3.984 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-06/0.2468, allocations: 3.938 kB / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.2468, allocations: 0 / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-06/0.2468, allocations: 0 / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.2468, allocations: 4.031 kB / 1.226 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2468, allocations: 4 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.962e-05/0.2469, allocations: 88.95 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.2469, allocations: 92.95 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-06/0.2469, allocations: 0 / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.092e-05/0.2469, allocations: 0 / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.247, allocations: 4 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.247, allocations: 4.031 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001096/0.2471, allocations: 152.3 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2471, allocations: 0 / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000257/0.2473, allocations: 87.8 kB / 1.226 GB, free: 7.715 MB / 0.9825 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.0006514/0.248, allocations: 0.7508 MB / 1.227 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001545/0.2482, allocations: 129.7 kB / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.2482, allocations: 0 / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.625e-05/0.2482, allocations: 8 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.2483, allocations: 4 kB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.2497, allocations: 1.81 MB / 1.229 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.25, allocations: 0.7158 MB / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.279e-05/0.25, allocations: 0 / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.2501, allocations: 19.44 kB / 1.23 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.2501, allocations: 0 / 1.23 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.025/2.275, allocations: 3.896 MB / 1.233 GB, free: 368 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.928/11.2, allocations: 2.969 kB / 1.233 GB, free: 368 kB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches