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.0006644/0.0006644, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000868/0.001532, 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.0006833/0.0006833, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008763/0.00156, 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 0.9805/0.9805, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08458/1.065, allocations: 53.66 MB / 243.2 MB, free: 15.59 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.7766/0.7766, allocations: 155.3 MB / 399.2 MB, free: 15.94 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.279/1.056, allocations: 49.13 MB / 448.4 MB, free: 6.02 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.323e-06/1.323e-06, allocations: 0.7656 kB / 449.6 MB, free: 4.781 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.475e-05/1.607e-05, allocations: 9.781 kB / 449.6 MB, free: 4.773 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001008/0.001024, allocations: 0.5648 MB / 450.2 MB, free: 4.238 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.002803, allocations: 1.669 MB / 451.9 MB, free: 2.562 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.686e-05/0.00283, allocations: 0 / 451.9 MB, free: 2.562 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 6.454e-05/0.002895, allocations: 26.3 kB / 451.9 MB, free: 2.539 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 1.854e-05/0.002913, allocations: 8.641 kB / 451.9 MB, free: 2.531 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.0005515/0.003465, allocations: 258.9 kB / 452.2 MB, free: 2.285 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 4.395e-05/0.003509, allocations: 24.14 kB / 452.2 MB, free: 2.266 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.889e-05/0.003537, allocations: 0 / 452.2 MB, free: 2.266 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.351e-05/0.003591, allocations: 21.83 kB / 452.2 MB, free: 2.246 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.054e-05/0.003622, allocations: 14.52 kB / 452.2 MB, free: 2.234 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.003632, allocations: 0 / 452.2 MB, free: 2.234 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006201/0.004252, allocations: 467.3 kB / 452.7 MB, free: 1.781 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.004302, allocations: 19.7 kB / 452.7 MB, free: 1.766 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.154e-05/0.004324, allocations: 7.234 kB / 452.7 MB, free: 1.762 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.004668, allocations: 291.7 kB / 453 MB, free: 1.477 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.888e-06/0.004678, allocations: 1.281 kB / 453 MB, free: 1.477 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.004678, allocations: 0 / 453 MB, free: 1.477 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.00469, allocations: 0 / 453 MB, free: 1.477 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.0003317/0.005022, allocations: 342.3 kB / 453.3 MB, free: 1.125 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.005052, allocations: 12.03 kB / 453.3 MB, free: 1.113 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.473e-05/0.005077, allocations: 6.891 kB / 453.3 MB, free: 1.109 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.005181, allocations: 125.7 kB / 453.5 MB, free: 0.9609 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-06/0.005188, allocations: 4.375 kB / 453.5 MB, free: 0.957 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-06/0.005194, allocations: 384 / 453.5 MB, free: 0.957 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.862e-05/0.005253, allocations: 33.08 kB / 453.5 MB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-06/0.005258, allocations: 0.75 kB / 453.5 MB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-06/0.005263, allocations: 384 / 453.5 MB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.005267, allocations: 8.562 kB / 453.5 MB, free: 0.9102 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.788e-06/0.005277, allocations: 5.594 kB / 453.5 MB, free: 0.9062 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.661e-05/0.005354, allocations: 66.7 kB / 453.6 MB, free: 0.8242 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.833e-05/0.005382, allocations: 20.11 kB / 453.6 MB, free: 0.7969 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.062e-05/0.005393, allocations: 4.859 kB / 453.6 MB, free: 0.7891 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.00543, allocations: 5.5 kB / 453.6 MB, free: 0.7852 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.005448, allocations: 38.55 kB / 453.7 MB, free: 0.7383 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.005449, allocations: 0 / 453.7 MB, free: 0.7383 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 7.554e-05/0.005525, allocations: 34.48 kB / 453.7 MB, free: 0.6992 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.005551, allocations: 51.41 kB / 453.7 MB, free: 0.6367 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.34e-05/0.005635, allocations: 164.4 kB / 453.9 MB, free: 476 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.446e-06/0.005643, allocations: 25.7 kB / 453.9 MB, free: 444 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.764e-05/0.005671, allocations: 92.95 kB / 454 MB, free: 348 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.426e-06/0.005679, allocations: 3.953 kB / 454 MB, free: 344 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.005707, allocations: 26.31 kB / 454 MB, free: 312 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.714e-05/0.005794, allocations: 322.8 kB / 454.4 MB, free: 15.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.717e-05/0.005811, allocations: 12.33 kB / 454.4 MB, free: 15.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.066e-05/0.005822, allocations: 11.98 kB / 454.4 MB, free: 15.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.574e-05/0.005857, allocations: 35.66 kB / 454.4 MB, free: 15.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.005859, allocations: 0 / 454.4 MB, free: 15.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 5.535e-05/0.005915, allocations: 59.72 kB / 454.5 MB, free: 15.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.005924, allocations: 8 kB / 454.5 MB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.005936, allocations: 0 / 454.5 MB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.572e-06/0.005942, allocations: 0 / 454.5 MB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.377e-05/0.005956, allocations: 0 / 454.5 MB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-06/0.005958, allocations: 0.9062 kB / 454.5 MB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.111e-05/0.005979, allocations: 23.77 kB / 454.5 MB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.005986, allocations: 0 / 454.5 MB, free: 15.82 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 6.25e-05/0.006048, allocations: 117.6 kB / 454.6 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-06/0.006053, allocations: 5.188 kB / 454.6 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.661e-05/0.00612, allocations: 45.44 kB / 454.7 MB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.006122, allocations: 1.516 kB / 454.7 MB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.006123, allocations: 0 / 454.7 MB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.006125, allocations: 0.5938 kB / 454.7 MB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.167e-05/0.006177, allocations: 77.81 kB / 454.8 MB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.006178, allocations: 4.656 kB / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.965e-06/0.006181, allocations: 0 / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-06/0.006188, allocations: 4.484 kB / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.00619, allocations: 4.562 kB / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-06/0.006193, allocations: 0.625 kB / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.9e-07/0.006193, allocations: 0 / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.006194, allocations: 0.8125 kB / 454.8 MB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.887e-05/0.006233, allocations: 66.72 kB / 454.8 MB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.304e-06/0.00624, allocations: 2.25 kB / 454.8 MB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-06/0.006246, allocations: 0 / 454.8 MB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-06/0.006255, allocations: 3.984 kB / 454.8 MB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-06/0.006256, allocations: 0.7188 kB / 454.8 MB, free: 15.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.456e-05/0.006281, allocations: 44.42 kB / 454.9 MB, free: 15.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006281, allocations: 4.844 kB / 454.9 MB, free: 15.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000203/0.006484, allocations: 87.8 kB / 455 MB, free: 15.31 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.0004273/0.006911, allocations: 270.5 kB / 455.2 MB, free: 15.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 8.394e-05/0.006995, allocations: 59.05 kB / 455.3 MB, free: 15.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.007, allocations: 5.359 kB / 455.3 MB, free: 15.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 5.551e-06/0.007005, allocations: 8.859 kB / 455.3 MB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.803e-05/0.007063, allocations: 12.25 kB / 455.3 MB, free: 15.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001806/0.007244, allocations: 153.9 kB / 455.5 MB, free: 14.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.871e-05/0.007273, allocations: 67.2 kB / 455.5 MB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.332e-05/0.007286, allocations: 0.7188 kB / 455.5 MB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.007315, allocations: 56.27 kB / 455.6 MB, free: 14.69 MB / 442.7 MB Notification: Performance of SimCode: time 4.91e-07/0.007316, allocations: 0 / 455.6 MB, free: 14.69 MB / 442.7 MB Notification: Performance of Templates: time 0.004197/0.01151, allocations: 2.589 MB / 458.2 MB, free: 12.3 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.45497337449342]