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.001368/0.001368, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001501/0.001501, allocations: 157.7 kB / 22.75 MB, free: 1.684 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 1.524/1.524, allocations: 177.1 MB / 203.1 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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 1.227/1.227, allocations: 154.8 MB / 414.4 MB, free: 488 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 178] 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.653e-06/1.653e-06, allocations: 0 / 0.5198 GB, free: 2.367 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.033e-05/3.198e-05, allocations: 5.406 kB / 0.5198 GB, free: 2.363 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001559/0.001591, allocations: 0.5177 MB / 0.5203 GB, free: 1.871 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.00278/0.004371, allocations: 1.611 MB / 0.5219 GB, free: 248 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.956e-05/0.004411, allocations: 0 / 0.5219 GB, free: 248 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.004586, allocations: 20.41 kB / 0.5219 GB, free: 228 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.098e-05/0.004617, allocations: 16.98 kB / 0.5219 GB, free: 212 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.001041/0.005658, allocations: 285.4 kB / 0.5222 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 7.606e-05/0.005734, allocations: 27.91 kB / 0.5222 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.725e-05/0.005771, allocations: 0.9688 kB / 0.5222 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.907e-05/0.00582, allocations: 15.92 kB / 0.5222 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 4.128e-05/0.005861, allocations: 12.95 kB / 0.5222 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.005875, allocations: 0 / 0.5222 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007955/0.006671, allocations: 456.8 kB / 0.5227 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.689e-05/0.006737, allocations: 19.92 kB / 0.5227 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.965e-05/0.006767, allocations: 7.938 kB / 0.5227 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.00057/0.007337, allocations: 347.1 kB / 0.523 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.007342, allocations: 0.5625 kB / 0.523 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.172e-06/0.007343, allocations: 8.938 kB / 0.5231 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.007348, allocations: 0 / 0.5231 GB, free: 15.05 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.000526/0.007874, allocations: 333.6 kB / 0.5234 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.007914, allocations: 9.25 kB / 0.5234 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.007966, allocations: 12.88 kB / 0.5234 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.008161, allocations: 124.8 kB / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.008172, allocations: 1 kB / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.008182, allocations: 384 / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.008302, allocations: 43.88 kB / 0.5236 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.00831, allocations: 192 / 0.5236 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.008319, allocations: 384 / 0.5236 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.008328, allocations: 7.938 kB / 0.5236 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.03e-05/0.008368, allocations: 21.27 kB / 0.5236 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002899/0.008658, allocations: 125.2 kB / 0.5237 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.434e-05/0.008722, allocations: 30.56 kB / 0.5237 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.697e-05/0.008749, allocations: 13.64 kB / 0.5237 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.00879, allocations: 4 kB / 0.5237 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.008824, allocations: 35.69 kB / 0.5238 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.008825, allocations: 0 / 0.5238 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0002138/0.009039, allocations: 66.34 kB / 0.5238 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.009089, allocations: 55.34 kB / 0.5239 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.009275, allocations: 166.9 kB / 0.5241 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.009296, allocations: 25.7 kB / 0.5241 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.658e-05/0.009362, allocations: 93.22 kB / 0.5242 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.296e-05/0.009375, allocations: 4 kB / 0.5242 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.009423, allocations: 29.7 kB / 0.5242 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.009592, allocations: 319.6 kB / 0.5245 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-05/0.009654, allocations: 39.98 kB / 0.5245 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.207e-05/0.009707, allocations: 40.61 kB / 0.5246 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.756e-05/0.009804, allocations: 72.81 kB / 0.5247 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.009806, allocations: 7.25 kB / 0.5247 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001815/0.009987, allocations: 124.9 kB / 0.5248 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.01001, allocations: 10.33 kB / 0.5248 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.01002, allocations: 4 kB / 0.5248 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.01004, allocations: 0 / 0.5248 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.351e-05/0.01005, allocations: 0 / 0.5248 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.01006, allocations: 3.938 kB / 0.5248 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.828e-05/0.01009, allocations: 11.89 kB / 0.5248 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.0101, allocations: 0.7812 kB / 0.5248 GB, free: 13.11 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 0.0001886/0.01028, allocations: 132.7 kB / 0.5249 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.0103, allocations: 3.953 kB / 0.5249 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.01042, allocations: 62.42 kB / 0.525 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.01042, allocations: 1.594 kB / 0.525 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.01043, allocations: 7.938 kB / 0.525 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.01043, allocations: 0 / 0.525 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.01055, allocations: 117.3 kB / 0.5251 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.01055, allocations: 0 / 0.5251 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-06/0.01055, allocations: 1.812 kB / 0.5251 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.01055, allocations: 0 / 0.5251 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.01056, allocations: 3.984 kB / 0.5251 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.01056, allocations: 0 / 0.5251 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01056, allocations: 4 kB / 0.5251 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.01067, allocations: 90.59 kB / 0.5252 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.076e-05/0.01068, allocations: 3.953 kB / 0.5252 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.01069, allocations: 4 kB / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.01071, allocations: 2.75 kB / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.457e-05/0.01072, allocations: 0 / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.01073, allocations: 3.938 kB / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001167/0.01084, allocations: 126.7 kB / 0.5253 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.01084, allocations: 0 / 0.5253 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003495/0.01119, allocations: 87.8 kB / 0.5254 GB, free: 12.41 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.0006513/0.01184, allocations: 242.9 kB / 0.5257 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.01202, allocations: 98.59 kB / 0.5258 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01202, allocations: 0.7188 kB / 0.5258 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.931e-05/0.01204, allocations: 11.94 kB / 0.5258 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.01219, allocations: 3.156 kB / 0.5258 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.01253, allocations: 172 kB / 0.5259 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.189e-05/0.01262, allocations: 79.27 kB / 0.526 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.051e-05/0.01264, allocations: 3.984 kB / 0.526 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.207e-05/0.01266, allocations: 8.5 kB / 0.526 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of SimCode: time 3.41e-07/0.01266, allocations: 4 kB / 0.526 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of Templates: time 0.005891/0.01855, allocations: 2.205 MB / 0.5282 GB, free: 9.672 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=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.878101140959188]