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.001326/0.001326, 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.001408/0.001408, allocations: 212 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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 1.269/1.269, allocations: 203.8 MB / 0.5041 GB, free: 4.609 MB / 414.1 MB " [Timeout remaining time 178] 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.002405/0.002405, allocations: 67.89 kB / 0.7186 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6572/0.6596, allocations: 102 MB / 0.8182 GB, free: 28.92 MB / 0.6387 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001983/0.6616, allocations: 0.5235 MB / 0.8187 GB, free: 28.62 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.002573/0.6642, allocations: 1.615 MB / 0.8203 GB, free: 27.52 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.245e-05/0.6642, allocations: 0 / 0.8203 GB, free: 27.52 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.6644, allocations: 65.64 kB / 0.8204 GB, free: 27.51 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 5.363e-05/0.6645, allocations: 28.2 kB / 0.8204 GB, free: 27.51 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.001163/0.6656, allocations: 274.2 kB / 0.8207 GB, free: 27.41 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.6658, allocations: 41.23 kB / 0.8207 GB, free: 27.39 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 5.582e-05/0.6658, allocations: 3.766 kB / 0.8207 GB, free: 27.39 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 5.684e-05/0.6659, allocations: 17.73 kB / 0.8207 GB, free: 27.39 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.666, allocations: 49.55 kB / 0.8208 GB, free: 27.39 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.666, allocations: 1.656 kB / 0.8208 GB, free: 27.39 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009916/0.667, allocations: 449 kB / 0.8212 GB, free: 27.27 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 8.016e-05/0.6671, allocations: 27.89 kB / 0.8212 GB, free: 27.26 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 3.879e-05/0.6671, allocations: 22.23 kB / 0.8213 GB, free: 27.24 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0006135/0.6677, allocations: 310.8 kB / 0.8216 GB, free: 27.16 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.6677, allocations: 0 / 0.8216 GB, free: 27.16 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.923e-06/0.6677, allocations: 0.9062 kB / 0.8216 GB, free: 27.16 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.6678, allocations: 1.281 kB / 0.8216 GB, free: 27.16 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.0004484/0.6682, allocations: 370.1 kB / 0.8219 GB, free: 26.82 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.6682, allocations: 14.72 kB / 0.8219 GB, free: 26.82 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.6683, allocations: 12.95 kB / 0.8219 GB, free: 26.81 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.6684, allocations: 132.7 kB / 0.8221 GB, free: 26.67 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.6684, allocations: 1.562 kB / 0.8221 GB, free: 26.67 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.6684, allocations: 5.594 kB / 0.8221 GB, free: 26.66 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.6685, allocations: 42.25 kB / 0.8221 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.6686, allocations: 1.094 kB / 0.8221 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.6686, allocations: 0 / 0.8221 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.6686, allocations: 1.312 kB / 0.8221 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.699e-05/0.6686, allocations: 19.2 kB / 0.8221 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.6688, allocations: 144.1 kB / 0.8223 GB, free: 26.48 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 5.895e-05/0.6688, allocations: 29.92 kB / 0.8223 GB, free: 26.46 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.764e-05/0.6688, allocations: 18.83 kB / 0.8223 GB, free: 26.45 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.6689, allocations: 8.328 kB / 0.8223 GB, free: 26.45 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.6689, allocations: 32.55 kB / 0.8223 GB, free: 26.41 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.6689, allocations: 0 / 0.8223 GB, free: 26.41 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0001764/0.6691, allocations: 69.5 kB / 0.8224 GB, free: 26.37 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.6691, allocations: 61.06 kB / 0.8225 GB, free: 26.3 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.6693, allocations: 212.2 kB / 0.8227 GB, free: 26.17 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.6693, allocations: 30.05 kB / 0.8227 GB, free: 26.14 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.6694, allocations: 101 kB / 0.8228 GB, free: 26.04 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.6694, allocations: 4.891 kB / 0.8228 GB, free: 26.04 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.6694, allocations: 29.16 kB / 0.8228 GB, free: 26.02 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 6.775e-05/0.6695, allocations: 324.2 kB / 0.8231 GB, free: 25.7 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.776e-05/0.6696, allocations: 56.84 kB / 0.8232 GB, free: 25.69 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.523e-05/0.6696, allocations: 54.11 kB / 0.8232 GB, free: 25.68 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.6698, allocations: 84.33 kB / 0.8233 GB, free: 25.66 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6698, allocations: 3.875 kB / 0.8233 GB, free: 25.66 MB / 0.6387 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002037/0.67, allocations: 168 kB / 0.8235 GB, free: 25.6 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.67, allocations: 4.438 kB / 0.8235 GB, free: 25.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.67, allocations: 6.031 kB / 0.8235 GB, free: 25.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.67, allocations: 0.7812 kB / 0.8235 GB, free: 25.6 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.507e-05/0.67, allocations: 2.266 kB / 0.8235 GB, free: 25.6 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.67, allocations: 0 / 0.8235 GB, free: 25.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.805e-05/0.6701, allocations: 14.62 kB / 0.8235 GB, free: 25.59 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.6701, allocations: 2 kB / 0.8235 GB, free: 25.59 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: 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.0001483/0.6702, allocations: 137.1 kB / 0.8237 GB, free: 25.47 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.6702, allocations: 7.078 kB / 0.8237 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.6704, allocations: 68.17 kB / 0.8237 GB, free: 25.42 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.6704, allocations: 0.9688 kB / 0.8237 GB, free: 25.42 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.6704, allocations: 0.6562 kB / 0.8237 GB, free: 25.42 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.6704, allocations: 0.5 kB / 0.8237 GB, free: 25.42 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.072e-05/0.6705, allocations: 137.6 kB / 0.8239 GB, free: 25.28 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.6705, allocations: 0.8125 kB / 0.8239 GB, free: 25.28 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-06/0.6705, allocations: 6.109 kB / 0.8239 GB, free: 25.28 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.6705, allocations: 3.531 kB / 0.8239 GB, free: 25.28 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.6705, allocations: 4.703 kB / 0.8239 GB, free: 25.27 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.6705, allocations: 5.344 kB / 0.8239 GB, free: 25.27 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.6705, allocations: 0 / 0.8239 GB, free: 25.27 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.949e-05/0.6706, allocations: 86.78 kB / 0.824 GB, free: 25.2 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 1.449e-05/0.6706, allocations: 11.39 kB / 0.824 GB, free: 25.19 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.6706, allocations: 1.469 kB / 0.824 GB, free: 25.19 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.414e-05/0.6706, allocations: 4.547 kB / 0.824 GB, free: 25.18 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.6706, allocations: 5.719 kB / 0.824 GB, free: 25.18 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.6706, allocations: 4.25 kB / 0.824 GB, free: 25.18 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0001167/0.6707, allocations: 150 kB / 0.8241 GB, free: 25.09 MB / 0.6387 GB Notification: Performance of sort global known variables: time 7e-08/0.6707, allocations: 0 / 0.8241 GB, free: 25.09 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0004006/0.6711, allocations: 89.28 kB / 0.8242 GB, free: 25.07 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.0005671/0.6717, allocations: 232.4 kB / 0.8244 GB, free: 24.95 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.6719, allocations: 119.2 kB / 0.8245 GB, free: 24.9 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6719, allocations: 0 / 0.8245 GB, free: 24.9 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 1.924e-05/0.6719, allocations: 11.25 kB / 0.8246 GB, free: 24.9 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.6721, allocations: 18.86 kB / 0.8246 GB, free: 24.89 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003323/0.6724, allocations: 208.7 kB / 0.8248 GB, free: 24.74 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.806e-05/0.6725, allocations: 88.09 kB / 0.8249 GB, free: 24.67 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 1.958e-05/0.6725, allocations: 1.922 kB / 0.8249 GB, free: 24.67 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.6726, allocations: 8.969 kB / 0.8249 GB, free: 24.66 MB / 0.6387 GB Notification: Performance of SimCode: time 2.9e-07/0.6726, allocations: 4.125 kB / 0.8249 GB, free: 24.66 MB / 0.6387 GB Notification: Performance of Templates: time 0.006596/0.6792, allocations: 2.242 MB / 0.8271 GB, free: 24.47 MB / 0.6387 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: 6.726991359144449] Failed to read output from testmodel.py, exit status != 0: 0.687650591135025 0.70031478 0.029834108 Calling exit ...