Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 104.6 kB / 18.84 MB, free: 3.023 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.001444/0.001444, allocations: 190.3 kB / 22.1 MB, free: 4.219 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.466/1.466, allocations: 225.6 MB / 250.8 MB, free: 2.895 MB / 190.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.009/3.009, allocations: 495.8 MB / 0.7831 GB, free: 12.3 MB / 0.6231 GB
"
[Timeout remaining time 176]
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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d")
translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.003245/0.003245, allocations: 71.89 kB / 1.137 GB, free: 12.27 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.9774/0.9806, allocations: 173.6 MB / 1.307 GB, free: 33.81 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001425/0.9821, allocations: 0.5266 MB / 1.307 GB, free: 33.49 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.001598/0.9837, allocations: 1.638 MB / 1.309 GB, free: 32.33 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 2.842e-05/0.9837, allocations: 3.938 kB / 1.309 GB, free: 32.33 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.9838, allocations: 21.62 kB / 1.309 GB, free: 32.32 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 2.166e-05/0.9838, allocations: 14.08 kB / 1.309 GB, free: 32.32 MB / 1.061 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.0007773/0.9846, allocations: 285.3 kB / 1.309 GB, free: 32.2 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 6.078e-05/0.9847, allocations: 19.09 kB / 1.309 GB, free: 32.2 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 3.337e-05/0.9847, allocations: 6.969 kB / 1.309 GB, free: 32.19 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 2.954e-05/0.9847, allocations: 12.92 kB / 1.309 GB, free: 32.19 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 3.59e-05/0.9848, allocations: 19.66 kB / 1.309 GB, free: 32.18 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.9848, allocations: 7.109 kB / 1.309 GB, free: 32.18 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0005563/0.9854, allocations: 489.5 kB / 1.31 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 4.224e-05/0.9854, allocations: 15.52 kB / 1.31 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.9854, allocations: 17.66 kB / 1.31 GB, free: 32 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003163/0.9857, allocations: 298.5 kB / 1.31 GB, free: 31.92 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.9857, allocations: 0 / 1.31 GB, free: 31.92 MB / 1.061 GB
Notification: Performance of FrontEnd: time 1.292e-06/0.9857, allocations: 0 / 1.31 GB, free: 31.92 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 5.04e-06/0.9857, allocations: 0 / 1.31 GB, free: 31.92 MB / 1.061 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.0003227/0.9861, allocations: 343.5 kB / 1.31 GB, free: 31.6 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.9861, allocations: 10.62 kB / 1.31 GB, free: 31.6 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.9861, allocations: 11.83 kB / 1.31 GB, free: 31.59 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.9862, allocations: 119.5 kB / 1.31 GB, free: 31.46 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.9862, allocations: 3.312 kB / 1.31 GB, free: 31.46 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.9863, allocations: 384 / 1.31 GB, free: 31.46 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 8.084e-05/0.9863, allocations: 39.03 kB / 1.31 GB, free: 31.42 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.9863, allocations: 2.875 kB / 1.31 GB, free: 31.42 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.9864, allocations: 0 / 1.31 GB, free: 31.42 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-06/0.9864, allocations: 0 / 1.31 GB, free: 31.42 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.498e-05/0.9864, allocations: 19.19 kB / 1.311 GB, free: 31.42 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001151/0.9865, allocations: 150.2 kB / 1.311 GB, free: 31.25 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 3.652e-05/0.9865, allocations: 24.14 kB / 1.311 GB, free: 31.23 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 1.684e-05/0.9865, allocations: 14.06 kB / 1.311 GB, free: 31.22 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.9866, allocations: 5.781 kB / 1.311 GB, free: 31.22 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.9866, allocations: 34.5 kB / 1.311 GB, free: 31.18 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.9866, allocations: 3.938 kB / 1.311 GB, free: 31.17 MB / 1.061 GB
Notification: Performance of matching and sorting (n=1): time 0.0001252/0.9867, allocations: 73.41 kB / 1.311 GB, free: 31.12 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 2.219e-05/0.9867, allocations: 55.41 kB / 1.311 GB, free: 31.06 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.9868, allocations: 173.7 kB / 1.311 GB, free: 30.94 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 6.913e-06/0.9869, allocations: 25.7 kB / 1.311 GB, free: 30.91 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 3.191e-05/0.9869, allocations: 94.72 kB / 1.311 GB, free: 30.82 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 9.197e-06/0.9869, allocations: 6.719 kB / 1.311 GB, free: 30.81 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.9869, allocations: 25.45 kB / 1.311 GB, free: 30.79 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 4.151e-05/0.987, allocations: 325 kB / 1.311 GB, free: 30.47 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.349e-05/0.987, allocations: 43.73 kB / 1.312 GB, free: 30.46 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.281e-05/0.987, allocations: 36.08 kB / 1.312 GB, free: 30.46 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 6.276e-05/0.9871, allocations: 71.69 kB / 1.312 GB, free: 30.44 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9871, allocations: 0 / 1.312 GB, free: 30.44 MB / 1.061 GB
Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001123/0.9872, allocations: 128.1 kB / 1.312 GB, free: 30.39 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.9872, allocations: 6.844 kB / 1.312 GB, free: 30.38 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.9872, allocations: 2.938 kB / 1.312 GB, free: 30.38 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.9873, allocations: 0 / 1.312 GB, free: 30.38 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.155e-05/0.9873, allocations: 3.281 kB / 1.312 GB, free: 30.38 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.9873, allocations: 0 / 1.312 GB, free: 30.38 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/0.9873, allocations: 10.98 kB / 1.312 GB, free: 30.38 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.9873, allocations: 0 / 1.312 GB, free: 30.38 MB / 1.061 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 7.839e-05/0.9874, allocations: 128.4 kB / 1.312 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.072e-05/0.9874, allocations: 10.86 kB / 1.312 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.965e-05/0.9875, allocations: 64.38 kB / 1.312 GB, free: 30.2 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.9875, allocations: 0 / 1.312 GB, free: 30.2 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.9875, allocations: 0 / 1.312 GB, free: 30.2 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.9875, allocations: 0 / 1.312 GB, free: 30.2 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.986e-05/0.9875, allocations: 145.8 kB / 1.312 GB, free: 30.04 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.9875, allocations: 3.938 kB / 1.312 GB, free: 30.03 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.519e-06/0.9876, allocations: 4 kB / 1.312 GB, free: 30.03 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.9876, allocations: 6.781 kB / 1.312 GB, free: 30.02 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.939e-06/0.9876, allocations: 0 / 1.312 GB, free: 30.02 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.9876, allocations: 0 / 1.312 GB, free: 30.02 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.9876, allocations: 0 / 1.312 GB, free: 30.02 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 5.57e-05/0.9876, allocations: 84.78 kB / 1.312 GB, free: 29.95 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.207e-06/0.9876, allocations: 14.64 kB / 1.312 GB, free: 29.94 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.9876, allocations: 0 / 1.312 GB, free: 29.94 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.18e-05/0.9876, allocations: 0 / 1.312 GB, free: 29.94 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-06/0.9877, allocations: 4 kB / 1.312 GB, free: 29.93 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.9877, allocations: 0 / 1.312 GB, free: 29.93 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 5.352e-05/0.9877, allocations: 122.2 kB / 1.312 GB, free: 29.85 MB / 1.061 GB
Notification: Performance of sort global known variables: time 8e-08/0.9877, allocations: 0 / 1.312 GB, free: 29.85 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0002831/0.988, allocations: 90.16 kB / 1.312 GB, free: 29.84 MB / 1.061 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.0004585/0.9885, allocations: 230.5 kB / 1.313 GB, free: 29.71 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.0001285/0.9886, allocations: 89.89 kB / 1.313 GB, free: 29.67 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.9886, allocations: 0 / 1.313 GB, free: 29.67 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 1.323e-05/0.9886, allocations: 11.69 kB / 1.313 GB, free: 29.67 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.9887, allocations: 6.594 kB / 1.313 GB, free: 29.67 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002056/0.9889, allocations: 165.6 kB / 1.313 GB, free: 29.54 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001/0.989, allocations: 0.6939 MB / 1.314 GB, free: 28.84 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 1.771e-05/0.9891, allocations: 6.469 kB / 1.314 GB, free: 28.84 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.299e-05/0.9891, allocations: 7.438 kB / 1.314 GB, free: 28.83 MB / 1.061 GB
Notification: Performance of SimCode: time 3.01e-07/0.9891, allocations: 0 / 1.314 GB, free: 28.83 MB / 1.061 GB
Notification: Performance of Templates: time 0.004603/0.9937, allocations: 2.197 MB / 1.316 GB, free: 28.63 MB / 1.061 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.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: 9.103433333337307]