Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.001347/0.001347, 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.001516/0.001516, allocations: 191.4 kB / 22.23 MB, free: 5.098 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.528/1.528, 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/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180]
"[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Examples/PPD12/Structure.mo:527:21-527:482:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Examples/PPD12/Structure.mo:527:21-527:490:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo.
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.239/1.239, allocations: 177.9 MB / 484.2 MB, free: 5.41 MB / 382.1 MB
"
[Timeout remaining time 178]
Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d")
translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 72.59 kB / 0.674 GB, free: 10.85 MB / 0.4981 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.6551/0.6572, allocations: 95.17 MB / 0.7669 GB, free: 7.992 MB / 0.5762 GB
Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001891/0.6591, allocations: 0.515 MB / 0.7674 GB, free: 7.812 MB / 0.5762 GB
Notification: Performance of NFInst.instExpressions: time 0.002518/0.6616, allocations: 1.637 MB / 0.769 GB, free: 6.844 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 3.334e-05/0.6617, allocations: 1.188 kB / 0.769 GB, free: 6.844 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.6618, allocations: 22.81 kB / 0.769 GB, free: 6.84 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 2.492e-05/0.6619, allocations: 6.375 kB / 0.769 GB, free: 6.84 MB / 0.5762 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/IDEAS 3.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.0009824/0.6628, allocations: 271.5 kB / 0.7693 GB, free: 6.727 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 8.188e-05/0.6629, allocations: 16 kB / 0.7693 GB, free: 6.727 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.663, allocations: 6.078 kB / 0.7693 GB, free: 6.723 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 3.689e-05/0.663, allocations: 22.75 kB / 0.7693 GB, free: 6.711 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 4.758e-05/0.6631, allocations: 13.78 kB / 0.7693 GB, free: 6.711 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.6631, allocations: 1.156 kB / 0.7693 GB, free: 6.711 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007437/0.6638, allocations: 457.6 kB / 0.7698 GB, free: 6.566 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.6639, allocations: 24.91 kB / 0.7698 GB, free: 6.555 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 2.991e-05/0.6639, allocations: 20.83 kB / 0.7698 GB, free: 6.539 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.6644, allocations: 289.8 kB / 0.7701 GB, free: 6.465 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6644, allocations: 0 / 0.7701 GB, free: 6.465 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.613e-06/0.6644, allocations: 1.062 kB / 0.7701 GB, free: 6.465 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 1.283e-05/0.6644, allocations: 0 / 0.7701 GB, free: 6.465 MB / 0.5762 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.0004047/0.6648, allocations: 328.2 kB / 0.7704 GB, free: 6.156 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.6648, allocations: 9.062 kB / 0.7704 GB, free: 6.156 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.6649, allocations: 8.141 kB / 0.7704 GB, free: 6.152 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.665, allocations: 137.2 kB / 0.7706 GB, free: 6.004 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-06/0.665, allocations: 4.312 kB / 0.7706 GB, free: 6 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.665, allocations: 1.062 kB / 0.7706 GB, free: 6 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.995e-05/0.6651, allocations: 40.11 kB / 0.7706 GB, free: 5.965 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.6651, allocations: 0 / 0.7706 GB, free: 5.965 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.6651, allocations: 0 / 0.7706 GB, free: 5.965 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.6652, allocations: 3.938 kB / 0.7706 GB, free: 5.961 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.067e-05/0.6652, allocations: 16.78 kB / 0.7706 GB, free: 5.961 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.6653, allocations: 142.7 kB / 0.7708 GB, free: 5.801 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 5.839e-05/0.6654, allocations: 30.61 kB / 0.7708 GB, free: 5.77 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 2.607e-05/0.6654, allocations: 14.91 kB / 0.7708 GB, free: 5.762 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.6654, allocations: 12.19 kB / 0.7708 GB, free: 5.754 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.6655, allocations: 35.28 kB / 0.7708 GB, free: 5.711 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.6655, allocations: 0 / 0.7708 GB, free: 5.711 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=1): time 0.0001488/0.6656, allocations: 64.05 kB / 0.7709 GB, free: 5.672 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.6656, allocations: 56.78 kB / 0.771 GB, free: 5.605 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.6658, allocations: 171.5 kB / 0.7711 GB, free: 5.488 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 7.494e-06/0.6658, allocations: 25.7 kB / 0.7711 GB, free: 5.457 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.6658, allocations: 99.53 kB / 0.7712 GB, free: 5.363 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 9.026e-06/0.6658, allocations: 0 / 0.7712 GB, free: 5.363 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.6659, allocations: 26.16 kB / 0.7713 GB, free: 5.344 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 6e-05/0.6659, allocations: 324.3 kB / 0.7716 GB, free: 5.023 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 6.019e-05/0.666, allocations: 44.44 kB / 0.7716 GB, free: 5.016 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.027e-05/0.666, allocations: 43.3 kB / 0.7717 GB, free: 5.004 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 8.849e-05/0.6661, allocations: 79.61 kB / 0.7717 GB, free: 4.973 MB / 0.5762 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.6661, allocations: 0 / 0.7717 GB, free: 4.973 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001494/0.6663, allocations: 126.9 kB / 0.7719 GB, free: 4.922 MB / 0.5762 GB
Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.6663, allocations: 11.41 kB / 0.7719 GB, free: 4.918 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.6663, allocations: 1.594 kB / 0.7719 GB, free: 4.918 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.6663, allocations: 0.9062 kB / 0.7719 GB, free: 4.918 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.227e-05/0.6663, allocations: 0 / 0.7719 GB, free: 4.918 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.6663, allocations: 3.328 kB / 0.7719 GB, free: 4.918 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.466e-05/0.6664, allocations: 9.484 kB / 0.7719 GB, free: 4.91 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.6664, allocations: 5.844 kB / 0.7719 GB, free: 4.906 MB / 0.5762 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.0001279/0.6665, allocations: 123.5 kB / 0.772 GB, free: 4.789 MB / 0.5762 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.6665, allocations: 13.78 kB / 0.772 GB, free: 4.781 MB / 0.5762 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.6666, allocations: 60.23 kB / 0.7721 GB, free: 4.734 MB / 0.5762 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.6666, allocations: 4.922 kB / 0.7721 GB, free: 4.73 MB / 0.5762 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6666, allocations: 0 / 0.7721 GB, free: 4.73 MB / 0.5762 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.6666, allocations: 0.7812 kB / 0.7721 GB, free: 4.73 MB / 0.5762 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.787e-05/0.6667, allocations: 142.1 kB / 0.7722 GB, free: 4.57 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6667, allocations: 4.031 kB / 0.7722 GB, free: 4.566 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.12e-06/0.6667, allocations: 0 / 0.7722 GB, free: 4.566 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.6667, allocations: 4.5 kB / 0.7722 GB, free: 4.562 MB / 0.5762 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.6667, allocations: 1 kB / 0.7722 GB, free: 4.562 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.6667, allocations: 0 / 0.7722 GB, free: 4.562 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6667, allocations: 1.594 kB / 0.7722 GB, free: 4.562 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 8.264e-05/0.6668, allocations: 81.06 kB / 0.7723 GB, free: 4.488 MB / 0.5762 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.6668, allocations: 10.23 kB / 0.7723 GB, free: 4.48 MB / 0.5762 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.6668, allocations: 5.781 kB / 0.7723 GB, free: 4.477 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.193e-05/0.6669, allocations: 0.5938 kB / 0.7723 GB, free: 4.477 MB / 0.5762 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.305e-05/0.6669, allocations: 2.891 kB / 0.7723 GB, free: 4.477 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.6669, allocations: 0 / 0.7723 GB, free: 4.477 MB / 0.5762 GB
Notification: Performance of sorting global known variables: time 7.552e-05/0.667, allocations: 122.7 kB / 0.7724 GB, free: 4.391 MB / 0.5762 GB
Notification: Performance of sort global known variables: time 6e-08/0.667, allocations: 1.125 kB / 0.7724 GB, free: 4.391 MB / 0.5762 GB
Notification: Performance of remove unused functions: time 0.0003568/0.6673, allocations: 84.38 kB / 0.7725 GB, free: 4.379 MB / 0.5762 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.000554/0.6679, allocations: 232 kB / 0.7727 GB, free: 4.246 MB / 0.5762 GB
Notification: Performance of simCode: created initialization part: time 0.0001974/0.6681, allocations: 92.45 kB / 0.7728 GB, free: 4.207 MB / 0.5762 GB
Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.6681, allocations: 0 / 0.7728 GB, free: 4.207 MB / 0.5762 GB
Notification: Performance of simCode: created simulation system equations: time 1.734e-05/0.6681, allocations: 9.438 kB / 0.7728 GB, free: 4.207 MB / 0.5762 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.6682, allocations: 4.938 kB / 0.7728 GB, free: 4.203 MB / 0.5762 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002773/0.6685, allocations: 168.8 kB / 0.773 GB, free: 4.07 MB / 0.5762 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.6686, allocations: 0.695 MB / 0.7737 GB, free: 3.371 MB / 0.5762 GB
Notification: Performance of simCode: alias equations: time 2.002e-05/0.6686, allocations: 9.016 kB / 0.7737 GB, free: 3.363 MB / 0.5762 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.368e-05/0.6686, allocations: 8.781 kB / 0.7737 GB, free: 3.355 MB / 0.5762 GB
Notification: Performance of SimCode: time 2.81e-07/0.6686, allocations: 0.9062 kB / 0.7737 GB, free: 3.355 MB / 0.5762 GB
Notification: Performance of Templates: time 0.006072/0.6747, allocations: 2.086 MB / 0.7757 GB, free: 3.184 MB / 0.5762 GB
"
[Timeout remaining time 659]
make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660]
(rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d  -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 6.740933419205248]
Failed to read output from testmodel.py, exit status != 0:
0.6841992950066924 0.6987965509999999 0.030833641000000002
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f931bbf97b0>