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.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.0009847/0.0009847, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00151/0.002495, 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.001287/0.001287, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00141/0.002697, 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 0.9895/0.9895, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09952/1.089, allocations: 53.67 MB / 243.4 MB, free: 15.49 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.8557/0.8557, allocations: 155.3 MB / 399.5 MB, free: 15.79 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.3035/1.159, allocations: 49.14 MB / 448.6 MB, free: 5.895 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_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 1.784e-06/1.784e-06, allocations: 0 / 449.9 MB, free: 4.633 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.528e-05/2.706e-05, allocations: 5.812 kB / 449.9 MB, free: 4.629 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001884/0.001911, allocations: 0.5768 MB / 450.5 MB, free: 4.082 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.004669, allocations: 1.67 MB / 452.2 MB, free: 2.406 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.866e-05/0.004718, allocations: 0 / 452.2 MB, free: 2.406 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.004827, allocations: 20.45 kB / 452.2 MB, free: 2.387 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 2.74e-05/0.004854, allocations: 13.08 kB / 452.2 MB, free: 2.375 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.0009515/0.005806, allocations: 254.9 kB / 452.4 MB, free: 2.133 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 9.773e-05/0.005903, allocations: 27.91 kB / 452.5 MB, free: 2.109 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.005944, allocations: 5.906 kB / 452.5 MB, free: 2.109 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.287e-05/0.006037, allocations: 21.83 kB / 452.5 MB, free: 2.09 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.154e-05/0.006089, allocations: 13.08 kB / 452.5 MB, free: 2.078 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.006104, allocations: 1.094 kB / 452.5 MB, free: 2.078 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009035/0.007007, allocations: 463.9 kB / 453 MB, free: 1.625 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.007065, allocations: 18.05 kB / 453 MB, free: 1.613 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.007087, allocations: 7.062 kB / 453 MB, free: 1.609 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.007541, allocations: 288.9 kB / 453.3 MB, free: 1.332 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.135e-05/0.007552, allocations: 0 / 453.3 MB, free: 1.332 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.007554, allocations: 0 / 453.3 MB, free: 1.332 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.007564, allocations: 0.625 kB / 453.3 MB, free: 1.332 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.0004381/0.008002, allocations: 347.8 kB / 453.6 MB, free: 0.9727 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.008041, allocations: 12.03 kB / 453.6 MB, free: 0.9609 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.008073, allocations: 4.922 kB / 453.6 MB, free: 0.957 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.008212, allocations: 117.8 kB / 453.7 MB, free: 0.8164 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.008223, allocations: 4.375 kB / 453.7 MB, free: 0.8125 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.008233, allocations: 384 / 453.7 MB, free: 0.8125 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.001e-05/0.008303, allocations: 33.84 kB / 453.8 MB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.008312, allocations: 4.797 kB / 453.8 MB, free: 0.7695 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-06/0.008317, allocations: 384 / 453.8 MB, free: 0.7695 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.008325, allocations: 9.438 kB / 453.8 MB, free: 0.7617 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.015e-06/0.008333, allocations: 0 / 453.8 MB, free: 0.7617 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.801e-05/0.008431, allocations: 70.64 kB / 453.9 MB, free: 0.6758 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.304e-05/0.008464, allocations: 18.61 kB / 453.9 MB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.419e-05/0.008478, allocations: 10.94 kB / 453.9 MB, free: 0.6367 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.008514, allocations: 4.062 kB / 453.9 MB, free: 0.6328 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.008541, allocations: 42.48 kB / 453.9 MB, free: 0.582 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.008542, allocations: 0 / 453.9 MB, free: 0.582 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 9.171e-05/0.008633, allocations: 31.27 kB / 454 MB, free: 0.5469 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.008663, allocations: 51.41 kB / 454 MB, free: 496 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.008781, allocations: 155.8 kB / 454.2 MB, free: 328 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.008794, allocations: 26.73 kB / 454.2 MB, free: 296 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.656e-05/0.00884, allocations: 92.11 kB / 454.3 MB, free: 200 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.159e-05/0.008852, allocations: 4.797 kB / 454.3 MB, free: 196 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.008888, allocations: 25.69 kB / 454.3 MB, free: 164 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.009004, allocations: 326.8 kB / 454.6 MB, free: 15.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.154e-05/0.009025, allocations: 11.36 kB / 454.6 MB, free: 15.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.625e-05/0.009041, allocations: 12.89 kB / 454.7 MB, free: 15.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.706e-05/0.009089, allocations: 35.61 kB / 454.7 MB, free: 15.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.00909, allocations: 1 kB / 454.7 MB, free: 15.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.168e-05/0.009182, allocations: 61.62 kB / 454.8 MB, free: 15.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.009196, allocations: 4 kB / 454.8 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.009212, allocations: 0.625 kB / 454.8 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.009225, allocations: 1.312 kB / 454.8 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-05/0.009239, allocations: 0 / 454.8 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.009242, allocations: 0 / 454.8 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.555e-05/0.009267, allocations: 15.83 kB / 454.8 MB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.009275, allocations: 0.5 kB / 454.8 MB, free: 15.68 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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.919e-05/0.009364, allocations: 118 kB / 454.9 MB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.009373, allocations: 4 kB / 454.9 MB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.009474, allocations: 47.72 kB / 454.9 MB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.009476, allocations: 0 / 454.9 MB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.009478, allocations: 3.938 kB / 454.9 MB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.00948, allocations: 0.75 kB / 454.9 MB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.802e-05/0.009558, allocations: 81.81 kB / 455 MB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.009561, allocations: 4.875 kB / 455 MB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.912e-06/0.009567, allocations: 0 / 455 MB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.497e-06/0.009576, allocations: 4.547 kB / 455 MB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.009578, allocations: 4 kB / 455 MB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-06/0.009582, allocations: 1.438 kB / 455 MB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.009583, allocations: 0 / 455 MB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.009584, allocations: 0 / 455 MB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.442e-05/0.009649, allocations: 71.44 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.899e-06/0.009659, allocations: 1.359 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.00967, allocations: 1.438 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.009689, allocations: 3.984 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.009693, allocations: 4 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.077e-05/0.009734, allocations: 36.28 kB / 455.2 MB, free: 15.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1e-07/0.009734, allocations: 0.8438 kB / 455.2 MB, free: 15.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003131/0.01005, allocations: 87.8 kB / 455.2 MB, free: 15.16 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.0006275/0.01067, allocations: 276 kB / 455.5 MB, free: 14.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.01079, allocations: 58.48 kB / 455.6 MB, free: 14.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.0108, allocations: 4.625 kB / 455.6 MB, free: 14.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 9.698e-06/0.01081, allocations: 9.484 kB / 455.6 MB, free: 14.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.74e-05/0.01089, allocations: 14.05 kB / 455.6 MB, free: 14.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002144/0.0111, allocations: 163.4 kB / 455.8 MB, free: 14.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.109e-05/0.01114, allocations: 71.19 kB / 455.8 MB, free: 14.58 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.01116, allocations: 1.453 kB / 455.8 MB, free: 14.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.01119, allocations: 51.97 kB / 455.9 MB, free: 14.53 MB / 442.7 MB Notification: Performance of SimCode: time 5.31e-07/0.0112, allocations: 0.8438 kB / 455.9 MB, free: 14.53 MB / 442.7 MB Notification: Performance of Templates: time 0.005537/0.01673, allocations: 2.537 MB / 458.4 MB, free: 12.18 MB / 442.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5471237916499376]