Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009406/0.0009406, allocations: 173.3 kB / 23.49 MB, free: 1.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.029/1.029, allocations: 177.1 MB / 203.8 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7822/0.7822, allocations: 154.8 MB / 415.1 MB, free: 0.5 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 0.5205 GB, free: 2.344 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.921e-05, allocations: 6.109 kB / 0.5205 GB, free: 2.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001023/0.001042, allocations: 0.5221 MB / 0.521 GB, free: 1.84 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.002703, allocations: 1.643 MB / 0.5226 GB, free: 188 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.099e-05/0.002744, allocations: 0 / 0.5226 GB, free: 188 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.002911, allocations: 69.52 kB / 0.5227 GB, free: 120 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.563e-05/0.002937, allocations: 27.95 kB / 0.5227 GB, free: 92 kB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0007207/0.003657, allocations: 281.1 kB / 0.523 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 6.697e-05/0.003724, allocations: 33.31 kB / 0.523 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.4e-05/0.003758, allocations: 3.984 kB / 0.523 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.032e-05/0.003799, allocations: 23.91 kB / 0.5231 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 5.199e-05/0.003851, allocations: 45.5 kB / 0.5231 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.003862, allocations: 0 / 0.5231 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005345/0.004397, allocations: 462.9 kB / 0.5236 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.134e-05/0.004448, allocations: 30.33 kB / 0.5236 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.00447, allocations: 15.92 kB / 0.5236 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.004859, allocations: 363 kB / 0.5239 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.004861, allocations: 0 / 0.5239 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.81e-07/0.004862, allocations: 0 / 0.5239 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.004865, allocations: 0 / 0.5239 GB, free: 14.86 MB / 0.4948 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.0003534/0.005219, allocations: 468.2 kB / 0.5244 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.005256, allocations: 8.031 kB / 0.5244 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.005294, allocations: 9.453 kB / 0.5244 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.005425, allocations: 133.3 kB / 0.5245 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.005434, allocations: 384 / 0.5245 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-06/0.005442, allocations: 384 / 0.5245 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.754e-05/0.00551, allocations: 31.8 kB / 0.5246 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.005517, allocations: 192 / 0.5246 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.005523, allocations: 4.312 kB / 0.5246 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.005531, allocations: 4.875 kB / 0.5246 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.183e-05/0.005542, allocations: 7.938 kB / 0.5246 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.005672, allocations: 156.6 kB / 0.5247 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.559e-05/0.005708, allocations: 24.53 kB / 0.5248 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.688e-05/0.005725, allocations: 7.688 kB / 0.5248 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.005761, allocations: 12.05 kB / 0.5248 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.005781, allocations: 34.48 kB / 0.5248 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.005782, allocations: 0 / 0.5248 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001102/0.005893, allocations: 42.28 kB / 0.5248 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.005923, allocations: 63.33 kB / 0.5249 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.006068, allocations: 261.6 kB / 0.5252 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.006079, allocations: 25.7 kB / 0.5252 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.766e-05/0.006137, allocations: 158.8 kB / 0.5253 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.138e-05/0.006148, allocations: 4 kB / 0.5253 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.006187, allocations: 39.89 kB / 0.5254 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.006324, allocations: 0.5011 MB / 0.5259 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.157e-05/0.006345, allocations: 12 kB / 0.5259 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.39e-05/0.006359, allocations: 15.94 kB / 0.5259 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.659e-05/0.006406, allocations: 45.03 kB / 0.5259 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.006407, allocations: 0 / 0.5259 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.998e-05/0.006487, allocations: 97.47 kB / 0.526 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.006501, allocations: 8 kB / 0.526 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.006513, allocations: 0 / 0.526 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.006525, allocations: 0 / 0.526 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.25e-05/0.006537, allocations: 4 kB / 0.526 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.006543, allocations: 3.938 kB / 0.526 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.006562, allocations: 10.98 kB / 0.526 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.006569, allocations: 3.984 kB / 0.5261 GB, free: 12.52 MB / 0.4948 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 8.169e-05/0.006651, allocations: 163.1 kB / 0.5262 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.558e-05/0.006667, allocations: 11.91 kB / 0.5262 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.426e-05/0.006741, allocations: 50.12 kB / 0.5263 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.006742, allocations: 0 / 0.5263 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.006747, allocations: 5.438 kB / 0.5263 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.00675, allocations: 0 / 0.5263 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.875e-05/0.006828, allocations: 152.5 kB / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.006829, allocations: 3.938 kB / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.546e-06/0.006833, allocations: 4.5 kB / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006834, allocations: 0 / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.00684, allocations: 2.406 kB / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.006841, allocations: 0 / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.006842, allocations: 0 / 0.5264 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.042e-05/0.006892, allocations: 84.33 kB / 0.5265 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.797e-06/0.006901, allocations: 7.906 kB / 0.5265 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-06/0.00691, allocations: 4 kB / 0.5265 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.073e-06/0.006917, allocations: 2.438 kB / 0.5265 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.219e-05/0.006929, allocations: 3.938 kB / 0.5265 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.006932, allocations: 3.938 kB / 0.5265 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.735e-05/0.006999, allocations: 176.2 kB / 0.5267 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.006999, allocations: 0 / 0.5267 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000239/0.007238, allocations: 87.8 kB / 0.5268 GB, free: 11.7 MB / 0.4948 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.0004023/0.007641, allocations: 265 kB / 0.527 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001376/0.007778, allocations: 74.31 kB / 0.5271 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.00778, allocations: 0 / 0.5271 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.789e-06/0.00779, allocations: 18.23 kB / 0.5271 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/0.007897, allocations: 5.969 kB / 0.5271 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002363/0.008133, allocations: 186.9 kB / 0.5273 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.586e-05/0.008169, allocations: 75.12 kB / 0.5274 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.436e-05/0.008183, allocations: 0 / 0.5274 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.505e-05/0.008198, allocations: 14 kB / 0.5274 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of SimCode: time 6.11e-07/0.008199, allocations: 0 / 0.5274 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of Templates: time 0.00391/0.01211, allocations: 2.218 MB / 0.5296 GB, free: 8.938 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.737594770034775]