Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001622/0.001622, allocations: 81.47 kB / 19.18 MB, free: 2.516 MB / 14.72 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.00191/0.00191, allocations: 160.2 kB / 22.46 MB, free: 5.375 MB / 14.72 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.434/1.434, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/package.mo): time 1.181/1.181, allocations: 154.6 MB / 413.8 MB, free: 5.215 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 178] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 0.6185 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.59e-05/2.726e-05, allocations: 2.281 kB / 0.6185 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001451/0.001479, allocations: 0.5293 MB / 0.619 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002558/0.004037, allocations: 1.619 MB / 0.6206 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.328e-05/0.00407, allocations: 0 / 0.6206 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002117/0.004282, allocations: 67.77 kB / 0.6207 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.91e-05/0.004331, allocations: 27.95 kB / 0.6207 GB, free: 2.344 MB / 0.5294 GB [/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.000989/0.00532, allocations: 282.9 kB / 0.621 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.395e-05/0.005414, allocations: 35.89 kB / 0.621 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.005455, allocations: 4 kB / 0.621 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.636e-05/0.005512, allocations: 19.97 kB / 0.621 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.119e-05/0.005593, allocations: 51.86 kB / 0.6211 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.005609, allocations: 0 / 0.6211 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007598/0.006369, allocations: 447.1 kB / 0.6215 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.00643, allocations: 31.91 kB / 0.6215 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.00646, allocations: 15.94 kB / 0.6216 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005183/0.006978, allocations: 363 kB / 0.6219 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.006981, allocations: 0 / 0.6219 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.343e-06/0.006983, allocations: 0 / 0.6219 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.006988, allocations: 0 / 0.6219 GB, free: 1.117 MB / 0.5294 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.0005185/0.007506, allocations: 357.4 kB / 0.6223 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.007544, allocations: 11.97 kB / 0.6223 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.007586, allocations: 12.84 kB / 0.6223 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.007758, allocations: 137.6 kB / 0.6224 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.007769, allocations: 8.312 kB / 0.6224 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.007778, allocations: 384 / 0.6224 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.007895, allocations: 38.27 kB / 0.6225 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.007904, allocations: 192 / 0.6225 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.007912, allocations: 384 / 0.6225 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.007918, allocations: 3.938 kB / 0.6225 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.531e-05/0.007954, allocations: 19.98 kB / 0.6225 GB, free: 492 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.008125, allocations: 133.3 kB / 0.6226 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 6.178e-05/0.008187, allocations: 34.5 kB / 0.6226 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.484e-05/0.008211, allocations: 12.92 kB / 0.6226 GB, free: 268 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.008243, allocations: 15.89 kB / 0.6227 GB, free: 252 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.008275, allocations: 34.55 kB / 0.6227 GB, free: 208 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.008276, allocations: 3.938 kB / 0.6227 GB, free: 204 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001531/0.008429, allocations: 69.64 kB / 0.6228 GB, free: 128 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.008473, allocations: 55.34 kB / 0.6228 GB, free: 60 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.008714, allocations: 216.5 kB / 0.623 GB, free: 15.84 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.008739, allocations: 25.7 kB / 0.623 GB, free: 15.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.008809, allocations: 104.1 kB / 0.6231 GB, free: 15.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.129e-05/0.00882, allocations: 3.953 kB / 0.6232 GB, free: 15.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-05/0.008867, allocations: 29.83 kB / 0.6232 GB, free: 15.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.00903, allocations: 330.8 kB / 0.6235 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.09e-05/0.009101, allocations: 55.98 kB / 0.6235 GB, free: 15.27 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-05/0.00916, allocations: 55.97 kB / 0.6236 GB, free: 15.22 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.009264, allocations: 84.83 kB / 0.6237 GB, free: 15.13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.009266, allocations: 3.938 kB / 0.6237 GB, free: 15.13 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001887/0.009454, allocations: 160.7 kB / 0.6238 GB, free: 14.97 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.00947, allocations: 10.19 kB / 0.6238 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.009483, allocations: 0 / 0.6238 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.009496, allocations: 0 / 0.6238 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.247e-05/0.009509, allocations: 0 / 0.6238 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.009515, allocations: 8 kB / 0.6239 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.517e-05/0.00955, allocations: 23.72 kB / 0.6239 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.527e-06/0.00956, allocations: 0 / 0.6239 GB, free: 14.93 MB / 0.545 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.0001926/0.009752, allocations: 139.7 kB / 0.624 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.009766, allocations: 7.953 kB / 0.624 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.009878, allocations: 58.19 kB / 0.6241 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.009879, allocations: 0 / 0.6241 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.009888, allocations: 7.938 kB / 0.6241 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.00989, allocations: 0 / 0.6241 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.01002, allocations: 137.3 kB / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.01002, allocations: 0 / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.469e-06/0.01002, allocations: 0 / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.01002, allocations: 0 / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.01003, allocations: 4 kB / 0.6242 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.01003, allocations: 0 / 0.6242 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.01003, allocations: 0 / 0.6242 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.924e-05/0.01013, allocations: 92.91 kB / 0.6243 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.435e-05/0.01016, allocations: 11.91 kB / 0.6243 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.01017, allocations: 0 / 0.6243 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.531e-05/0.01018, allocations: 4.016 kB / 0.6243 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.0102, allocations: 8 kB / 0.6243 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.0102, allocations: 3.938 kB / 0.6243 GB, free: 14.41 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001259/0.01033, allocations: 148.3 kB / 0.6245 GB, free: 14.26 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.01033, allocations: 0 / 0.6245 GB, free: 14.26 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003606/0.01069, allocations: 87.8 kB / 0.6246 GB, free: 14.18 MB / 0.545 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.0006168/0.0113, allocations: 256.4 kB / 0.6248 GB, free: 13.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000195/0.0115, allocations: 113.7 kB / 0.6249 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.0115, allocations: 3.938 kB / 0.6249 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.965e-05/0.01152, allocations: 15.98 kB / 0.6249 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.01166, allocations: 4 kB / 0.6249 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.01202, allocations: 209.9 kB / 0.6251 GB, free: 13.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.66e-05/0.01212, allocations: 92.17 kB / 0.6252 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.05e-05/0.01214, allocations: 4.125 kB / 0.6252 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.01216, allocations: 8.5 kB / 0.6252 GB, free: 13.45 MB / 0.545 GB Notification: Performance of SimCode: time 3.8e-07/0.01216, allocations: 0 / 0.6252 GB, free: 13.45 MB / 0.545 GB Notification: Performance of Templates: time 0.005726/0.01789, allocations: 2.183 MB / 0.6274 GB, free: 11.26 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.74908185005188] Failed to read output from testmodel.py, exit status != 0: 0.026510946452617645 0.040823450000000004 0.030841939000000002 Calling exit ...