Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_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.0008283/0.0008286, allocations: 92.16 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009421/0.000942, allocations: 182.9 kB / 16.92 MB, free: 6.926 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.391/1.391, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.659/2.659, allocations: 462.6 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004015, allocations: 9.609 kB / 0.9034 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3366, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0006883/0.3374, allocations: 250.2 kB / 1.06 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002417/0.3398, allocations: 1.622 MB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.3399, allocations: 4 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.34, allocations: 15.97 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.821e-05/0.3401, allocations: 15.92 kB / 1.061 GB, free: 3.082 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008755/0.3409, allocations: 195.6 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.191e-05/0.341, allocations: 27.91 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.506e-05/0.3411, allocations: 3.938 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.517e-05/0.3411, allocations: 15.98 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.3412, allocations: 11.94 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.3412, allocations: 0 / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005738/0.3418, allocations: 283.6 kB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.927e-05/0.3419, allocations: 15.92 kB / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.174e-05/0.3419, allocations: 45.52 kB / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.3422, allocations: 191.7 kB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3423, allocations: 0 / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3423, allocations: 0 / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.3423, allocations: 0 / 1.062 GB, free: 2.301 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.0004485/0.3427, allocations: 403.5 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3428, allocations: 11.97 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.3428, allocations: 8.844 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.343, allocations: 180.2 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.343, allocations: 4.375 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.343, allocations: 384 / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.3431, allocations: 45.94 kB / 1.063 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.3432, allocations: 0 / 1.063 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.3432, allocations: 0 / 1.063 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.3432, allocations: 4 kB / 1.063 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.157e-05/0.3432, allocations: 15.98 kB / 1.063 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002026/0.3434, allocations: 173.6 kB / 1.063 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.102e-05/0.3435, allocations: 26.56 kB / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.73e-05/0.3435, allocations: 16.86 kB / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.3435, allocations: 11.92 kB / 1.063 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3436, allocations: 46.44 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3436, allocations: 0 / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001543/0.3437, allocations: 57.59 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.3438, allocations: 55.41 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.3439, allocations: 166.5 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.344, allocations: 25.7 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.344, allocations: 96.03 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.323e-05/0.3441, allocations: 4 kB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-05/0.3441, allocations: 17.72 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3442, allocations: 327 kB / 1.064 GB, free: 440 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.178e-05/0.3443, allocations: 43.92 kB / 1.064 GB, free: 396 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.984e-05/0.3443, allocations: 35.98 kB / 1.064 GB, free: 360 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.971e-05/0.3444, allocations: 72.81 kB / 1.064 GB, free: 284 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3444, allocations: 0 / 1.064 GB, free: 284 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001487/0.3446, allocations: 129.5 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.3446, allocations: 7.938 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3446, allocations: 0 / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3446, allocations: 0 / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.833e-05/0.3446, allocations: 12.06 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3446, allocations: 0 / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.3447, allocations: 3.906 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.3447, allocations: 0 / 1.064 GB, free: 124 kB / 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: 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.0001632/0.3449, allocations: 129.8 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.3449, allocations: 11.84 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.901e-05/0.345, allocations: 57.55 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.345, allocations: 4.031 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.345, allocations: 0 / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.345, allocations: 3.938 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.3451, allocations: 173.6 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3451, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-06/0.3452, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3452, allocations: 7.938 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.3452, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3452, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3452, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.206e-05/0.3453, allocations: 84.97 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-05/0.3453, allocations: 84.95 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.3454, allocations: 4 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.411e-05/0.3454, allocations: 3.984 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.648e-06/0.3454, allocations: 0 / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.3454, allocations: 3.984 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.937e-05/0.3455, allocations: 119.2 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3455, allocations: 3.938 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003389/0.3458, allocations: 88.02 kB / 1.065 GB, free: 15.25 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.0005049/0.3463, allocations: 222 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001526/0.3465, allocations: 101.7 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3465, allocations: 4.062 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.311e-05/0.3465, allocations: 11.94 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.3467, allocations: 0 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003112/0.347, allocations: 204.7 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.3473, allocations: 0.6927 MB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.793e-05/0.3473, allocations: 15.44 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3473, allocations: 3.938 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of Templates: time 0.004617/0.352, allocations: 2.228 MB / 1.068 GB, free: 11.72 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches