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.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_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.001062/0.001062, allocations: 104.7 kB / 15.98 MB, free: 5.891 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.001055/0.001055, allocations: 187.5 kB / 16.91 MB, free: 5.746 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.345/1.345, allocations: 222.9 MB / 240.6 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.849/2.849, allocations: 469.4 MB / 0.7423 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 68.48 kB / 0.9083 GB, free: 34.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3071, allocations: 159.1 MB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002196/0.3093, allocations: 0.5809 MB / 1.064 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002566/0.3119, allocations: 1.608 MB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.959e-05/0.312, allocations: 3.938 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.3122, allocations: 23.89 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.35e-05/0.3123, allocations: 11.98 kB / 1.066 GB, free: 12.7 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‘. [/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.001119/0.3134, allocations: 218.6 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.212e-05/0.3135, allocations: 23.86 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.556e-05/0.3135, allocations: 0 / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.433e-05/0.3136, allocations: 19.97 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.632e-05/0.3136, allocations: 15.92 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.3137, allocations: 0 / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006271/0.3143, allocations: 291.5 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.019e-05/0.3144, allocations: 27.92 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.393e-05/0.3144, allocations: 15.81 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.3148, allocations: 195.7 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3148, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3148, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.3149, allocations: 0 / 1.067 GB, free: 11.91 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.0005848/0.3155, allocations: 407.4 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.3155, allocations: 12.02 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.3156, allocations: 8.844 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.3158, allocations: 184.2 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.3158, allocations: 4.375 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.3158, allocations: 384 / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.3159, allocations: 42 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3159, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.3159, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3159, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.807e-05/0.316, allocations: 19.92 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001948/0.3162, allocations: 173.7 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.281e-05/0.3162, allocations: 30.58 kB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.447e-05/0.3163, allocations: 12.86 kB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.3163, allocations: 7.984 kB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.3164, allocations: 38.5 kB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3164, allocations: 0 / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001679/0.3165, allocations: 61.53 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.3166, allocations: 51.41 kB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.3168, allocations: 172.7 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3168, allocations: 29.7 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.582e-05/0.3168, allocations: 100.1 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.117e-05/0.3169, allocations: 3.938 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.3169, allocations: 21.72 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.317, allocations: 322.8 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.879e-05/0.3171, allocations: 39.98 kB / 1.068 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.232e-05/0.3171, allocations: 39.97 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.748e-05/0.3172, allocations: 72.86 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3173, allocations: 0 / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001667/0.3174, allocations: 133.4 kB / 1.069 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3175, allocations: 7.938 kB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.3175, allocations: 0 / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3175, allocations: 0 / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.659e-05/0.3175, allocations: 4 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.3175, allocations: 0 / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.746e-05/0.3176, allocations: 3.906 kB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.3176, allocations: 4 kB / 1.069 GB, free: 9.723 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: 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.0001841/0.3178, allocations: 129.8 kB / 1.069 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.3178, allocations: 11.84 kB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.3179, allocations: 57.5 kB / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.318, allocations: 0 / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.318, allocations: 7.938 kB / 1.069 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.318, allocations: 0 / 1.069 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.3181, allocations: 173.6 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3181, allocations: 0 / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.416e-06/0.3182, allocations: 8.031 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3182, allocations: 3.938 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.3182, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3182, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3182, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.665e-05/0.3183, allocations: 81.02 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.3184, allocations: 84.95 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.3184, allocations: 4 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.269e-05/0.3184, allocations: 4.031 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.111e-05/0.3184, allocations: 0 / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.3184, allocations: 0 / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.828e-05/0.3185, allocations: 127.8 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4e-07/0.3185, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003643/0.3189, allocations: 80 kB / 1.069 GB, free: 8.863 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.0005933/0.3195, allocations: 230.2 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.3197, allocations: 101.7 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3197, allocations: 0 / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.913e-05/0.3197, allocations: 11.98 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.3199, allocations: 1.719 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003343/0.3202, allocations: 207.1 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.3205, allocations: 0.6924 MB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.3206, allocations: 7.438 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.3206, allocations: 0 / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of Templates: time 0.004937/0.3255, allocations: 2.263 MB / 1.073 GB, free: 5.309 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