Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0007303/0.0007303, allocations: 117.6 kB / 19.7 MB, free: 0.5273 MB / 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.0007464/0.0007464, allocations: 215.7 kB / 23.01 MB, free: 3.098 MB / 13.93 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 0.9064/0.9064, allocations: 230.6 MB / 256.8 MB, free: 9.812 MB / 202.7 MB " [Timeout remaining time 179] 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-531:190: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-531:198: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 0.7619/0.7619, allocations: 203.8 MB / 0.5049 GB, free: 10.74 MB / 410.7 MB " [Timeout remaining time 179] 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [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.0008931/0.0008931, allocations: 67.39 kB / 0.7194 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4922/0.4931, allocations: 102 MB / 0.8191 GB, free: 1.566 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001281/0.4944, allocations: 0.518 MB / 0.8196 GB, free: 1.25 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.4959, allocations: 1.701 MB / 0.8212 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.345e-05/0.4959, allocations: 0 / 0.8212 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.4961, allocations: 62.72 kB / 0.8213 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.435e-05/0.4962, allocations: 28.89 kB / 0.8213 GB, free: 40 kB / 0.6042 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.0007592/0.4969, allocations: 287.7 kB / 0.8216 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.777e-05/0.497, allocations: 31.8 kB / 0.8216 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 3.863e-05/0.497, allocations: 4.156 kB / 0.8216 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.815e-05/0.4971, allocations: 24.03 kB / 0.8216 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.648e-05/0.4972, allocations: 48.42 kB / 0.8217 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.4972, allocations: 0 / 0.8217 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006018/0.4978, allocations: 490.5 kB / 0.8222 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.517e-05/0.4978, allocations: 30.56 kB / 0.8222 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.2e-05/0.4979, allocations: 28.53 kB / 0.8222 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.4982, allocations: 305.1 kB / 0.8225 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4982, allocations: 1.031 kB / 0.8225 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.875e-06/0.4982, allocations: 0.75 kB / 0.8225 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.4982, allocations: 3.938 kB / 0.8225 GB, free: 15.62 MB / 0.6198 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.0003784/0.4986, allocations: 357.8 kB / 0.8228 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.4986, allocations: 12.62 kB / 0.8229 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.786e-05/0.4987, allocations: 14.34 kB / 0.8229 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.4988, allocations: 147.2 kB / 0.823 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.4988, allocations: 4.375 kB / 0.823 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.4988, allocations: 1.531 kB / 0.823 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.44e-05/0.4989, allocations: 40.61 kB / 0.8231 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.4989, allocations: 1.125 kB / 0.8231 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.499, allocations: 1.172 kB / 0.8231 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.499, allocations: 0 / 0.8231 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.527e-05/0.499, allocations: 17.83 kB / 0.8231 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.4991, allocations: 158.5 kB / 0.8232 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.138e-05/0.4992, allocations: 32.86 kB / 0.8233 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.016e-05/0.4992, allocations: 13.81 kB / 0.8233 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.4992, allocations: 12.69 kB / 0.8233 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.4992, allocations: 38.5 kB / 0.8233 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4992, allocations: 0 / 0.8233 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001349/0.4994, allocations: 72.3 kB / 0.8234 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.4994, allocations: 52.23 kB / 0.8234 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.4996, allocations: 219.9 kB / 0.8237 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.4996, allocations: 25.7 kB / 0.8237 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.4997, allocations: 102 kB / 0.8238 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.11e-05/0.4997, allocations: 4.562 kB / 0.8238 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.4997, allocations: 32.66 kB / 0.8238 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.666e-05/0.4998, allocations: 322.9 kB / 0.8241 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.485e-05/0.4999, allocations: 53.86 kB / 0.8242 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.354e-05/0.4999, allocations: 53.58 kB / 0.8242 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.311e-05/0.5, allocations: 94.58 kB / 0.8243 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5, allocations: 1.094 kB / 0.8243 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001467/0.5002, allocations: 167 kB / 0.8245 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.5002, allocations: 10.81 kB / 0.8245 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.5002, allocations: 1.25 kB / 0.8245 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.5002, allocations: 2.234 kB / 0.8245 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.224e-05/0.5002, allocations: 0 / 0.8245 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.5002, allocations: 1.125 kB / 0.8245 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/0.5002, allocations: 10.92 kB / 0.8245 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.5002, allocations: 5.062 kB / 0.8245 GB, free: 13.99 MB / 0.6198 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.0001153/0.5004, allocations: 133 kB / 0.8246 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.158e-06/0.5004, allocations: 11.14 kB / 0.8246 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.861e-05/0.5005, allocations: 63.94 kB / 0.8247 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.5005, allocations: 0.5156 kB / 0.8247 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5005, allocations: 1.406 kB / 0.8247 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.5005, allocations: 0 / 0.8247 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.595e-05/0.5006, allocations: 161.6 kB / 0.8249 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5006, allocations: 8.531 kB / 0.8249 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-06/0.5006, allocations: 5.531 kB / 0.8249 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.5006, allocations: 4.641 kB / 0.8249 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.039e-06/0.5006, allocations: 0 / 0.8249 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.5006, allocations: 1.469 kB / 0.8249 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.5006, allocations: 0.5625 kB / 0.8249 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.162e-05/0.5007, allocations: 82.16 kB / 0.825 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.59e-05/0.5007, allocations: 18.06 kB / 0.825 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.5007, allocations: 5.281 kB / 0.825 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-06/0.5007, allocations: 0.6094 kB / 0.825 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.5007, allocations: 1.969 kB / 0.825 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.5007, allocations: 0 / 0.825 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.623e-05/0.5008, allocations: 150.8 kB / 0.8251 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5008, allocations: 0 / 0.8251 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002293/0.501, allocations: 89.55 kB / 0.8252 GB, free: 13.44 MB / 0.6198 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.000381/0.5014, allocations: 225.8 kB / 0.8254 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001603/0.5016, allocations: 118.6 kB / 0.8255 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.5016, allocations: 5.188 kB / 0.8255 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.194e-05/0.5016, allocations: 9.984 kB / 0.8255 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/0.5017, allocations: 7.562 kB / 0.8256 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004646/0.5022, allocations: 244.8 kB / 0.8258 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.5024, allocations: 0.7029 MB / 0.8265 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.57e-05/0.5024, allocations: 9.344 kB / 0.8265 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of SimCode: time 4.01e-07/0.5024, allocations: 0 / 0.8265 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of Templates: time 0.004111/0.5065, allocations: 2.474 MB / 0.8289 GB, free: 12.16 MB / 0.6198 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.219341038959101] Failed to read output from testmodel.py, exit status != 0: 0.512134418822825 0.522786724 0.022366769 Calling exit ...