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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001014, allocations: 112.6 kB / 16.37 MB, free: 6 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.000917/0.0009171, allocations: 196 kB / 17.31 MB, free: 5.613 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.231/1.231, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.226/2.226, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 60.28 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2447, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001706/0.2465, allocations: 0.5181 MB / 1.027 GB, free: 1.555 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001975/0.2485, allocations: 1.608 MB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.589e-05/0.2485, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.2487, allocations: 63.83 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.299e-05/0.2487, allocations: 27.95 kB / 1.029 GB, free: 15.84 MB / 0.8106 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.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.0007535/0.2495, allocations: 247.2 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.421e-05/0.2496, allocations: 39.89 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.973e-05/0.2496, allocations: 0 / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.703e-05/0.2497, allocations: 23.91 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.459e-05/0.2497, allocations: 35.95 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.2497, allocations: 3.938 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004911/0.2502, allocations: 347.4 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.548e-05/0.2503, allocations: 19.92 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.085e-05/0.2504, allocations: 27.75 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.2507, allocations: 287.4 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2507, allocations: 3.938 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.754e-06/0.2507, allocations: 4 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.2507, allocations: 0 / 1.03 GB, free: 14.82 MB / 0.8106 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.0004265/0.2512, allocations: 423 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.2512, allocations: 12.03 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.2513, allocations: 16.75 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.2514, allocations: 184.2 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.2514, allocations: 384 / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.2514, allocations: 4.312 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.374e-05/0.2515, allocations: 50 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-06/0.2515, allocations: 0 / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.2515, allocations: 0 / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.2516, allocations: 0 / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.548e-05/0.2516, allocations: 19.94 kB / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.2517, allocations: 189.6 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.037e-05/0.2518, allocations: 22.58 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.2518, allocations: 24.84 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.2518, allocations: 4 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.2519, allocations: 38.5 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2519, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001348/0.252, allocations: 69.61 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.2521, allocations: 59.41 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.2522, allocations: 212 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.2523, allocations: 25.7 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.886e-05/0.2523, allocations: 108 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.477e-06/0.2523, allocations: 4 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.2524, allocations: 25.7 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.2525, allocations: 326.8 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.398e-05/0.2526, allocations: 59.91 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.676e-05/0.2526, allocations: 55.98 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.487e-05/0.2527, allocations: 100.1 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2527, allocations: 3.938 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001537/0.2529, allocations: 161.5 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2529, allocations: 11.06 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.2529, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.2529, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.256e-05/0.2529, allocations: 4 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.2529, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.634e-05/0.253, allocations: 15.89 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.253, allocations: 7.938 kB / 1.032 GB, free: 12.41 MB / 0.8106 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.0001183/0.2531, allocations: 129.8 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.2531, allocations: 15.84 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.435e-05/0.2532, allocations: 58.23 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2532, allocations: 4 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2532, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2533, allocations: 8.016 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.2534, allocations: 181.7 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2534, allocations: 0 / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-06/0.2534, allocations: 0 / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.2534, allocations: 7.875 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.2534, allocations: 3.984 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2534, allocations: 3.984 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2534, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.047e-05/0.2535, allocations: 92.88 kB / 1.032 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.955e-05/0.2536, allocations: 88.95 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.2536, allocations: 0 / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.2536, allocations: 0 / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-06/0.2536, allocations: 0 / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.2536, allocations: 3.984 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.981e-05/0.2537, allocations: 143.2 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2537, allocations: 0 / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002754/0.254, allocations: 87.98 kB / 1.033 GB, free: 11.5 MB / 0.8106 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.0004129/0.2544, allocations: 232.5 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001677/0.2546, allocations: 129.6 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2546, allocations: 0 / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.448e-05/0.2546, allocations: 8 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.2548, allocations: 12.12 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002735/0.255, allocations: 213.8 kB / 1.033 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.2553, allocations: 0.7002 MB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.58e-05/0.2553, allocations: 7.984 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.387e-05/0.2553, allocations: 7.438 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of SimCode: time 1.402e-06/0.2553, allocations: 0 / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of Templates: time 0.00433/0.2597, allocations: 2.116 MB / 1.036 GB, free: 8.039 MB / 0.8106 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 -s cvode -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","/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