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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.292/2.292, allocations: 390.3 MB / 402.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 180.8 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 221.3 MB / 0.7915 GB, free: 5.449 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000872/0.000872, allocations: 91.75 kB / 0.9317 GB, free: 5.762 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.412e-05/2.442e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2919, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.061/1.353, allocations: 151.7 MB / 1.367 GB, free: 2.309 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/1.353, allocations: 78.94 kB / 1.367 GB, free: 2.266 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 FrontEnd - DAE generated: time 0.01673/1.37, allocations: 5.813 MB / 1.373 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.447e-06/1.37, allocations: 4 kB / 1.373 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.145e-05/1.37, allocations: 0 / 1.373 GB, free: 13.28 MB / 0.8386 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.000475/1.371, allocations: 427.7 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/1.371, allocations: 8.031 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/1.371, allocations: 15.77 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/1.371, allocations: 194.8 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/1.371, allocations: 7.812 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/1.371, allocations: 0 / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/1.371, allocations: 37.69 kB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/1.371, allocations: 0 / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.829e-05/1.371, allocations: 0 / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/1.371, allocations: 3.984 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.21e-05/1.371, allocations: 27.91 kB / 1.373 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/1.372, allocations: 186.8 kB / 1.374 GB, free: 12.28 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.737e-05/1.372, allocations: 30.56 kB / 1.374 GB, free: 12.24 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.263e-05/1.372, allocations: 20.84 kB / 1.374 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.523e-05/1.372, allocations: 4 kB / 1.374 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/1.372, allocations: 34.5 kB / 1.374 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/1.372, allocations: 0 / 1.374 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.000173/1.372, allocations: 69.41 kB / 1.374 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/1.372, allocations: 55.41 kB / 1.374 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/1.372, allocations: 193.5 kB / 1.374 GB, free: 11.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/1.372, allocations: 25.7 kB / 1.374 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/1.372, allocations: 106.7 kB / 1.374 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.246e-05/1.372, allocations: 0 / 1.374 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/1.372, allocations: 4 kB / 1.374 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001222/1.372, allocations: 325.9 kB / 1.374 GB, free: 11.4 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.593e-05/1.372, allocations: 62.45 kB / 1.374 GB, free: 11.35 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.715e-05/1.373, allocations: 58.84 kB / 1.374 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.359e-05/1.373, allocations: 67.06 kB / 1.375 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.373, allocations: 0 / 1.375 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002048/1.373, allocations: 176.1 kB / 1.375 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/1.373, allocations: 4 kB / 1.375 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/1.373, allocations: 7.938 kB / 1.375 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/1.373, allocations: 0 / 1.375 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.417e-05/1.373, allocations: 3.984 kB / 1.375 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/1.373, allocations: 0 / 1.375 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/1.373, allocations: 11.84 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/1.373, allocations: 4 kB / 1.375 GB, free: 11.05 MB / 0.8386 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.609e-05/1.373, allocations: 113 kB / 1.375 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.68e-05/1.373, allocations: 15.25 kB / 1.375 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/1.373, allocations: 85.23 kB / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/1.373, allocations: 0 / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.373, allocations: 0 / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/1.373, allocations: 4 kB / 1.375 GB, free: 10.83 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/1.373, allocations: 181.6 kB / 1.375 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/1.373, allocations: 0 / 1.375 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.814e-06/1.373, allocations: 0 / 1.375 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/1.374, allocations: 7.969 kB / 1.375 GB, free: 10.61 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/1.374, allocations: 7.984 kB / 1.375 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/1.374, allocations: 0 / 1.375 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/1.374, allocations: 0 / 1.375 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/1.374, allocations: 92.2 kB / 1.375 GB, free: 10.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/1.374, allocations: 88.92 kB / 1.375 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/1.374, allocations: 0 / 1.375 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.383e-05/1.374, allocations: 4.031 kB / 1.375 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/1.374, allocations: 4 kB / 1.375 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/1.374, allocations: 7.922 kB / 1.375 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001169/1.374, allocations: 148.9 kB / 1.375 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.374, allocations: 0 / 1.375 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003812/1.374, allocations: 115.3 kB / 1.376 GB, free: 10.13 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005254/1.375, allocations: 238.7 kB / 1.376 GB, free: 9.918 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002013/1.375, allocations: 129.3 kB / 1.376 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.375, allocations: 4 kB / 1.376 GB, free: 9.805 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.51e-05/1.375, allocations: 11.98 kB / 1.376 GB, free: 9.793 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001007/1.375, allocations: 0.875 kB / 1.376 GB, free: 9.789 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/1.375, allocations: 156 kB / 1.376 GB, free: 9.621 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/1.376, allocations: 0.716 MB / 1.377 GB, free: 8.879 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.849e-05/1.376, allocations: 7.984 kB / 1.377 GB, free: 8.871 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/1.376, allocations: 11.44 kB / 1.377 GB, free: 8.859 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.376, allocations: 3.938 kB / 1.377 GB, free: 8.855 MB / 0.8386 GB Notification: Performance of Templates: time 0.00517/1.381, allocations: 2.348 MB / 1.379 GB, free: 6.516 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (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 & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches