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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001075/0.001075, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001087/0.001087, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.964/2.964, allocations: 472.6 MB / 0.7447 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.19 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3224, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001826/0.3242, allocations: 0.5715 MB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002107/0.3264, allocations: 1.64 MB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.961e-05/0.3264, allocations: 3.938 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.3266, allocations: 63.89 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.353e-05/0.3266, allocations: 23.97 kB / 1.07 GB, free: 8.516 MB / 0.8262 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.3273, allocations: 199.5 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.177e-05/0.3274, allocations: 35.95 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.118e-05/0.3275, allocations: 7.938 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.363e-05/0.3275, allocations: 15.92 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.5e-05/0.3276, allocations: 39.94 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.3276, allocations: 4 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004286/0.328, allocations: 275.5 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.934e-05/0.3281, allocations: 23.92 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.333e-05/0.3281, allocations: 31.69 kB / 1.07 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.3285, allocations: 279.4 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3285, allocations: 0 / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3285, allocations: 4 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.3286, allocations: 0 / 1.071 GB, free: 7.617 MB / 0.8262 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.0004554/0.329, allocations: 435.1 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3291, allocations: 12.03 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.3291, allocations: 8.844 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.3293, allocations: 188.1 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-06/0.3293, allocations: 384 / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.998e-06/0.3293, allocations: 4.375 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.23e-05/0.3294, allocations: 46 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.3294, allocations: 4 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.3294, allocations: 0 / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3294, allocations: 0 / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.069e-05/0.3295, allocations: 19.98 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001784/0.3296, allocations: 181.6 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.409e-05/0.3297, allocations: 30.5 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.026e-05/0.3297, allocations: 16.92 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.3298, allocations: 11.98 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.3298, allocations: 34.5 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3298, allocations: 0 / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.33, allocations: 73.48 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.33, allocations: 55.34 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.3302, allocations: 215.6 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.3302, allocations: 29.7 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.94e-05/0.3303, allocations: 104.1 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.3303, allocations: 4 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.3304, allocations: 25.7 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3305, allocations: 330.8 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.716e-05/0.3306, allocations: 47.98 kB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.185e-05/0.3306, allocations: 55.97 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.517e-05/0.3307, allocations: 94.33 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3307, allocations: 4.031 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001956/0.3309, allocations: 165.4 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3309, allocations: 7.938 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.331, allocations: 3.938 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.331, allocations: 3.938 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.526e-05/0.331, allocations: 4 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.82e-06/0.331, allocations: 0 / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.507e-05/0.331, allocations: 7.844 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3311, allocations: 4 kB / 1.073 GB, free: 5.215 MB / 0.8262 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.0001485/0.3312, allocations: 141.8 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.633e-05/0.3312, allocations: 15.75 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.3313, allocations: 58.25 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3313, allocations: 4 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3314, allocations: 0 / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3314, allocations: 0 / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.3315, allocations: 181.6 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3315, allocations: 0 / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.793e-06/0.3315, allocations: 3.938 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3315, allocations: 7.969 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.3315, allocations: 0 / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3315, allocations: 0 / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3315, allocations: 0 / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.423e-05/0.3316, allocations: 84.97 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.3317, allocations: 96.84 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.3317, allocations: 0 / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.482e-05/0.3317, allocations: 8.031 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.501e-05/0.3318, allocations: 0 / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3318, allocations: 0 / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001235/0.3319, allocations: 160.1 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3319, allocations: 0 / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003147/0.3322, allocations: 83.98 kB / 1.074 GB, free: 4.289 MB / 0.8262 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.0005009/0.3327, allocations: 226.4 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001829/0.3329, allocations: 129.6 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3329, allocations: 4 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.58e-05/0.333, allocations: 8 kB / 1.074 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.3331, allocations: 7.922 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003348/0.3335, allocations: 227.9 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.3337, allocations: 0.7043 MB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.115e-05/0.3338, allocations: 4 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.406e-05/0.3338, allocations: 7.438 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.3338, allocations: 4 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of Templates: time 0.00514/0.3389, allocations: 2.109 MB / 1.077 GB, free: 0.8203 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