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.00186/0.00186, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.002122/0.002122, allocations: 166.6 kB / 22.46 MB, free: 5.359 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.442/1.442, allocations: 177.1 MB / 202.8 MB, free: 9.172 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.196/1.196, allocations: 154.6 MB / 413.8 MB, free: 5.223 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.463e-06/1.463e-06, allocations: 0 / 0.6185 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.191e-05/2.337e-05, allocations: 2.281 kB / 0.6185 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001425/0.001449, allocations: 0.5185 MB / 0.619 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002503/0.003952, allocations: 1.615 MB / 0.6206 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.43e-05/0.003986, allocations: 2.562 kB / 0.6206 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.004129, allocations: 27.84 kB / 0.6207 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.458e-05/0.004154, allocations: 7.984 kB / 0.6207 GB, free: 2.41 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.0009425/0.005097, allocations: 279 kB / 0.6209 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.749e-05/0.005174, allocations: 23.97 kB / 0.6209 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.489e-05/0.005209, allocations: 7.938 kB / 0.621 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.834e-05/0.005257, allocations: 11.98 kB / 0.621 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.582e-05/0.005303, allocations: 19.97 kB / 0.621 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.005318, allocations: 0 / 0.621 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007456/0.006064, allocations: 462.9 kB / 0.6214 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.228e-05/0.006126, allocations: 15.98 kB / 0.6214 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.288e-05/0.006159, allocations: 11.94 kB / 0.6215 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005453/0.006704, allocations: 339.2 kB / 0.6218 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.006707, allocations: 0 / 0.6218 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.81e-07/0.006708, allocations: 0 / 0.6218 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.006719, allocations: 0 / 0.6218 GB, free: 1.262 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.0005958/0.007315, allocations: 345.4 kB / 0.6221 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.007364, allocations: 15.97 kB / 0.6221 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.007405, allocations: 4.891 kB / 0.6221 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.007611, allocations: 125.7 kB / 0.6222 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.007619, allocations: 384 / 0.6222 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.007639, allocations: 4.375 kB / 0.6223 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.007781, allocations: 38.27 kB / 0.6223 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.007792, allocations: 192 / 0.6223 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.007803, allocations: 384 / 0.6223 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.007811, allocations: 3.938 kB / 0.6223 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.781e-05/0.007848, allocations: 15.98 kB / 0.6223 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002085/0.008057, allocations: 133.2 kB / 0.6224 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 7.228e-05/0.008129, allocations: 26.52 kB / 0.6225 GB, free: 476 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.333e-05/0.008152, allocations: 8.922 kB / 0.6225 GB, free: 464 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 5.897e-05/0.008211, allocations: 11.98 kB / 0.6225 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.008243, allocations: 34.56 kB / 0.6225 GB, free: 408 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.008244, allocations: 0 / 0.6225 GB, free: 408 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001921/0.008436, allocations: 57.64 kB / 0.6226 GB, free: 344 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.008496, allocations: 63.28 kB / 0.6226 GB, free: 268 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.0087, allocations: 170.2 kB / 0.6228 GB, free: 88 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.008718, allocations: 25.7 kB / 0.6228 GB, free: 56 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.00881, allocations: 96.12 kB / 0.6229 GB, free: 15.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.008825, allocations: 3.953 kB / 0.6229 GB, free: 15.95 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.509e-05/0.00887, allocations: 25.83 kB / 0.6229 GB, free: 15.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.009066, allocations: 322.8 kB / 0.6232 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.385e-05/0.00913, allocations: 35.98 kB / 0.6233 GB, free: 15.56 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.097e-05/0.009191, allocations: 43.14 kB / 0.6233 GB, free: 15.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.954e-05/0.009291, allocations: 72.78 kB / 0.6234 GB, free: 15.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.009293, allocations: 0 / 0.6234 GB, free: 15.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001604/0.009453, allocations: 121.6 kB / 0.6235 GB, free: 15.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.009468, allocations: 6.188 kB / 0.6235 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.009485, allocations: 7.938 kB / 0.6235 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.009503, allocations: 0 / 0.6235 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.534e-05/0.009518, allocations: 0 / 0.6235 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.00953, allocations: 8 kB / 0.6235 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.561e-05/0.009556, allocations: 11.89 kB / 0.6235 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.009566, allocations: 3.984 kB / 0.6235 GB, free: 15.29 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.0001392/0.009706, allocations: 127.7 kB / 0.6237 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.009719, allocations: 7.953 kB / 0.6237 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.009837, allocations: 53.5 kB / 0.6237 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.009842, allocations: 3.984 kB / 0.6237 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.00985, allocations: 7.938 kB / 0.6237 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.009853, allocations: 3.938 kB / 0.6237 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.009972, allocations: 121.3 kB / 0.6239 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.009973, allocations: 0 / 0.6239 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.108e-06/0.009977, allocations: 0 / 0.6239 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.00998, allocations: 4 kB / 0.6239 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.009988, allocations: 0 / 0.6239 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.009991, allocations: 7.938 kB / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009992, allocations: 0 / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.0101, allocations: 81.02 kB / 0.6239 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.01012, allocations: 11.94 kB / 0.624 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.01013, allocations: 0 / 0.624 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.15e-05/0.01014, allocations: 4.031 kB / 0.624 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.01016, allocations: 0 / 0.624 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.01017, allocations: 3.938 kB / 0.624 GB, free: 14.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001116/0.01028, allocations: 122.5 kB / 0.6241 GB, free: 14.68 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.01028, allocations: 0 / 0.6241 GB, free: 14.68 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003611/0.01064, allocations: 87.8 kB / 0.6242 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.0006962/0.01133, allocations: 252.6 kB / 0.6244 GB, free: 14.37 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002064/0.01154, allocations: 97.61 kB / 0.6245 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01154, allocations: 0 / 0.6245 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.747e-05/0.01156, allocations: 11.98 kB / 0.6245 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.01171, allocations: 6.406 kB / 0.6245 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003359/0.01205, allocations: 169.2 kB / 0.6247 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.536e-05/0.01212, allocations: 79.27 kB / 0.6247 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.05e-05/0.01214, allocations: 8.109 kB / 0.6248 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.823e-05/0.01216, allocations: 8.5 kB / 0.6248 GB, free: 13.95 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.01216, allocations: 4 kB / 0.6248 GB, free: 13.94 MB / 0.545 GB Notification: Performance of Templates: time 0.005632/0.01779, allocations: 2.187 MB / 0.6269 GB, free: 11.76 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.751420799642801] Failed to read output from testmodel.py, exit status != 0: 0.026677969843149185 0.040674131 0.030990858000000003 Calling exit ...