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.0009619/0.0009619, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001084/0.001084, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 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.9707/0.9707, allocations: 177.2 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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 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 master/package.mo): time 0.8398/0.8398, allocations: 154.9 MB / 415.1 MB, free: 268 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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 master/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 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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 2.164e-06/2.164e-06, allocations: 0 / 0.5211 GB, free: 1.57 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.848e-05/3.065e-05, allocations: 5.594 kB / 0.5211 GB, free: 1.566 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001177/0.001208, allocations: 0.5204 MB / 0.5216 GB, free: 1.07 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.002951, allocations: 1.636 MB / 0.5232 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.373e-05/0.002995, allocations: 4.5 kB / 0.5232 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.003171, allocations: 60.61 kB / 0.5233 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 2.805e-05/0.003199, allocations: 32.45 kB / 0.5233 GB, free: 15.32 MB / 0.4948 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.0007641/0.003963, allocations: 290 kB / 0.5236 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 7.04e-05/0.004034, allocations: 27.91 kB / 0.5236 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.228e-05/0.004066, allocations: 7.031 kB / 0.5236 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.531e-05/0.004111, allocations: 27.95 kB / 0.5236 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 5.443e-05/0.004166, allocations: 43.89 kB / 0.5237 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.00418, allocations: 0 / 0.5237 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005374/0.004717, allocations: 451 kB / 0.5241 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.662e-05/0.004764, allocations: 27.92 kB / 0.5241 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.672e-05/0.004781, allocations: 8.438 kB / 0.5241 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.00514, allocations: 364.2 kB / 0.5245 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005143, allocations: 0 / 0.5245 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.32e-07/0.005144, allocations: 0 / 0.5245 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.005148, allocations: 4.969 kB / 0.5245 GB, free: 14.11 MB / 0.4948 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.0003407/0.005489, allocations: 475.5 kB / 0.5249 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.005523, allocations: 8.031 kB / 0.5249 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.005551, allocations: 9.859 kB / 0.525 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.005662, allocations: 140.4 kB / 0.5251 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-06/0.005669, allocations: 1.375 kB / 0.5251 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-06/0.005675, allocations: 384 / 0.5251 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.248e-05/0.005727, allocations: 30.27 kB / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.61e-06/0.005733, allocations: 1.125 kB / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-06/0.005737, allocations: 384 / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.005743, allocations: 5.156 kB / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.053e-06/0.00575, allocations: 0 / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001065/0.005856, allocations: 121.2 kB / 0.5252 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.339e-05/0.00589, allocations: 31.62 kB / 0.5253 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.135e-05/0.005901, allocations: 11.67 kB / 0.5253 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.774e-05/0.005939, allocations: 13.78 kB / 0.5253 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.005956, allocations: 37.39 kB / 0.5253 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.005957, allocations: 0 / 0.5253 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 9.106e-05/0.006048, allocations: 39.03 kB / 0.5254 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.006074, allocations: 55.39 kB / 0.5254 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.006217, allocations: 268.2 kB / 0.5257 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.006228, allocations: 29.7 kB / 0.5257 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.006289, allocations: 163.4 kB / 0.5259 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.367e-06/0.006298, allocations: 0 / 0.5259 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.00634, allocations: 40.52 kB / 0.5259 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.006463, allocations: 0.5001 MB / 0.5264 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.006479, allocations: 8 kB / 0.5264 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.29e-05/0.006491, allocations: 8.719 kB / 0.5264 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.127e-05/0.006533, allocations: 41.62 kB / 0.5264 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.006534, allocations: 0.5625 kB / 0.5264 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.056e-05/0.006615, allocations: 86.03 kB / 0.5265 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.006626, allocations: 7.719 kB / 0.5265 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.006639, allocations: 4 kB / 0.5265 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.293e-06/0.006646, allocations: 0 / 0.5265 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.294e-05/0.006659, allocations: 3.938 kB / 0.5265 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-06/0.006662, allocations: 1.812 kB / 0.5265 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.172e-05/0.006683, allocations: 15.83 kB / 0.5266 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.00669, allocations: 0 / 0.5266 GB, free: 11.8 MB / 0.4948 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 (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 7.571e-05/0.006765, allocations: 167.1 kB / 0.5267 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.006774, allocations: 11.91 kB / 0.5267 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.17e-05/0.006846, allocations: 46.19 kB / 0.5268 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.006847, allocations: 0 / 0.5268 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.006849, allocations: 2.75 kB / 0.5268 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.006853, allocations: 3.938 kB / 0.5268 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.125e-05/0.006924, allocations: 125.2 kB / 0.5269 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.006926, allocations: 3.984 kB / 0.5269 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.356e-06/0.00693, allocations: 0 / 0.5269 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.006931, allocations: 0 / 0.5269 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-06/0.006934, allocations: 0 / 0.5269 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.006934, allocations: 1.938 kB / 0.5269 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.006936, allocations: 3.938 kB / 0.5269 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.112e-05/0.006987, allocations: 80.33 kB / 0.527 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.061e-05/0.006998, allocations: 11.91 kB / 0.527 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-06/0.007005, allocations: 0 / 0.527 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.044e-06/0.007012, allocations: 0.9375 kB / 0.527 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-06/0.00702, allocations: 0 / 0.527 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.007022, allocations: 0 / 0.527 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.189e-05/0.007084, allocations: 176.9 kB / 0.5272 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.007084, allocations: 0 / 0.5272 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002336/0.007317, allocations: 90.14 kB / 0.5272 GB, free: 11.04 MB / 0.4948 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.0003952/0.007713, allocations: 262.4 kB / 0.5275 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001062/0.007819, allocations: 81.89 kB / 0.5276 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.00782, allocations: 3.156 kB / 0.5276 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.838e-06/0.00783, allocations: 15.67 kB / 0.5276 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.905e-05/0.007929, allocations: 0 / 0.5276 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002097/0.008139, allocations: 186.8 kB / 0.5278 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.382e-05/0.008172, allocations: 67.33 kB / 0.5278 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.813e-05/0.008191, allocations: 4 kB / 0.5278 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.008229, allocations: 73.33 kB / 0.5279 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of SimCode: time 6.02e-07/0.00823, allocations: 0 / 0.5279 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of Templates: time 0.004403/0.01263, allocations: 2.599 MB / 0.5304 GB, free: 7.867 MB / 0.4948 GB " [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.7750123194418848]