Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001326/0.001326, allocations: 113.9 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.001478/0.001478, allocations: 188.8 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.435/1.435, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.124/3.124, allocations: 496 MB / 0.7835 GB, free: 33.47 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 64.02 kB / 1.138 GB, free: 33.82 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3068, allocations: 173.6 MB / 1.307 GB, free: 1.844 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001689/0.3085, allocations: 0.5337 MB / 1.308 GB, free: 1.312 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.002243/0.3107, allocations: 1.638 MB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 3.286e-05/0.3108, allocations: 3.938 kB / 1.309 GB, free: 15.65 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.3109, allocations: 55.91 kB / 1.309 GB, free: 15.6 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 4.158e-05/0.311, allocations: 35.89 kB / 1.309 GB, free: 15.56 MB / 1.014 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'.
Notification: Performance of NFTyping.typeClassSections: time 0.0008977/0.3119, allocations: 286.8 kB / 1.31 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 7.557e-05/0.312, allocations: 31.97 kB / 1.31 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 3.561e-05/0.312, allocations: 0 / 1.31 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 3.907e-05/0.312, allocations: 31.89 kB / 1.31 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.3121, allocations: 47.89 kB / 1.31 GB, free: 15.18 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.3121, allocations: 0 / 1.31 GB, free: 15.18 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007508/0.3129, allocations: 491.1 kB / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 5.487e-05/0.3129, allocations: 23.92 kB / 1.31 GB, free: 14.67 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 3.239e-05/0.313, allocations: 27.73 kB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004233/0.3134, allocations: 311 kB / 1.311 GB, free: 14.34 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3134, allocations: 0 / 1.311 GB, free: 14.34 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.152e-06/0.3134, allocations: 4 kB / 1.311 GB, free: 14.34 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 4.879e-06/0.3134, allocations: 0 / 1.311 GB, free: 14.34 MB / 1.014 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.0004849/0.3139, allocations: 361.3 kB / 1.311 GB, free: 13.95 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3139, allocations: 8.922 kB / 1.311 GB, free: 13.95 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.314, allocations: 8.891 kB / 1.311 GB, free: 13.94 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.3141, allocations: 143.2 kB / 1.311 GB, free: 13.77 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-06/0.3141, allocations: 4.312 kB / 1.311 GB, free: 13.77 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.3141, allocations: 4.359 kB / 1.311 GB, free: 13.77 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.3142, allocations: 42.02 kB / 1.311 GB, free: 13.72 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3143, allocations: 7.984 kB / 1.311 GB, free: 13.71 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.822e-06/0.3143, allocations: 0 / 1.311 GB, free: 13.71 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3143, allocations: 0 / 1.311 GB, free: 13.71 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.336e-05/0.3143, allocations: 19.94 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002021/0.3145, allocations: 160.7 kB / 1.311 GB, free: 13.49 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 5.237e-05/0.3146, allocations: 26.58 kB / 1.311 GB, free: 13.46 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 2.595e-05/0.3146, allocations: 16.91 kB / 1.311 GB, free: 13.44 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.3146, allocations: 8 kB / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.3146, allocations: 38.5 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3146, allocations: 0 / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of matching and sorting (n=1): time 0.0001604/0.3148, allocations: 69.56 kB / 1.312 GB, free: 13.31 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.3148, allocations: 55.41 kB / 1.312 GB, free: 13.24 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.3151, allocations: 215.2 kB / 1.312 GB, free: 13.02 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.3151, allocations: 25.7 kB / 1.312 GB, free: 12.99 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.654e-05/0.3151, allocations: 104.1 kB / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.225e-05/0.3151, allocations: 12.06 kB / 1.312 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.968e-05/0.3152, allocations: 33.7 kB / 1.312 GB, free: 12.83 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001393/0.3153, allocations: 322.8 kB / 1.312 GB, free: 12.51 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.022e-05/0.3154, allocations: 55.97 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.477e-05/0.3155, allocations: 47.98 kB / 1.312 GB, free: 12.41 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.3156, allocations: 93.77 kB / 1.312 GB, free: 12.31 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3156, allocations: 3.984 kB / 1.312 GB, free: 12.31 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001867/0.3158, allocations: 157.5 kB / 1.313 GB, free: 12.15 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.3158, allocations: 8 kB / 1.313 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.3158, allocations: 8 kB / 1.313 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.3158, allocations: 4 kB / 1.313 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.1e-05/0.3158, allocations: 0 / 1.313 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.3158, allocations: 0 / 1.313 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.146e-05/0.3158, allocations: 15.78 kB / 1.313 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.3159, allocations: 4 kB / 1.313 GB, free: 12.11 MB / 1.014 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.0001293/0.316, allocations: 135 kB / 1.313 GB, free: 11.97 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.316, allocations: 11.89 kB / 1.313 GB, free: 11.96 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.3161, allocations: 74.11 kB / 1.313 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3161, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.3161, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3161, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.3163, allocations: 156.7 kB / 1.313 GB, free: 11.68 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3163, allocations: 0 / 1.313 GB, free: 11.68 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.948e-06/0.3163, allocations: 0 / 1.313 GB, free: 11.68 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.3163, allocations: 11.88 kB / 1.313 GB, free: 11.67 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-06/0.3163, allocations: 0 / 1.313 GB, free: 11.67 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3163, allocations: 4 kB / 1.313 GB, free: 11.67 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.3163, allocations: 8.016 kB / 1.313 GB, free: 11.66 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 8.328e-05/0.3164, allocations: 73.08 kB / 1.313 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.3164, allocations: 15.84 kB / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.3164, allocations: 0 / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.691e-05/0.3164, allocations: 8 kB / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.348e-05/0.3164, allocations: 3.938 kB / 1.313 GB, free: 11.54 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.3164, allocations: 0 / 1.313 GB, free: 11.54 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001325/0.3166, allocations: 152.4 kB / 1.313 GB, free: 11.39 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.3166, allocations: 0 / 1.313 GB, free: 11.39 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003054/0.3169, allocations: 87.8 kB / 1.313 GB, free: 11.31 MB / 1.014 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.0005181/0.3174, allocations: 243.7 kB / 1.314 GB, free: 11.08 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0001864/0.3176, allocations: 113.7 kB / 1.314 GB, free: 10.96 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3176, allocations: 0 / 1.314 GB, free: 10.96 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 1.583e-05/0.3176, allocations: 8 kB / 1.314 GB, free: 10.95 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.3177, allocations: 10.09 kB / 1.314 GB, free: 10.95 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/0.318, allocations: 209.9 kB / 1.314 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3184, allocations: 0.7079 MB / 1.315 GB, free: 9.98 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 1.647e-05/0.3184, allocations: 128 / 1.315 GB, free: 9.98 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.86e-05/0.3184, allocations: 19.42 kB / 1.315 GB, free: 9.961 MB / 1.014 GB
Notification: Performance of SimCode: time 3.1e-07/0.3184, allocations: 0 / 1.315 GB, free: 9.961 MB / 1.014 GB
Notification: Performance of Templates: time 0.005521/0.3239, allocations: 2.211 MB / 1.317 GB, free: 7.75 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.785262783057988]