Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001765/0.001765, allocations: 112.7 kB / 18.94 MB, free: 2.93 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.002094/0.002094, allocations: 190 kB / 22.22 MB, free: 5.105 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.548/1.548, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.808/2.808, allocations: 476.7 MB / 0.7646 GB, free: 9.895 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 75.89 kB / 1.109 GB, free: 6.391 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.7855/0.7878, allocations: 168.8 MB / 1.274 GB, free: 4.211 MB / 0.9669 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001942/0.7897, allocations: 0.5228 MB / 1.275 GB, free: 3.691 MB / 0.9669 GB
Notification: Performance of NFInst.instExpressions: time 0.002706/0.7924, allocations: 1.627 MB / 1.276 GB, free: 2.047 MB / 0.9669 GB
Notification: Performance of NFInst.updateImplicitVariability: time 3.954e-05/0.7925, allocations: 3.938 kB / 1.276 GB, free: 2.043 MB / 0.9669 GB
Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.7927, allocations: 59.84 kB / 1.276 GB, free: 1.984 MB / 0.9669 GB
Notification: Performance of NFTyping.typeBindings: time 4.464e-05/0.7927, allocations: 31.89 kB / 1.277 GB, free: 1.953 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.1.1-maint.11.x/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.001113/0.7938, allocations: 262.7 kB / 1.277 GB, free: 1.699 MB / 0.9669 GB
Notification: Performance of NFFlatten.flatten: time 0.0001096/0.7939, allocations: 47.83 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.845e-05/0.794, allocations: 3.984 kB / 1.277 GB, free: 1.648 MB / 0.9669 GB
Notification: Performance of NFEvalConstants.evaluate: time 5.916e-05/0.794, allocations: 15.98 kB / 1.277 GB, free: 1.633 MB / 0.9669 GB
Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.7941, allocations: 47.88 kB / 1.277 GB, free: 1.586 MB / 0.9669 GB
Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.7941, allocations: 0 / 1.277 GB, free: 1.586 MB / 0.9669 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0008816/0.795, allocations: 467.1 kB / 1.277 GB, free: 1.129 MB / 0.9669 GB
Notification: Performance of NFScalarize.scalarize: time 7.098e-05/0.7951, allocations: 27.92 kB / 1.277 GB, free: 1.102 MB / 0.9669 GB
Notification: Performance of NFVerifyModel.verify: time 3.615e-05/0.7951, allocations: 19.75 kB / 1.277 GB, free: 1.082 MB / 0.9669 GB
Notification: Performance of NFConvertDAE.convert: time 0.0005337/0.7957, allocations: 301.5 kB / 1.278 GB, free: 0.793 MB / 0.9669 GB
Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.7957, allocations: 4 kB / 1.278 GB, free: 0.7891 MB / 0.9669 GB
Notification: Performance of FrontEnd: time 1.734e-06/0.7957, allocations: 0 / 1.278 GB, free: 0.7891 MB / 0.9669 GB
Notification: Performance of Transformations before backend: time 6.803e-06/0.7957, allocations: 0 / 1.278 GB, free: 0.7891 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.0005405/0.7962, allocations: 361.3 kB / 1.278 GB, free: 416 kB / 0.9669 GB
Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.7963, allocations: 11.97 kB / 1.278 GB, free: 404 kB / 0.9669 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.436e-05/0.7963, allocations: 12.84 kB / 1.278 GB, free: 392 kB / 0.9669 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.7965, allocations: 142.9 kB / 1.278 GB, free: 224 kB / 0.9669 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.7965, allocations: 384 / 1.278 GB, free: 224 kB / 0.9669 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-06/0.7965, allocations: 384 / 1.278 GB, free: 224 kB / 0.9669 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.7966, allocations: 46 kB / 1.278 GB, free: 172 kB / 0.9669 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.7966, allocations: 0 / 1.278 GB, free: 172 kB / 0.9669 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.7966, allocations: 0 / 1.278 GB, free: 172 kB / 0.9669 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.7966, allocations: 4 kB / 1.278 GB, free: 168 kB / 0.9669 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.298e-05/0.7967, allocations: 15.98 kB / 1.278 GB, free: 152 kB / 0.9669 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002223/0.7969, allocations: 156.7 kB / 1.278 GB, free: 15.95 MB / 0.9825 GB
Notification: Performance of preOpt comSubExp (simulation): time 5.926e-05/0.7969, allocations: 30.5 kB / 1.278 GB, free: 15.91 MB / 0.9825 GB
Notification: Performance of preOpt resolveLoops (simulation): time 2.831e-05/0.797, allocations: 12.92 kB / 1.278 GB, free: 15.9 MB / 0.9825 GB
Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.797, allocations: 12 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.797, allocations: 38.5 kB / 1.278 GB, free: 15.84 MB / 0.9825 GB
Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.797, allocations: 0 / 1.278 GB, free: 15.84 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=1): time 0.0001768/0.7972, allocations: 65.62 kB / 1.279 GB, free: 15.77 MB / 0.9825 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.7973, allocations: 59.28 kB / 1.279 GB, free: 15.7 MB / 0.9825 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.7975, allocations: 215.4 kB / 1.279 GB, free: 15.48 MB / 0.9825 GB
Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.7975, allocations: 25.7 kB / 1.279 GB, free: 15.45 MB / 0.9825 GB
Notification: Performance of collectInitialEqns (initialization): time 7.013e-05/0.7976, allocations: 108.2 kB / 1.279 GB, free: 15.34 MB / 0.9825 GB
Notification: Performance of collectInitialBindings (initialization): time 1.09e-05/0.7976, allocations: 0 / 1.279 GB, free: 15.34 MB / 0.9825 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.293e-05/0.7976, allocations: 33.66 kB / 1.279 GB, free: 15.3 MB / 0.9825 GB
Notification: Performance of setup shared object (initialization): time 0.0001428/0.7978, allocations: 322.8 kB / 1.279 GB, free: 14.98 MB / 0.9825 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.565e-05/0.7979, allocations: 55.97 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 6.269e-05/0.7979, allocations: 55.97 kB / 1.279 GB, free: 14.87 MB / 0.9825 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.798, allocations: 99.39 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.798, allocations: 0 / 1.279 GB, free: 14.77 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001963/0.7982, allocations: 149.7 kB / 1.28 GB, free: 14.62 MB / 0.9825 GB
Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.7983, allocations: 19.88 kB / 1.28 GB, free: 14.6 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.7983, allocations: 0 / 1.28 GB, free: 14.6 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.7983, allocations: 0 / 1.28 GB, free: 14.6 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.741e-05/0.7983, allocations: 3.984 kB / 1.28 GB, free: 14.59 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.7983, allocations: 0 / 1.28 GB, free: 14.59 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.212e-05/0.7984, allocations: 27.78 kB / 1.28 GB, free: 14.57 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.7984, allocations: 0 / 1.28 GB, free: 14.57 MB / 0.9825 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.0001978/0.7986, allocations: 129.8 kB / 1.28 GB, free: 14.43 MB / 0.9825 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.204e-05/0.7986, allocations: 15.89 kB / 1.28 GB, free: 14.41 MB / 0.9825 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001323/0.7987, allocations: 62.17 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.7987, allocations: 0 / 1.28 GB, free: 14.34 MB / 0.9825 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.7987, allocations: 0 / 1.28 GB, free: 14.34 MB / 0.9825 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.7987, allocations: 4 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.7989, allocations: 148.7 kB / 1.28 GB, free: 14.15 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7989, allocations: 0 / 1.28 GB, free: 14.15 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-05/0.7989, allocations: 11.92 kB / 1.28 GB, free: 14.14 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.7989, allocations: 3.938 kB / 1.28 GB, free: 14.14 MB / 0.9825 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.7989, allocations: 0 / 1.28 GB, free: 14.14 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.7989, allocations: 4.031 kB / 1.28 GB, free: 14.13 MB / 0.9825 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.7989, allocations: 0 / 1.28 GB, free: 14.13 MB / 0.9825 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.799, allocations: 85.02 kB / 1.28 GB, free: 14.03 MB / 0.9825 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.316e-05/0.799, allocations: 15.84 kB / 1.28 GB, free: 14.02 MB / 0.9825 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.7991, allocations: 0 / 1.28 GB, free: 14.02 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.486e-05/0.7991, allocations: 0 / 1.28 GB, free: 14.02 MB / 0.9825 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.7991, allocations: 7.984 kB / 1.28 GB, free: 14.01 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-06/0.7991, allocations: 4.031 kB / 1.28 GB, free: 14 MB / 0.9825 GB
Notification: Performance of sorting global known variables: time 0.0001294/0.7992, allocations: 148.3 kB / 1.28 GB, free: 13.86 MB / 0.9825 GB
Notification: Performance of sort global known variables: time 7e-08/0.7992, allocations: 0 / 1.28 GB, free: 13.86 MB / 0.9825 GB
Notification: Performance of remove unused functions: time 0.0003656/0.7996, allocations: 87.8 kB / 1.28 GB, free: 13.77 MB / 0.9825 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.00063/0.8002, allocations: 232.2 kB / 1.281 GB, free: 13.55 MB / 0.9825 GB
Notification: Performance of simCode: created initialization part: time 0.0002089/0.8004, allocations: 113.6 kB / 1.281 GB, free: 13.44 MB / 0.9825 GB
Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.8004, allocations: 4 kB / 1.281 GB, free: 13.43 MB / 0.9825 GB
Notification: Performance of simCode: created simulation system equations: time 1.771e-05/0.8005, allocations: 8 kB / 1.281 GB, free: 13.43 MB / 0.9825 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001611/0.8006, allocations: 4 kB / 1.281 GB, free: 13.42 MB / 0.9825 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003673/0.801, allocations: 205.8 kB / 1.281 GB, free: 13.2 MB / 0.9825 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.8013, allocations: 0.7157 MB / 1.282 GB, free: 12.45 MB / 0.9825 GB
Notification: Performance of simCode: alias equations: time 1.981e-05/0.8014, allocations: 4.125 kB / 1.282 GB, free: 12.45 MB / 0.9825 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.867e-05/0.8014, allocations: 7.438 kB / 1.282 GB, free: 12.44 MB / 0.9825 GB
Notification: Performance of SimCode: time 5.11e-07/0.8014, allocations: 0 / 1.282 GB, free: 12.44 MB / 0.9825 GB
Notification: Performance of Templates: time 0.00654/0.8079, allocations: 2.129 MB / 1.284 GB, free: 10.31 MB / 0.9825 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300]
(rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.93798226956278]