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.001384/0.001384, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001095/0.001095, allocations: 173 kB / 23.49 MB, free: 1.059 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.9745/0.9745, allocations: 177.1 MB / 203.8 MB, free: 5.637 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.8055/0.8055, allocations: 154.8 MB / 415.1 MB, free: 472 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_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.242e-06/1.242e-06, allocations: 0 / 0.5205 GB, free: 2.316 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.739e-05/1.864e-05, allocations: 5.484 kB / 0.5205 GB, free: 2.312 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001005/0.001024, allocations: 0.5227 MB / 0.521 GB, free: 1.812 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.002711, allocations: 1.652 MB / 0.5227 GB, free: 148 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.005e-05/0.002751, allocations: 0 / 0.5227 GB, free: 148 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.002906, allocations: 24.42 kB / 0.5227 GB, free: 124 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.024e-05/0.002926, allocations: 9.016 kB / 0.5227 GB, free: 116 kB / 490.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.0006986/0.003625, allocations: 282.1 kB / 0.523 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 6.63e-05/0.003691, allocations: 15.98 kB / 0.523 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.00373, allocations: 0 / 0.523 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.103e-05/0.003771, allocations: 19.92 kB / 0.523 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 3.781e-05/0.003809, allocations: 25.27 kB / 0.523 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.003822, allocations: 0 / 0.523 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007438/0.004565, allocations: 458.9 kB / 0.5235 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.8e-05/0.004613, allocations: 21.45 kB / 0.5235 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.004633, allocations: 7.938 kB / 0.5235 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.004967, allocations: 351 kB / 0.5238 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.004969, allocations: 0.9688 kB / 0.5238 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.51e-07/0.004969, allocations: 0 / 0.5238 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.004973, allocations: 0.9688 kB / 0.5238 GB, free: 14.96 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.0003333/0.005307, allocations: 435.9 kB / 0.5242 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.005341, allocations: 12.03 kB / 0.5242 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.005381, allocations: 9.891 kB / 0.5243 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.005509, allocations: 127.8 kB / 0.5244 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-06/0.005517, allocations: 384 / 0.5244 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.928e-06/0.005527, allocations: 4.859 kB / 0.5244 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.039e-05/0.005597, allocations: 35.3 kB / 0.5244 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.069e-06/0.005602, allocations: 192 / 0.5244 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.00561, allocations: 1.469 kB / 0.5244 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.005617, allocations: 3.938 kB / 0.5244 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.196e-05/0.005629, allocations: 3.938 kB / 0.5244 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.00575, allocations: 145.2 kB / 0.5246 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.567e-05/0.005786, allocations: 27.06 kB / 0.5246 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.005801, allocations: 9.156 kB / 0.5246 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.72e-05/0.005838, allocations: 8.062 kB / 0.5246 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.005858, allocations: 33.39 kB / 0.5246 GB, free: 14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 6.52e-07/0.005859, allocations: 1.812 kB / 0.5246 GB, free: 14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001165/0.005975, allocations: 45.58 kB / 0.5247 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.006002, allocations: 55.34 kB / 0.5247 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.006118, allocations: 217.9 kB / 0.5249 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.006126, allocations: 31.45 kB / 0.525 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.933e-05/0.006175, allocations: 146.8 kB / 0.5251 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.787e-06/0.006184, allocations: 0 / 0.5251 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.006215, allocations: 27.38 kB / 0.5251 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.006327, allocations: 0.5001 MB / 0.5256 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.671e-05/0.006344, allocations: 8.75 kB / 0.5256 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.363e-05/0.006357, allocations: 11.98 kB / 0.5256 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.257e-05/0.0064, allocations: 41.02 kB / 0.5257 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.006402, allocations: 0 / 0.5257 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.332e-05/0.006475, allocations: 77.58 kB / 0.5258 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.006488, allocations: 6.906 kB / 0.5258 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.006502, allocations: 4 kB / 0.5258 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.006513, allocations: 0 / 0.5258 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.257e-05/0.006526, allocations: 4.938 kB / 0.5258 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.006533, allocations: 3.938 kB / 0.5258 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.00655, allocations: 11.83 kB / 0.5258 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.006557, allocations: 7.25 kB / 0.5258 GB, free: 12.75 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],labels[5],labels[4],labels[3],labels[2],labels[1],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.785e-05/0.006625, allocations: 160.6 kB / 0.5259 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-06/0.006631, allocations: 3.953 kB / 0.526 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.041e-05/0.006701, allocations: 49.44 kB / 0.526 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.006702, allocations: 0 / 0.526 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.006707, allocations: 3.938 kB / 0.526 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.00671, allocations: 3.031 kB / 0.526 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.078e-05/0.006781, allocations: 140.6 kB / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.006781, allocations: 0 / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.414e-06/0.006784, allocations: 0 / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.006785, allocations: 0 / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-06/0.00679, allocations: 0 / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.006791, allocations: 0 / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.006792, allocations: 0 / 0.5261 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.901e-05/0.006841, allocations: 81.83 kB / 0.5262 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-06/0.006849, allocations: 3.953 kB / 0.5262 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.496e-06/0.006857, allocations: 0 / 0.5262 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.872e-06/0.006864, allocations: 4 kB / 0.5262 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.006878, allocations: 9.422 kB / 0.5262 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.00688, allocations: 3.938 kB / 0.5262 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.36e-05/0.006934, allocations: 150.4 kB / 0.5264 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.006934, allocations: 4 kB / 0.5264 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002088/0.007142, allocations: 89.08 kB / 0.5265 GB, free: 11.99 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.0004055/0.007548, allocations: 270.3 kB / 0.5267 GB, free: 11.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001073/0.007655, allocations: 69.38 kB / 0.5268 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.007657, allocations: 0 / 0.5268 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.647e-06/0.007666, allocations: 15.67 kB / 0.5268 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.007767, allocations: 0 / 0.5268 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002156/0.007983, allocations: 152.9 kB / 0.527 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.015e-05/0.008013, allocations: 67.22 kB / 0.527 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.838e-05/0.008031, allocations: 3.984 kB / 0.527 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.367e-05/0.008045, allocations: 12.5 kB / 0.527 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of SimCode: time 8.92e-07/0.008046, allocations: 0 / 0.527 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of Templates: time 0.003737/0.01178, allocations: 2.195 MB / 0.5292 GB, free: 9.285 MB / 0.4948 GB " [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.7934850759338588]