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 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_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.001476/0.001476, allocations: 108 kB / 15.61 MB, free: 152 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.001722/0.001722, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.814/2.814, allocations: 472.6 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 64.09 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3294, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001616/0.331, allocations: 0.5076 MB / 1.069 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001954/0.333, allocations: 1.608 MB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.58e-05/0.333, allocations: 3.938 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.3332, allocations: 23.91 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.777e-05/0.3332, allocations: 11.92 kB / 1.07 GB, free: 8.25 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 12.0.0-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.0007867/0.334, allocations: 247.3 kB / 1.071 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.458e-05/0.3341, allocations: 23.91 kB / 1.071 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.934e-05/0.3341, allocations: 4 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.962e-05/0.3342, allocations: 15.97 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.023e-05/0.3342, allocations: 15.92 kB / 1.071 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.3342, allocations: 0 / 1.071 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.3347, allocations: 287.5 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.556e-05/0.3348, allocations: 19.92 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.798e-05/0.3348, allocations: 27.8 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003875/0.3352, allocations: 279.4 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3352, allocations: 0 / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3352, allocations: 0 / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.3352, allocations: 0 / 1.071 GB, free: 7.348 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.0003846/0.3356, allocations: 403.4 kB / 1.072 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.3356, allocations: 8.031 kB / 1.072 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.585e-05/0.3357, allocations: 8.844 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.3358, allocations: 186.6 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.211e-06/0.3358, allocations: 384 / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.3359, allocations: 4.375 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.637e-05/0.336, allocations: 42 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-06/0.336, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-06/0.336, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.336, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.769e-05/0.336, allocations: 15.98 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.3362, allocations: 177.6 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.038e-05/0.3362, allocations: 30.52 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.3363, allocations: 8.922 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.3363, allocations: 7.984 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3363, allocations: 42.5 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3363, allocations: 0 / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001412/0.3365, allocations: 57.59 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3365, allocations: 51.41 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.3367, allocations: 168.7 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.3367, allocations: 37.64 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.3367, allocations: 96.12 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.121e-05/0.3368, allocations: 7.844 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.3368, allocations: 21.72 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3369, allocations: 322.8 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.206e-05/0.337, allocations: 39.98 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.132e-05/0.337, allocations: 39.97 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.114e-05/0.3371, allocations: 76.77 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3371, allocations: 4.031 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000162/0.3373, allocations: 129.6 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3373, allocations: 7.938 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3373, allocations: 0 / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.3374, allocations: 4 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.517e-05/0.3374, allocations: 3.938 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3374, allocations: 0 / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.36e-05/0.3374, allocations: 7.844 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.3374, allocations: 7.984 kB / 1.073 GB, free: 5.152 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.0001439/0.3376, allocations: 125.4 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.3376, allocations: 11.84 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.3377, allocations: 57.56 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.3377, allocations: 0 / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3377, allocations: 0 / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.3378, allocations: 0 / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.3379, allocations: 177.6 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3379, allocations: 0 / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.241e-06/0.3379, allocations: 4 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3379, allocations: 7.969 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.3379, allocations: 0 / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3379, allocations: 3.938 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3379, allocations: 0 / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.944e-05/0.338, allocations: 81.02 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.3381, allocations: 84.95 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3381, allocations: 4 kB / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.3381, allocations: 4.031 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.3381, allocations: 0 / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.3381, allocations: 0 / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.037e-05/0.3382, allocations: 123.2 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3382, allocations: 0 / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003225/0.3385, allocations: 83.98 kB / 1.074 GB, free: 4.297 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.0004488/0.339, allocations: 236.9 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001717/0.3392, allocations: 105.6 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3392, allocations: 0 / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.62e-05/0.3392, allocations: 11.98 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.3394, allocations: 2.469 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002672/0.3396, allocations: 165.5 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3399, allocations: 0.6963 MB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.728e-05/0.3399, allocations: 0 / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.573e-05/0.34, allocations: 11.44 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.34, allocations: 0 / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of Templates: time 0.004736/0.3447, allocations: 2.083 MB / 1.077 GB, free: 0.9531 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/jenkins/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