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.0006798/0.0006798, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008906/0.00157, allocations: 435.8 kB / 10.33 MB, free: 368 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.001085/0.001085, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001287/0.002372, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.048/1.048, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09241/1.14, allocations: 53.65 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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-545:108: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-545:116: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 0.7579/0.7579, allocations: 154.6 MB / 398.5 MB, free: 0.5078 MB / 378.7 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. Notification: Performance of NFInstanceAPI.mkTop(): time 0.2595/1.017, allocations: 49.03 MB / 447.6 MB, free: 6.684 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/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 7.71e-07/7.71e-07, allocations: 0 / 448.8 MB, free: 5.434 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.006e-05/1.083e-05, allocations: 4.562 kB / 448.8 MB, free: 5.43 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.0009207/0.0009316, allocations: 0.5702 MB / 449.4 MB, free: 4.895 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.002812, allocations: 1.671 MB / 451.1 MB, free: 3.215 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.156e-05/0.002834, allocations: 0 / 451.1 MB, free: 3.215 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.002935, allocations: 74.64 kB / 451.2 MB, free: 3.145 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 3.22e-05/0.002967, allocations: 36.55 kB / 451.2 MB, free: 3.109 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.0005349/0.003502, allocations: 250.6 kB / 451.4 MB, free: 2.871 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 4.928e-05/0.003551, allocations: 32.12 kB / 451.5 MB, free: 2.844 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 1.973e-05/0.003571, allocations: 4 kB / 451.5 MB, free: 2.84 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.457e-05/0.003616, allocations: 31.08 kB / 451.5 MB, free: 2.812 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.893e-05/0.003654, allocations: 32.5 kB / 451.5 MB, free: 2.781 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-06/0.003662, allocations: 2.438 kB / 451.5 MB, free: 2.781 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.004141, allocations: 472.1 kB / 452 MB, free: 2.32 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 3.652e-05/0.004177, allocations: 21.8 kB / 452 MB, free: 2.305 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 1.543e-05/0.004193, allocations: 11.5 kB / 452 MB, free: 2.297 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.004458, allocations: 297.6 kB / 452.3 MB, free: 2.008 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.004464, allocations: 0 / 452.3 MB, free: 2.008 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.11e-07/0.004464, allocations: 0 / 452.3 MB, free: 2.008 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.004471, allocations: 0 / 452.3 MB, free: 2.008 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.0002466/0.004718, allocations: 373.6 kB / 452.7 MB, free: 1.621 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 1.875e-05/0.004737, allocations: 9.969 kB / 452.7 MB, free: 1.613 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.413e-05/0.004751, allocations: 4.938 kB / 452.7 MB, free: 1.609 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.245e-05/0.004833, allocations: 139.9 kB / 452.8 MB, free: 1.449 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-06/0.004838, allocations: 384 / 452.8 MB, free: 1.449 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.004845, allocations: 8.375 kB / 452.8 MB, free: 1.441 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.715e-05/0.004882, allocations: 30 kB / 452.9 MB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.767e-06/0.004886, allocations: 1.453 kB / 452.9 MB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.866e-06/0.004889, allocations: 384 / 452.9 MB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-06/0.004892, allocations: 4.656 kB / 452.9 MB, free: 1.402 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.628e-06/0.004902, allocations: 8.641 kB / 452.9 MB, free: 1.395 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.931e-05/0.004961, allocations: 78.59 kB / 453 MB, free: 1.301 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.049e-05/0.004981, allocations: 19.77 kB / 453 MB, free: 1.273 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.714e-06/0.004989, allocations: 4.859 kB / 453 MB, free: 1.266 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.005018, allocations: 8.094 kB / 453 MB, free: 1.258 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.005032, allocations: 31.09 kB / 453 MB, free: 1.219 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 4.81e-07/0.005032, allocations: 1.281 kB / 453 MB, free: 1.219 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 4.481e-05/0.005077, allocations: 37.69 kB / 453.1 MB, free: 1.176 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.833e-05/0.005096, allocations: 51.41 kB / 453.1 MB, free: 1.113 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.7e-05/0.005183, allocations: 194.7 kB / 453.3 MB, free: 0.9141 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.00519, allocations: 25.7 kB / 453.3 MB, free: 0.8828 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.754e-05/0.005218, allocations: 92.11 kB / 453.4 MB, free: 0.7891 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-06/0.005223, allocations: 3.953 kB / 453.4 MB, free: 0.7852 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.45e-05/0.005248, allocations: 33.67 kB / 453.5 MB, free: 0.7461 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.005313, allocations: 326.8 kB / 453.8 MB, free: 428 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.005328, allocations: 15.7 kB / 453.8 MB, free: 412 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.214e-05/0.00534, allocations: 15.98 kB / 453.8 MB, free: 396 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.008e-05/0.00537, allocations: 42.2 kB / 453.8 MB, free: 356 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.005371, allocations: 0 / 453.8 MB, free: 356 kB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 5.198e-05/0.005423, allocations: 66.38 kB / 453.9 MB, free: 284 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.005431, allocations: 4 kB / 453.9 MB, free: 280 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.00544, allocations: 5.188 kB / 453.9 MB, free: 276 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.529e-06/0.005444, allocations: 7.938 kB / 453.9 MB, free: 268 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.195e-06/0.005452, allocations: 4.641 kB / 453.9 MB, free: 264 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-06/0.005454, allocations: 0.625 kB / 453.9 MB, free: 264 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.005467, allocations: 11.83 kB / 453.9 MB, free: 252 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.005472, allocations: 4.562 kB / 454 MB, free: 248 kB / 426.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 5.15e-05/0.005523, allocations: 119.3 kB / 454.1 MB, free: 120 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-06/0.005528, allocations: 0.5938 kB / 454.1 MB, free: 120 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.005577, allocations: 43.8 kB / 454.1 MB, free: 72 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.005578, allocations: 0 / 454.1 MB, free: 72 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.005579, allocations: 1.781 kB / 454.1 MB, free: 72 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.005582, allocations: 3.984 kB / 454.1 MB, free: 68 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.243e-05/0.005644, allocations: 90 kB / 454.2 MB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.005645, allocations: 0 / 454.2 MB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.675e-06/0.005648, allocations: 4 kB / 454.2 MB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.526e-06/0.005656, allocations: 12.84 kB / 454.2 MB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.005658, allocations: 6.625 kB / 454.2 MB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-06/0.00566, allocations: 0.75 kB / 454.2 MB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.005661, allocations: 3.938 kB / 454.2 MB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.005662, allocations: 4.922 kB / 454.2 MB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.535e-05/0.005698, allocations: 66.72 kB / 454.3 MB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.162e-06/0.005704, allocations: 0.9062 kB / 454.3 MB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.382e-06/0.00571, allocations: 3.938 kB / 454.3 MB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-06/0.005716, allocations: 0.7812 kB / 454.3 MB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-07/0.005717, allocations: 4 kB / 454.3 MB, free: 15.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.061e-05/0.005747, allocations: 50.47 kB / 454.4 MB, free: 15.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.005747, allocations: 0 / 454.4 MB, free: 15.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001627/0.00591, allocations: 83.8 kB / 454.4 MB, free: 15.7 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.0003635/0.006273, allocations: 271.3 kB / 454.7 MB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.606e-05/0.006349, allocations: 67.22 kB / 454.8 MB, free: 15.41 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.006353, allocations: 4.844 kB / 454.8 MB, free: 15.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 5.661e-06/0.006359, allocations: 4.859 kB / 454.8 MB, free: 15.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.763e-05/0.006406, allocations: 13.09 kB / 454.8 MB, free: 15.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001773/0.006584, allocations: 204.3 kB / 455 MB, free: 15.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.759e-05/0.006611, allocations: 64.38 kB / 455.1 MB, free: 15.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.097e-05/0.006622, allocations: 0 / 455.1 MB, free: 15.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.00665, allocations: 56.23 kB / 455.1 MB, free: 15.02 MB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/0.006651, allocations: 0 / 455.1 MB, free: 15.02 MB / 442.7 MB Notification: Performance of Templates: time 0.003763/0.01041, allocations: 2.596 MB / 457.7 MB, free: 12.63 MB / 442.7 MB " [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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5008058166131377]