Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.00156/0.00156, allocations: 78.56 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001518/0.001518, allocations: 168.2 kB / 22.45 MB, free: 5.363 MB / 14.72 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.427/1.427, allocations: 177.2 MB / 202.8 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686: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/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 1.171/1.171, allocations: 154.7 MB / 413.9 MB, free: 5.133 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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/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 4.0.0/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_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 3.938 kB / 0.6187 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.892e-05/3.069e-05, allocations: 2.281 kB / 0.6187 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001504/0.001535, allocations: 0.5208 MB / 0.6192 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002573/0.004108, allocations: 1.606 MB / 0.6208 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.065e-05/0.004149, allocations: 4.656 kB / 0.6208 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.004307, allocations: 19.91 kB / 0.6208 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.585e-05/0.004343, allocations: 16.92 kB / 0.6208 GB, free: 2.414 MB / 0.5294 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.001009/0.005351, allocations: 285.1 kB / 0.6211 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.045e-05/0.005432, allocations: 23.91 kB / 0.6211 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.933e-05/0.005471, allocations: 5.938 kB / 0.6211 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.036e-05/0.005521, allocations: 15.98 kB / 0.6211 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.304e-05/0.005564, allocations: 19.91 kB / 0.6212 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.005578, allocations: 0 / 0.6212 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008332/0.006412, allocations: 451.9 kB / 0.6216 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.413e-05/0.006466, allocations: 15.94 kB / 0.6216 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.447e-05/0.0065, allocations: 12.83 kB / 0.6216 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005055/0.007006, allocations: 347.2 kB / 0.6219 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.00701, allocations: 0 / 0.6219 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.52e-07/0.00701, allocations: 0 / 0.6219 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.007017, allocations: 0 / 0.6219 GB, free: 1.266 MB / 0.5294 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.0004977/0.007515, allocations: 353.4 kB / 0.6223 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.007556, allocations: 8.031 kB / 0.6223 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.007592, allocations: 8.891 kB / 0.6223 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.007767, allocations: 113.8 kB / 0.6224 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.58e-06/0.007773, allocations: 384 / 0.6224 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.007787, allocations: 384 / 0.6224 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.007902, allocations: 38.25 kB / 0.6224 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.007913, allocations: 4.188 kB / 0.6225 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.007922, allocations: 4.312 kB / 0.6225 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.007928, allocations: 3.938 kB / 0.6225 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.385e-05/0.007962, allocations: 19.98 kB / 0.6225 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001692/0.008131, allocations: 121.3 kB / 0.6226 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.556e-05/0.008187, allocations: 30.56 kB / 0.6226 GB, free: 488 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.586e-05/0.008212, allocations: 12.92 kB / 0.6226 GB, free: 472 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.008248, allocations: 7.984 kB / 0.6226 GB, free: 464 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.008274, allocations: 34.5 kB / 0.6227 GB, free: 420 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.008275, allocations: 0 / 0.6227 GB, free: 420 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001771/0.008452, allocations: 65.58 kB / 0.6227 GB, free: 348 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.008495, allocations: 59.34 kB / 0.6228 GB, free: 276 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.008669, allocations: 169.7 kB / 0.623 GB, free: 100 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.008687, allocations: 29.7 kB / 0.623 GB, free: 64 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.008761, allocations: 88.14 kB / 0.6231 GB, free: 15.97 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.008774, allocations: 3.953 kB / 0.6231 GB, free: 15.97 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.008818, allocations: 29.7 kB / 0.6231 GB, free: 15.93 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.00897, allocations: 322.8 kB / 0.6234 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.789e-05/0.009028, allocations: 39.98 kB / 0.6234 GB, free: 15.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.398e-05/0.009072, allocations: 39.92 kB / 0.6235 GB, free: 15.53 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.272e-05/0.009164, allocations: 79.77 kB / 0.6236 GB, free: 15.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.009166, allocations: 0 / 0.6236 GB, free: 15.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001648/0.009331, allocations: 129.5 kB / 0.6237 GB, free: 15.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.009347, allocations: 4 kB / 0.6237 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.009363, allocations: 0 / 0.6237 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.009379, allocations: 0 / 0.6237 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.847e-05/0.009397, allocations: 7.984 kB / 0.6237 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.009407, allocations: 3.938 kB / 0.6237 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.206e-05/0.009429, allocations: 3.953 kB / 0.6237 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.009439, allocations: 4 kB / 0.6237 GB, free: 15.3 MB / 0.545 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.0001624/0.009602, allocations: 131.2 kB / 0.6238 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.009614, allocations: 7.953 kB / 0.6238 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.009735, allocations: 61.42 kB / 0.6239 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.009736, allocations: 0 / 0.6239 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.009743, allocations: 3.938 kB / 0.6239 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.009745, allocations: 0 / 0.6239 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.009859, allocations: 125.2 kB / 0.624 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.00986, allocations: 4 kB / 0.624 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.847e-06/0.009863, allocations: 0 / 0.624 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.009865, allocations: 0 / 0.624 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.009871, allocations: 4.031 kB / 0.624 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.009874, allocations: 4 kB / 0.624 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.009875, allocations: 0 / 0.624 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.832e-05/0.009963, allocations: 81.02 kB / 0.6241 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.174e-05/0.009975, allocations: 7.953 kB / 0.6241 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.009989, allocations: 3.938 kB / 0.6241 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.113e-05/0.01, allocations: 0 / 0.6241 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.504e-05/0.01003, allocations: 7.984 kB / 0.6241 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.01003, allocations: 3.938 kB / 0.6241 GB, free: 14.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001104/0.01014, allocations: 118.5 kB / 0.6242 GB, free: 14.69 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01014, allocations: 8.031 kB / 0.6243 GB, free: 14.68 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003354/0.01047, allocations: 87.8 kB / 0.6243 GB, free: 14.59 MB / 0.545 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.0005881/0.01106, allocations: 251.4 kB / 0.6246 GB, free: 14.37 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001885/0.01125, allocations: 93.67 kB / 0.6247 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01125, allocations: 0 / 0.6247 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.883e-05/0.01127, allocations: 11.98 kB / 0.6247 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.01142, allocations: 7.906 kB / 0.6247 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003211/0.01174, allocations: 169.1 kB / 0.6248 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.828e-05/0.01183, allocations: 83.25 kB / 0.6249 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.169e-05/0.01185, allocations: 7.938 kB / 0.6249 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.92e-05/0.01187, allocations: 8.5 kB / 0.6249 GB, free: 13.95 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.01187, allocations: 0 / 0.6249 GB, free: 13.95 MB / 0.545 GB Notification: Performance of Templates: time 0.005671/0.01754, allocations: 2.166 MB / 0.6271 GB, free: 11.78 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.576100690290332] Failed to read output from testmodel.py, exit status != 0: 0.026323433965444565 0.040521153000000004 0.030336591000000003 Calling exit ...