Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005122/0.005122, allocations: 100 kB / 15.73 MB, free: 6.062 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.001272/0.001272, allocations: 194.2 kB / 16.68 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.79/2.79, allocations: 469.8 MB / 0.7425 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 75.83 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3111, allocations: 159.1 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001618/0.3127, allocations: 0.5165 MB / 1.221 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.315, allocations: 1.604 MB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.34e-05/0.315, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.3152, allocations: 27.84 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.5e-05/0.3152, allocations: 11.98 kB / 1.223 GB, free: 11.66 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.0009959/0.3162, allocations: 247.3 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.914e-05/0.3163, allocations: 23.84 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.3163, allocations: 4 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.157e-05/0.3164, allocations: 11.98 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.025e-05/0.3164, allocations: 19.92 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.3164, allocations: 4 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005074/0.3169, allocations: 327.5 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.111e-05/0.317, allocations: 23.92 kB / 1.223 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.615e-05/0.317, allocations: 15.81 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.3174, allocations: 279.2 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3174, allocations: 3.938 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3174, allocations: 0 / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.3174, allocations: 0 / 1.224 GB, free: 10.72 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.000418/0.3178, allocations: 414.7 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3178, allocations: 8.031 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.324e-05/0.3179, allocations: 8.891 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.318, allocations: 184.2 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.744e-06/0.318, allocations: 384 / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.318, allocations: 384 / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.527e-05/0.3181, allocations: 45.94 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3181, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.3181, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3182, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.776e-05/0.3182, allocations: 19.98 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.3183, allocations: 177.6 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.79e-05/0.3184, allocations: 30.56 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.872e-05/0.3184, allocations: 8.922 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.3184, allocations: 4 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.3185, allocations: 46.42 kB / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3185, allocations: 0 / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001379/0.3186, allocations: 65.59 kB / 1.225 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.3186, allocations: 55.41 kB / 1.225 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.3188, allocations: 164.5 kB / 1.225 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.3188, allocations: 25.7 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.007e-05/0.3188, allocations: 92.09 kB / 1.225 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.01e-05/0.3188, allocations: 8 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.3189, allocations: 25.7 kB / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.319, allocations: 330.9 kB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.937e-05/0.319, allocations: 39.98 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.3191, allocations: 35.98 kB / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.243e-05/0.3191, allocations: 80.69 kB / 1.225 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3191, allocations: 0 / 1.225 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001348/0.3193, allocations: 129.7 kB / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3193, allocations: 7.938 kB / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.3193, allocations: 0 / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3193, allocations: 0 / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.199e-05/0.3193, allocations: 4 kB / 1.226 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.3193, allocations: 8.047 kB / 1.226 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.268e-05/0.3194, allocations: 7.891 kB / 1.226 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.3194, allocations: 4 kB / 1.226 GB, free: 8.508 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001358/0.3195, allocations: 127.4 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.3195, allocations: 11.89 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.895e-05/0.3196, allocations: 65.48 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3196, allocations: 0 / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3196, allocations: 4.031 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.3196, allocations: 0 / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.3197, allocations: 165.7 kB / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3197, allocations: 0 / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.023e-06/0.3197, allocations: 7.984 kB / 1.226 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3197, allocations: 3.938 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.3197, allocations: 0 / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3197, allocations: 0 / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3197, allocations: 0 / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.166e-05/0.3198, allocations: 85.02 kB / 1.226 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/0.3199, allocations: 85 kB / 1.226 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.3199, allocations: 7.984 kB / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.189e-05/0.3199, allocations: 0 / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.3199, allocations: 0 / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.3199, allocations: 0 / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.326e-05/0.32, allocations: 126.7 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.32, allocations: 0 / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003112/0.3203, allocations: 83.8 kB / 1.226 GB, free: 7.652 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.0004439/0.3207, allocations: 240.3 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001474/0.3209, allocations: 89.67 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3209, allocations: 0 / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.545e-05/0.3209, allocations: 20 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.321, allocations: 8 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002602/0.3213, allocations: 169.1 kB / 1.227 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.3215, allocations: 0.6885 MB / 1.227 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.958e-05/0.3216, allocations: 7.984 kB / 1.227 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.382e-05/0.3216, allocations: 7.438 kB / 1.227 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3216, allocations: 0 / 1.227 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of Templates: time 0.004787/0.3264, allocations: 2.087 MB / 1.229 GB, free: 4.301 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches