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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 116.4 kB / 17.08 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 187.7 kB / 20.02 MB, free: 3.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 245.7 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 489.3 MB / 0.7687 GB, free: 3.77 MB / 0.6075 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 67.89 kB / 1.103 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.943/0.945, allocations: 163.8 MB / 1.263 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001578/0.9466, allocations: 0.5288 MB / 1.263 GB, free: 7.664 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001959/0.9486, allocations: 1.601 MB / 1.265 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.378e-05/0.9487, allocations: 4.656 kB / 1.265 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.9489, allocations: 57.55 kB / 1.265 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.374e-05/0.9489, allocations: 31.94 kB / 1.265 GB, free: 6.523 MB / 0.9981 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.0008397/0.9498, allocations: 242.4 kB / 1.265 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.846e-05/0.9499, allocations: 38.45 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.9499, allocations: 5.984 kB / 1.265 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.225e-05/0.95, allocations: 22.38 kB / 1.265 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.096e-05/0.95, allocations: 37.64 kB / 1.265 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.95, allocations: 0 / 1.265 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000601/0.9507, allocations: 336.3 kB / 1.265 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.583e-05/0.9507, allocations: 34.75 kB / 1.265 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.077e-05/0.9508, allocations: 26.14 kB / 1.265 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004477/0.9512, allocations: 286 kB / 1.266 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.9512, allocations: 0 / 1.266 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9512, allocations: 4.719 kB / 1.266 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.76e-06/0.9512, allocations: 3.938 kB / 1.266 GB, free: 6.184 MB / 0.9981 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.000407/0.9516, allocations: 439.4 kB / 1.266 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.9517, allocations: 9.625 kB / 1.266 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.9517, allocations: 9.891 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.9519, allocations: 192.5 kB / 1.266 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.9519, allocations: 1.344 kB / 1.266 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.817e-06/0.9519, allocations: 5.281 kB / 1.266 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.144e-05/0.952, allocations: 41.28 kB / 1.266 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.952, allocations: 4 kB / 1.266 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.952, allocations: 0.9062 kB / 1.266 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.952, allocations: 3.984 kB / 1.266 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.89e-05/0.9521, allocations: 18.66 kB / 1.266 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.9522, allocations: 189.9 kB / 1.267 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.504e-05/0.9523, allocations: 26.03 kB / 1.267 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.517e-05/0.9523, allocations: 23.27 kB / 1.267 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.598e-05/0.9524, allocations: 10.12 kB / 1.267 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.612e-05/0.9524, allocations: 35.41 kB / 1.267 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.9524, allocations: 3.938 kB / 1.267 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.9526, allocations: 64.91 kB / 1.267 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.9526, allocations: 51.97 kB / 1.267 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.9528, allocations: 211.4 kB / 1.267 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.652e-06/0.9528, allocations: 26.67 kB / 1.267 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.9529, allocations: 109.5 kB / 1.267 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.9529, allocations: 4 kB / 1.267 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.9529, allocations: 34.05 kB / 1.267 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.953, allocations: 322.2 kB / 1.267 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.134e-05/0.9531, allocations: 58.14 kB / 1.268 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.421e-05/0.9531, allocations: 55.14 kB / 1.268 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.9533, allocations: 98.05 kB / 1.268 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.9533, allocations: 0 / 1.268 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001932/0.9535, allocations: 162.9 kB / 1.268 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.9535, allocations: 17.03 kB / 1.268 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.9535, allocations: 1.469 kB / 1.268 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.9535, allocations: 1.234 kB / 1.268 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.348e-05/0.9536, allocations: 1.438 kB / 1.268 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.9536, allocations: 0 / 1.268 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.635e-05/0.9536, allocations: 10.11 kB / 1.268 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.9536, allocations: 2.016 kB / 1.268 GB, free: 4.359 MB / 0.9981 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.0001291/0.9537, allocations: 132.6 kB / 1.268 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.9538, allocations: 19.66 kB / 1.268 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.9539, allocations: 68.86 kB / 1.268 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.9539, allocations: 0 / 1.268 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.9539, allocations: 0.9688 kB / 1.268 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.9539, allocations: 0 / 1.268 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.528e-05/0.954, allocations: 182.5 kB / 1.268 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.954, allocations: 0 / 1.268 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-06/0.954, allocations: 2.125 kB / 1.268 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.954, allocations: 3.938 kB / 1.268 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.892e-06/0.954, allocations: 0.75 kB / 1.268 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.954, allocations: 8.625 kB / 1.268 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.9541, allocations: 0.7188 kB / 1.268 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.42e-05/0.9541, allocations: 80.64 kB / 1.268 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.9542, allocations: 93.39 kB / 1.268 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.9542, allocations: 0.5938 kB / 1.268 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.45e-05/0.9542, allocations: 4.844 kB / 1.268 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.194e-05/0.9542, allocations: 1.578 kB / 1.268 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-06/0.9542, allocations: 4.812 kB / 1.268 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000112/0.9543, allocations: 146 kB / 1.269 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9544, allocations: 0 / 1.269 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004007/0.9548, allocations: 92.5 kB / 1.269 GB, free: 3.684 MB / 0.9981 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.000528/0.9553, allocations: 224.9 kB / 1.269 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002012/0.9555, allocations: 128.5 kB / 1.269 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9555, allocations: 0.8438 kB / 1.269 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.861e-05/0.9555, allocations: 10.92 kB / 1.269 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.9557, allocations: 10.39 kB / 1.269 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003132/0.956, allocations: 235.6 kB / 1.269 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.9561, allocations: 0.703 MB / 1.27 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.528e-05/0.9562, allocations: 13.09 kB / 1.27 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.9562, allocations: 0 / 1.27 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of Templates: time 0.005123/0.9613, allocations: 2.375 MB / 1.272 GB, free: 2.406 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.802763864863664]