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.007308/0.007308, allocations: 100.5 kB / 15.73 MB, free: 6.453 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.001175/0.001175, allocations: 184.9 kB / 16.67 MB, free: 6.367 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.764/2.764, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.84 kB / 1.054 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2869, allocations: 157.4 MB / 1.208 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001563/0.2885, allocations: 0.5102 MB / 1.208 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002224/0.2908, allocations: 1.614 MB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.322e-05/0.2908, allocations: 4 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.291, allocations: 59.84 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.707e-05/0.2911, allocations: 35.95 kB / 1.21 GB, free: 7.449 MB / 0.9669 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.0009104/0.292, allocations: 235.3 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.271e-05/0.2921, allocations: 39.83 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.531e-05/0.2921, allocations: 7.984 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.83e-05/0.2922, allocations: 19.98 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.952e-05/0.2922, allocations: 39.89 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.2922, allocations: 0 / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005387/0.2928, allocations: 339.5 kB / 1.211 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.2929, allocations: 23.92 kB / 1.211 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.2929, allocations: 23.75 kB / 1.211 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004178/0.2933, allocations: 291.3 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2933, allocations: 0 / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2933, allocations: 4 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2933, allocations: 0 / 1.211 GB, free: 6.445 MB / 0.9669 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.0004909/0.2938, allocations: 430.9 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2939, allocations: 16.56 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.591e-05/0.2939, allocations: 4.844 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.2941, allocations: 200.6 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.2941, allocations: 384 / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.2941, allocations: 384 / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.433e-05/0.2942, allocations: 46 kB / 1.212 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-06/0.2942, allocations: 4 kB / 1.212 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.2943, allocations: 0 / 1.212 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.2943, allocations: 3.938 kB / 1.212 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.167e-05/0.2943, allocations: 19.98 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.2945, allocations: 177.7 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.55e-05/0.2945, allocations: 34.5 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.206e-05/0.2946, allocations: 12.92 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.2946, allocations: 15.91 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.2946, allocations: 38.48 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.2946, allocations: 3.938 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001553/0.2948, allocations: 69.53 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.2948, allocations: 51.41 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.295, allocations: 214.3 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.295, allocations: 25.7 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.2951, allocations: 104.2 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.074e-05/0.2951, allocations: 3.906 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.2952, allocations: 29.7 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2953, allocations: 330.8 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.061e-05/0.2953, allocations: 51.98 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.074e-05/0.2954, allocations: 55.97 kB / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.442e-05/0.2955, allocations: 97.98 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2955, allocations: 0 / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001667/0.2957, allocations: 151.8 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.2957, allocations: 16 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.2957, allocations: 3.984 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2958, allocations: 0 / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-05/0.2958, allocations: 0 / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2958, allocations: 4 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.757e-05/0.2958, allocations: 11.78 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.2958, allocations: 0 / 1.213 GB, free: 4.039 MB / 0.9669 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.0001264/0.296, allocations: 133.8 kB / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.981e-05/0.296, allocations: 15.75 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.2961, allocations: 70.17 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2961, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2961, allocations: 4 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.2961, allocations: 0 / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001221/0.2963, allocations: 181.6 kB / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2963, allocations: 4 kB / 1.213 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-06/0.2963, allocations: 4 kB / 1.213 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2963, allocations: 3.938 kB / 1.213 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.2963, allocations: 0 / 1.213 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2963, allocations: 4.031 kB / 1.213 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2963, allocations: 0 / 1.213 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.516e-05/0.2964, allocations: 84.97 kB / 1.213 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.931e-05/0.2965, allocations: 92.86 kB / 1.214 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.2965, allocations: 3.984 kB / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.466e-05/0.2965, allocations: 0 / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.786e-05/0.2965, allocations: 7.922 kB / 1.214 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.2965, allocations: 4.031 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001151/0.2967, allocations: 156.1 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.31e-07/0.2967, allocations: 0 / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003633/0.297, allocations: 83.98 kB / 1.214 GB, free: 3.105 MB / 0.9669 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.0005132/0.2976, allocations: 225.7 kB / 1.214 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001879/0.2978, allocations: 125.7 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.2978, allocations: 0 / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.559e-05/0.2978, allocations: 12 kB / 1.214 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.2979, allocations: 0 / 1.214 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.2983, allocations: 228.9 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.2986, allocations: 0.7041 MB / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.519e-05/0.2987, allocations: 12.08 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.768e-05/0.2987, allocations: 7.438 kB / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.2987, allocations: 0 / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of Templates: time 0.006045/0.3048, allocations: 2.116 MB / 1.217 GB, free: 15.64 MB / 0.9825 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