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.0006744/0.0006744, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009711/0.001646, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0008049/0.0008049, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009811/0.001786, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.008/1.008, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1262/1.134, allocations: 53.68 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-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 4.0.0-master/package.mo): time 0.8151/0.8151, allocations: 155.3 MB / 399.5 MB, free: 15.82 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.2925/1.108, allocations: 49.13 MB / 448.6 MB, free: 5.949 MB / 426.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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.613e-06/1.613e-06, allocations: 0.5469 kB / 449.9 MB, free: 4.688 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.604e-05/1.765e-05, allocations: 7.438 kB / 449.9 MB, free: 4.68 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.00164/0.001658, allocations: 0.5703 MB / 450.5 MB, free: 4.141 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.003933, allocations: 1.676 MB / 452.2 MB, free: 2.457 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.342e-05/0.003966, allocations: 4.625 kB / 452.2 MB, free: 2.453 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.004111, allocations: 70 kB / 452.2 MB, free: 2.387 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 4.668e-05/0.004157, allocations: 43.11 kB / 452.3 MB, free: 2.348 MB / 426.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.0007181/0.004875, allocations: 253.4 kB / 452.5 MB, free: 2.105 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 8.604e-05/0.004961, allocations: 27.14 kB / 452.6 MB, free: 2.082 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.776e-05/0.004999, allocations: 8.516 kB / 452.6 MB, free: 2.078 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.761e-05/0.005077, allocations: 30.28 kB / 452.6 MB, free: 2.051 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.764e-05/0.005144, allocations: 33.34 kB / 452.6 MB, free: 2.02 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.00516, allocations: 0 / 452.6 MB, free: 2.02 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007237/0.005884, allocations: 468.8 kB / 453.1 MB, free: 1.566 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 6.158e-05/0.005945, allocations: 25.23 kB / 453.1 MB, free: 1.547 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.378e-05/0.005969, allocations: 12.16 kB / 453.1 MB, free: 1.539 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.006386, allocations: 298.1 kB / 453.4 MB, free: 1.254 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.826e-06/0.006395, allocations: 0 / 453.4 MB, free: 1.254 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.006396, allocations: 1.5 kB / 453.4 MB, free: 1.254 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.006405, allocations: 0 / 453.4 MB, free: 1.254 MB / 426.7 MB 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.0004307/0.006835, allocations: 377.7 kB / 453.8 MB, free: 0.8633 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.006873, allocations: 8.031 kB / 453.8 MB, free: 0.8555 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/0.006904, allocations: 7.031 kB / 453.8 MB, free: 0.8516 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.007049, allocations: 131.4 kB / 453.9 MB, free: 0.6992 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-06/0.007056, allocations: 4.312 kB / 453.9 MB, free: 0.6953 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.007065, allocations: 384 / 453.9 MB, free: 0.6953 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.539e-05/0.007141, allocations: 41.02 kB / 454 MB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.007149, allocations: 2.969 kB / 454 MB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.002e-06/0.007155, allocations: 384 / 454 MB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.007162, allocations: 3.938 kB / 454 MB, free: 0.6445 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.024e-05/0.007173, allocations: 5.031 kB / 454 MB, free: 0.6406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.007283, allocations: 74.66 kB / 454.1 MB, free: 0.5508 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.765e-05/0.007321, allocations: 15.42 kB / 454.1 MB, free: 0.5273 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.115e-05/0.007332, allocations: 4.859 kB / 454.1 MB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.322e-05/0.007376, allocations: 12.61 kB / 454.1 MB, free: 0.5078 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.0074, allocations: 39.78 kB / 454.1 MB, free: 472 kB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.007401, allocations: 0 / 454.1 MB, free: 472 kB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 9.496e-05/0.007496, allocations: 37.69 kB / 454.2 MB, free: 428 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.007526, allocations: 52.12 kB / 454.2 MB, free: 364 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.007658, allocations: 177.5 kB / 454.4 MB, free: 176 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.007669, allocations: 26.61 kB / 454.4 MB, free: 144 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.007712, allocations: 100.1 kB / 454.5 MB, free: 40 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.007724, allocations: 8.891 kB / 454.5 MB, free: 32 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.305e-05/0.007777, allocations: 29.75 kB / 454.5 MB, free: 15.99 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.007879, allocations: 330.7 kB / 454.9 MB, free: 15.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.181e-05/0.0079, allocations: 11.45 kB / 454.9 MB, free: 15.65 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.818e-05/0.007919, allocations: 17.25 kB / 454.9 MB, free: 15.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.146e-05/0.00797, allocations: 46.77 kB / 454.9 MB, free: 15.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.007972, allocations: 0 / 454.9 MB, free: 15.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.067e-05/0.008063, allocations: 67.66 kB / 455 MB, free: 15.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.008076, allocations: 4.5 kB / 455 MB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.008089, allocations: 1.375 kB / 455 MB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.008102, allocations: 4 kB / 455 MB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.357e-05/0.008115, allocations: 0 / 455 MB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.008118, allocations: 0 / 455 MB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.538e-05/0.008144, allocations: 8.953 kB / 455 MB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.008152, allocations: 4 kB / 455 MB, free: 15.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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.993e-05/0.008242, allocations: 121.3 kB / 455.1 MB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-06/0.008249, allocations: 0.875 kB / 455.2 MB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.052e-05/0.00833, allocations: 47.17 kB / 455.2 MB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.008331, allocations: 4.531 kB / 455.2 MB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.008332, allocations: 1.438 kB / 455.2 MB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.008335, allocations: 0 / 455.2 MB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.628e-05/0.008411, allocations: 81.81 kB / 455.3 MB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.008412, allocations: 0 / 455.3 MB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-06/0.008418, allocations: 4.781 kB / 455.3 MB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.008431, allocations: 15.84 kB / 455.3 MB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.008436, allocations: 9.422 kB / 455.3 MB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-06/0.00844, allocations: 0 / 455.3 MB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.008441, allocations: 0 / 455.3 MB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.008443, allocations: 1.125 kB / 455.3 MB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.806e-05/0.008501, allocations: 75.48 kB / 455.4 MB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-06/0.008511, allocations: 0 / 455.4 MB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/0.008523, allocations: 0.6875 kB / 455.4 MB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-06/0.008532, allocations: 0 / 455.4 MB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.008534, allocations: 4.812 kB / 455.4 MB, free: 15.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.428e-05/0.008588, allocations: 53.42 kB / 455.4 MB, free: 15.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.008588, allocations: 0.6562 kB / 455.4 MB, free: 15.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002811/0.008869, allocations: 87.8 kB / 455.5 MB, free: 14.95 MB / 442.7 MB 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.0005913/0.00946, allocations: 275.7 kB / 455.8 MB, free: 14.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.009581, allocations: 75.09 kB / 455.9 MB, free: 14.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.009587, allocations: 3.984 kB / 455.9 MB, free: 14.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.131e-05/0.009598, allocations: 9.422 kB / 455.9 MB, free: 14.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.545e-05/0.009683, allocations: 12.5 kB / 455.9 MB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002634/0.009947, allocations: 193 kB / 456.1 MB, free: 14.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.352e-05/0.00999, allocations: 64.19 kB / 456.1 MB, free: 14.32 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.917e-05/0.01001, allocations: 3.953 kB / 456.2 MB, free: 14.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.66e-05/0.01005, allocations: 52.62 kB / 456.2 MB, free: 14.27 MB / 442.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01005, allocations: 0 / 456.2 MB, free: 14.27 MB / 442.7 MB Notification: Performance of Templates: time 0.005319/0.01537, allocations: 2.57 MB / 458.8 MB, free: 11.9 MB / 442.7 MB " [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.5536110810935497]