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.00169/0.00169, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001576/0.001576, allocations: 214.5 kB / 22.24 MB, free: 5.262 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.548/1.548, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.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.368/1.368, allocations: 203.5 MB / 0.5038 GB, free: 4.871 MB / 414.1 MB " [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: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 71.91 kB / 0.7182 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6811/0.6833, allocations: 102 MB / 0.8178 GB, free: 29.09 MB / 0.6387 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001669/0.6849, allocations: 0.5147 MB / 0.8183 GB, free: 28.8 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.002192/0.6871, allocations: 1.616 MB / 0.8199 GB, free: 27.71 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.6872, allocations: 1.125 kB / 0.8199 GB, free: 27.71 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.6873, allocations: 20.28 kB / 0.8199 GB, free: 27.7 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 2.722e-05/0.6873, allocations: 9.172 kB / 0.8199 GB, free: 27.7 MB / 0.6387 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.0009477/0.6883, allocations: 276.1 kB / 0.8202 GB, free: 27.6 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 6.822e-05/0.6884, allocations: 25.58 kB / 0.8202 GB, free: 27.59 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.6884, allocations: 6.859 kB / 0.8202 GB, free: 27.59 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 3.118e-05/0.6884, allocations: 14.34 kB / 0.8202 GB, free: 27.58 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 4.387e-05/0.6885, allocations: 19.08 kB / 0.8203 GB, free: 27.58 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.6885, allocations: 1.406 kB / 0.8203 GB, free: 27.58 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008282/0.6893, allocations: 453.8 kB / 0.8207 GB, free: 27.45 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 5.092e-05/0.6894, allocations: 14.06 kB / 0.8207 GB, free: 27.45 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.6894, allocations: 17.88 kB / 0.8207 GB, free: 27.44 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0004741/0.6899, allocations: 294 kB / 0.821 GB, free: 27.37 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.6899, allocations: 5.438 kB / 0.821 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6899, allocations: 1.094 kB / 0.821 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.6899, allocations: 0 / 0.821 GB, free: 27.36 MB / 0.6387 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.0003971/0.6903, allocations: 346.7 kB / 0.8213 GB, free: 27.04 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.6903, allocations: 9.906 kB / 0.8213 GB, free: 27.04 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.081e-05/0.6904, allocations: 7.984 kB / 0.8214 GB, free: 27.04 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.6905, allocations: 117 kB / 0.8215 GB, free: 26.91 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.6905, allocations: 2.406 kB / 0.8215 GB, free: 26.91 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-06/0.6905, allocations: 1.984 kB / 0.8215 GB, free: 26.91 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.6906, allocations: 43.92 kB / 0.8215 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.6906, allocations: 0.7969 kB / 0.8215 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.6906, allocations: 1.5 kB / 0.8215 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.6906, allocations: 0 / 0.8215 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.604e-05/0.6907, allocations: 20.75 kB / 0.8215 GB, free: 26.86 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.6908, allocations: 120.7 kB / 0.8216 GB, free: 26.73 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 5.652e-05/0.6909, allocations: 28.61 kB / 0.8217 GB, free: 26.71 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.866e-05/0.6909, allocations: 14.23 kB / 0.8217 GB, free: 26.7 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.691, allocations: 10.88 kB / 0.8217 GB, free: 26.7 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.536e-05/0.691, allocations: 35.62 kB / 0.8217 GB, free: 26.65 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.691, allocations: 0.5625 kB / 0.8217 GB, free: 26.65 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0002023/0.6912, allocations: 68.55 kB / 0.8218 GB, free: 26.61 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.6912, allocations: 52.53 kB / 0.8219 GB, free: 26.55 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.6914, allocations: 175 kB / 0.822 GB, free: 26.43 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.6914, allocations: 28.3 kB / 0.822 GB, free: 26.39 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 3.928e-05/0.6914, allocations: 98.59 kB / 0.8221 GB, free: 26.3 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 1.028e-05/0.6914, allocations: 0 / 0.8221 GB, free: 26.3 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.6915, allocations: 26.84 kB / 0.8222 GB, free: 26.28 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.6915, allocations: 328 kB / 0.8225 GB, free: 25.96 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.053e-05/0.6916, allocations: 41.47 kB / 0.8225 GB, free: 25.95 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.042e-05/0.6916, allocations: 42.23 kB / 0.8226 GB, free: 25.95 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.738e-05/0.6917, allocations: 75.22 kB / 0.8226 GB, free: 25.92 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.6917, allocations: 0 / 0.8226 GB, free: 25.92 MB / 0.6387 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00016/0.6919, allocations: 126.6 kB / 0.8227 GB, free: 25.87 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.6919, allocations: 5.375 kB / 0.8228 GB, free: 25.87 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.6919, allocations: 6.125 kB / 0.8228 GB, free: 25.87 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.6919, allocations: 1.156 kB / 0.8228 GB, free: 25.87 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.439e-05/0.6919, allocations: 3.438 kB / 0.8228 GB, free: 25.87 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.6919, allocations: 0.875 kB / 0.8228 GB, free: 25.87 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.448e-05/0.692, allocations: 5.328 kB / 0.8228 GB, free: 25.86 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.692, allocations: 3.312 kB / 0.8228 GB, free: 25.86 MB / 0.6387 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.0001412/0.6921, allocations: 125.8 kB / 0.8229 GB, free: 25.75 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.21e-05/0.6921, allocations: 6.844 kB / 0.8229 GB, free: 25.74 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.6922, allocations: 73.78 kB / 0.823 GB, free: 25.68 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.6922, allocations: 2.656 kB / 0.823 GB, free: 25.68 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.6923, allocations: 0 / 0.823 GB, free: 25.68 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.6923, allocations: 4.641 kB / 0.823 GB, free: 25.68 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.106e-05/0.6923, allocations: 117 kB / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.6923, allocations: 2.469 kB / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-06/0.6923, allocations: 1.531 kB / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.6923, allocations: 0 / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.6923, allocations: 0.75 kB / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.6923, allocations: 5.188 kB / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.6923, allocations: 4.203 kB / 0.8231 GB, free: 25.55 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.814e-05/0.6924, allocations: 86.8 kB / 0.8232 GB, free: 25.47 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 1.114e-05/0.6924, allocations: 7.188 kB / 0.8232 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.6924, allocations: 0.9375 kB / 0.8232 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.356e-05/0.6925, allocations: 4.547 kB / 0.8232 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.6925, allocations: 2.266 kB / 0.8232 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.6925, allocations: 0 / 0.8232 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 8.564e-05/0.6926, allocations: 124.5 kB / 0.8233 GB, free: 25.38 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1e-07/0.6926, allocations: 0 / 0.8233 GB, free: 25.38 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0004052/0.693, allocations: 85.03 kB / 0.8234 GB, free: 25.36 MB / 0.6387 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.0005764/0.6936, allocations: 237.8 kB / 0.8236 GB, free: 25.24 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0001809/0.6937, allocations: 92.44 kB / 0.8237 GB, free: 25.2 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.6937, allocations: 0 / 0.8237 GB, free: 25.2 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 2.044e-05/0.6938, allocations: 14.03 kB / 0.8237 GB, free: 25.2 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.6939, allocations: 12.64 kB / 0.8237 GB, free: 25.19 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.6942, allocations: 172.1 kB / 0.8239 GB, free: 25.05 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.654e-05/0.6943, allocations: 82.33 kB / 0.824 GB, free: 24.97 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 2.032e-05/0.6943, allocations: 2.375 kB / 0.824 GB, free: 24.97 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.953e-05/0.6943, allocations: 9.344 kB / 0.824 GB, free: 24.96 MB / 0.6387 GB Notification: Performance of SimCode: time 3.31e-07/0.6943, allocations: 0 / 0.824 GB, free: 24.96 MB / 0.6387 GB Notification: Performance of Templates: time 0.006789/0.7011, allocations: 2.206 MB / 0.8261 GB, free: 24.77 MB / 0.6387 GB " [Timeout remaining time 659] 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: 6.998657196760178] Failed to read output from testmodel.py, exit status != 0: 0.7100859433412552 0.721380462 0.028737060000000002 Calling exit ...