Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001411/0.001411, allocations: 81.86 kB / 19.18 MB, free: 2.363 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.001412/0.001412, allocations: 175.4 kB / 22.46 MB, free: 4.988 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.394/1.394, allocations: 177.2 MB / 202.8 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 179] 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.161/1.161, allocations: 154.7 MB / 413.9 MB, free: 5.148 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 0.6187 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.615e-05/2.797e-05, allocations: 5.453 kB / 0.6187 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001541/0.001569, allocations: 0.5146 MB / 0.6192 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002482/0.004051, allocations: 1.616 MB / 0.6208 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.00409, allocations: 0 / 0.6208 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.004292, allocations: 68.8 kB / 0.6209 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.612e-05/0.004328, allocations: 23.97 kB / 0.6209 GB, free: 2.34 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.0009606/0.005289, allocations: 281.9 kB / 0.6212 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.873e-05/0.005387, allocations: 43.83 kB / 0.6212 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.005428, allocations: 4.5 kB / 0.6212 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.058e-05/0.005478, allocations: 21.38 kB / 0.6212 GB, free: 2 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.263e-05/0.005551, allocations: 43.94 kB / 0.6213 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.005565, allocations: 0 / 0.6213 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007136/0.006278, allocations: 451.1 kB / 0.6217 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/0.006344, allocations: 35.84 kB / 0.6217 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.006371, allocations: 11.92 kB / 0.6217 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005093/0.00688, allocations: 359.1 kB / 0.6221 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.006883, allocations: 0 / 0.6221 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.002e-06/0.006884, allocations: 0 / 0.6221 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.00689, allocations: 0 / 0.6221 GB, free: 1.117 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.0004806/0.007371, allocations: 357.3 kB / 0.6224 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.007403, allocations: 11.97 kB / 0.6224 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.007438, allocations: 20.84 kB / 0.6224 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.007595, allocations: 133.6 kB / 0.6226 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.813e-06/0.007602, allocations: 4.359 kB / 0.6226 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.007617, allocations: 4.375 kB / 0.6226 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.574e-05/0.007712, allocations: 38.27 kB / 0.6226 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.00772, allocations: 192 / 0.6226 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.007728, allocations: 384 / 0.6226 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.007734, allocations: 3.938 kB / 0.6226 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.821e-05/0.007773, allocations: 19.98 kB / 0.6226 GB, free: 488 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.007938, allocations: 141.2 kB / 0.6228 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.157e-05/0.007989, allocations: 34.5 kB / 0.6228 GB, free: 272 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.804e-05/0.008027, allocations: 12.92 kB / 0.6228 GB, free: 256 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.00806, allocations: 7.906 kB / 0.6228 GB, free: 248 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.008092, allocations: 42.55 kB / 0.6229 GB, free: 196 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.008092, allocations: 0 / 0.6229 GB, free: 196 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001575/0.00825, allocations: 61.64 kB / 0.6229 GB, free: 128 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.008301, allocations: 59.28 kB / 0.623 GB, free: 56 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/0.008553, allocations: 216.5 kB / 0.6232 GB, free: 15.83 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.008569, allocations: 29.7 kB / 0.6232 GB, free: 15.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.282e-05/0.008642, allocations: 100.1 kB / 0.6233 GB, free: 15.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.078e-05/0.008653, allocations: 8.078 kB / 0.6233 GB, free: 15.69 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.467e-05/0.008697, allocations: 29.7 kB / 0.6234 GB, free: 15.65 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.008843, allocations: 326.8 kB / 0.6237 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.008918, allocations: 51.98 kB / 0.6237 GB, free: 15.27 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.846e-05/0.008976, allocations: 55.97 kB / 0.6238 GB, free: 15.22 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.009077, allocations: 91.5 kB / 0.6239 GB, free: 15.13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.009078, allocations: 0 / 0.6239 GB, free: 15.13 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001973/0.009276, allocations: 149.6 kB / 0.624 GB, free: 14.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.009287, allocations: 8 kB / 0.624 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.0093, allocations: 7.922 kB / 0.624 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.009312, allocations: 64 / 0.624 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.044e-05/0.009322, allocations: 4 kB / 0.624 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.009327, allocations: 11.88 kB / 0.624 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.691e-05/0.009354, allocations: 11.84 kB / 0.624 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.009362, allocations: 4 kB / 0.624 GB, free: 14.93 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001482/0.00951, allocations: 131.7 kB / 0.6242 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.009527, allocations: 11.94 kB / 0.6242 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.009631, allocations: 66.17 kB / 0.6242 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.009632, allocations: 0 / 0.6242 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.009636, allocations: 7.969 kB / 0.6243 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.009638, allocations: 0 / 0.6243 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/0.009749, allocations: 129.3 kB / 0.6244 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.00975, allocations: 0 / 0.6244 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-06/0.009756, allocations: 7.922 kB / 0.6244 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.009757, allocations: 0 / 0.6244 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-06/0.009761, allocations: 0 / 0.6244 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.009764, allocations: 3.938 kB / 0.6244 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.009765, allocations: 0 / 0.6244 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.905e-05/0.009854, allocations: 88.97 kB / 0.6245 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.227e-05/0.009866, allocations: 11.91 kB / 0.6245 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.019e-05/0.009876, allocations: 7.969 kB / 0.6245 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.409e-05/0.00989, allocations: 8 kB / 0.6245 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.009906, allocations: 3.984 kB / 0.6245 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.009913, allocations: 3.938 kB / 0.6245 GB, free: 14.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001258/0.01004, allocations: 148.3 kB / 0.6246 GB, free: 14.25 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.01004, allocations: 0 / 0.6246 GB, free: 14.25 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000304/0.01034, allocations: 87.8 kB / 0.6247 GB, free: 14.17 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.0005459/0.01089, allocations: 249.3 kB / 0.625 GB, free: 13.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001927/0.01108, allocations: 117.6 kB / 0.6251 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01108, allocations: 0 / 0.6251 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.036e-05/0.0111, allocations: 15.98 kB / 0.6251 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.01124, allocations: 0 / 0.6251 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003297/0.01157, allocations: 205.9 kB / 0.6253 GB, free: 13.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.712e-05/0.01166, allocations: 100.3 kB / 0.6254 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.948e-05/0.01168, allocations: 3.984 kB / 0.6254 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.364e-05/0.0117, allocations: 8.5 kB / 0.6254 GB, free: 13.45 MB / 0.545 GB Notification: Performance of SimCode: time 3.61e-07/0.0117, allocations: 0 / 0.6254 GB, free: 13.45 MB / 0.545 GB Notification: Performance of Templates: time 0.005491/0.01719, allocations: 2.182 MB / 0.6275 GB, free: 11.27 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.540039598941803] Failed to read output from testmodel.py, exit status != 0: 0.025409892201423645 0.03958636 0.029682093000000003 Calling exit ...