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: 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.001441/0.001441, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002314/0.002314, allocations: 191.8 kB / 16.25 MB, free: 6.648 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.363/1.363, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.779/2.779, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.86 kB / 0.8986 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3124, allocations: 157.4 MB / 1.052 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002577/0.315, allocations: 0.5754 MB / 1.053 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002401/0.3174, allocations: 1.614 MB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.159e-05/0.3175, allocations: 0 / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.3177, allocations: 55.91 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.803e-05/0.3178, allocations: 31.89 kB / 1.054 GB, free: 6.465 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.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.0007878/0.3185, allocations: 234.4 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.662e-05/0.3186, allocations: 31.95 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.655e-05/0.3187, allocations: 4 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.252e-05/0.3187, allocations: 19.97 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.235e-05/0.3188, allocations: 43.83 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.3188, allocations: 0 / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004422/0.3192, allocations: 287.6 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.3193, allocations: 27.92 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.621e-05/0.3193, allocations: 23.73 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.3197, allocations: 291.3 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3197, allocations: 7.938 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3197, allocations: 0 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.3197, allocations: 4 kB / 1.055 GB, free: 5.512 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.0004251/0.3201, allocations: 427.2 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3202, allocations: 12.62 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.3202, allocations: 12.75 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.3204, allocations: 192.7 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-06/0.3204, allocations: 384 / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-06/0.3204, allocations: 384 / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.025e-05/0.3205, allocations: 53.98 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.3205, allocations: 4 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.3205, allocations: 0 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3205, allocations: 0 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.306e-05/0.3206, allocations: 19.98 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001799/0.3207, allocations: 181.6 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.886e-05/0.3208, allocations: 30.5 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.47e-05/0.3208, allocations: 16.86 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.3209, allocations: 12 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.3209, allocations: 34.5 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3209, allocations: 0 / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001542/0.3211, allocations: 77.42 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.3211, allocations: 51.41 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.3213, allocations: 210.4 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.3213, allocations: 25.7 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.3214, allocations: 108.2 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.799e-06/0.3214, allocations: 0 / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.3215, allocations: 29.7 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3216, allocations: 330.8 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.595e-05/0.3217, allocations: 47.98 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.124e-05/0.3217, allocations: 55.97 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.236e-05/0.3218, allocations: 95.03 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3218, allocations: 0 / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001682/0.322, allocations: 169.4 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.322, allocations: 7.938 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.322, allocations: 3.984 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.248e-06/0.3221, allocations: 0 / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-05/0.3221, allocations: 0 / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3221, allocations: 4 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.525e-05/0.3221, allocations: 11.78 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.3221, allocations: 4 kB / 1.058 GB, free: 3.109 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.0001375/0.3223, allocations: 129.8 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.3223, allocations: 15.88 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.3224, allocations: 62.23 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.3224, allocations: 0 / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3224, allocations: 4 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3224, allocations: 3.938 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.3225, allocations: 181.6 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3225, allocations: 0 / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-06/0.3226, allocations: 0 / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3226, allocations: 3.938 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-06/0.3226, allocations: 4.031 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.3226, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3226, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.984e-05/0.3227, allocations: 84.94 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.3227, allocations: 88.95 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.3227, allocations: 0 / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.571e-05/0.3228, allocations: 7.984 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.3228, allocations: 32 / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.3228, allocations: 4 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001129/0.3229, allocations: 156.1 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.563e-06/0.3229, allocations: 0 / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003094/0.3232, allocations: 83.92 kB / 1.058 GB, free: 2.199 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.0004666/0.3237, allocations: 237 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001869/0.3239, allocations: 125.7 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3239, allocations: 4 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.432e-05/0.3239, allocations: 8 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.3241, allocations: 0 / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003148/0.3244, allocations: 234.1 kB / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.3247, allocations: 0.7041 MB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.86e-05/0.3247, allocations: 4 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.64e-05/0.3247, allocations: 7.438 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3247, allocations: 0 / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of Templates: time 0.00458/0.3293, allocations: 2.132 MB / 1.062 GB, free: 14.71 MB / 0.8262 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","/var/lib/jenkins/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