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.0007396/0.0007396, allocations: 96.38 kB / 19.7 MB, free: 448 kB / 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.0007707/0.0007707, allocations: 212.7 kB / 23 MB, free: 2.977 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.8891/0.8891, allocations: 230.6 MB / 256.8 MB, free: 9.586 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.7469/0.7469, allocations: 203.8 MB / 0.5049 GB, free: 10.49 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.0009094/0.0009094, allocations: 61.59 kB / 0.7194 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4959/0.4968, allocations: 102 MB / 0.819 GB, free: 1.344 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001215/0.498, allocations: 0.517 MB / 0.8195 GB, free: 1.031 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.4994, allocations: 1.622 MB / 0.8211 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.032e-05/0.4994, allocations: 1.719 kB / 0.8211 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001728/0.4996, allocations: 62.48 kB / 0.8211 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.906e-05/0.4996, allocations: 32.8 kB / 0.8212 GB, free: 15.9 MB / 0.6198 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.0006927/0.5003, allocations: 281.5 kB / 0.8214 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.749e-05/0.5004, allocations: 32.77 kB / 0.8215 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 3.781e-05/0.5004, allocations: 4.25 kB / 0.8215 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.402e-05/0.5005, allocations: 27.67 kB / 0.8215 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.871e-05/0.5005, allocations: 40.45 kB / 0.8215 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.5005, allocations: 0 / 0.8215 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005054/0.501, allocations: 448.4 kB / 0.822 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.158e-05/0.5011, allocations: 32.58 kB / 0.822 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.285e-05/0.5011, allocations: 23.38 kB / 0.822 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003532/0.5015, allocations: 308.5 kB / 0.8223 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.5015, allocations: 0 / 0.8223 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5015, allocations: 0 / 0.8223 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.261e-06/0.5015, allocations: 1.375 kB / 0.8223 GB, free: 15.54 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.0003438/0.5018, allocations: 356.8 kB / 0.8226 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.5019, allocations: 10.25 kB / 0.8227 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.289e-05/0.5019, allocations: 13.06 kB / 0.8227 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.502, allocations: 142.9 kB / 0.8228 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-06/0.502, allocations: 6.375 kB / 0.8228 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.502, allocations: 4.312 kB / 0.8228 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.479e-05/0.5021, allocations: 45.05 kB / 0.8229 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.5021, allocations: 1.656 kB / 0.8229 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.5021, allocations: 4.641 kB / 0.8229 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.5021, allocations: 0 / 0.8229 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.862e-05/0.5022, allocations: 18.55 kB / 0.8229 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001371/0.5023, allocations: 140.1 kB / 0.823 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 3.932e-05/0.5023, allocations: 25.48 kB / 0.823 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.035e-05/0.5024, allocations: 19.06 kB / 0.8231 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.5024, allocations: 10.19 kB / 0.8231 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.5024, allocations: 36.06 kB / 0.8231 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.5024, allocations: 1.219 kB / 0.8231 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001419/0.5026, allocations: 72.97 kB / 0.8232 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.5026, allocations: 55.41 kB / 0.8232 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.5027, allocations: 217.8 kB / 0.8234 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.607e-06/0.5027, allocations: 25.7 kB / 0.8235 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.5028, allocations: 102 kB / 0.8236 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.017e-05/0.5028, allocations: 3.953 kB / 0.8236 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.5028, allocations: 28.55 kB / 0.8236 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.017e-05/0.5029, allocations: 328.1 kB / 0.8239 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.799e-05/0.503, allocations: 61.5 kB / 0.824 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.487e-05/0.503, allocations: 53.06 kB / 0.824 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.31e-05/0.5031, allocations: 84.7 kB / 0.8241 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.5031, allocations: 0 / 0.8241 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001437/0.5033, allocations: 165 kB / 0.8242 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.5033, allocations: 4.906 kB / 0.8242 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.5033, allocations: 5.812 kB / 0.8243 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.5033, allocations: 1.375 kB / 0.8243 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-05/0.5033, allocations: 0.5156 kB / 0.8243 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.5033, allocations: 5.562 kB / 0.8243 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.997e-05/0.5033, allocations: 9.875 kB / 0.8243 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.5033, allocations: 5.281 kB / 0.8243 GB, free: 13.95 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.0001054/0.5034, allocations: 137.6 kB / 0.8244 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.5035, allocations: 8.406 kB / 0.8244 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.961e-05/0.5036, allocations: 63.56 kB / 0.8245 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.5036, allocations: 0 / 0.8245 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.5036, allocations: 0.6562 kB / 0.8245 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.5036, allocations: 1.312 kB / 0.8245 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.195e-05/0.5036, allocations: 140.6 kB / 0.8246 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.5036, allocations: 0 / 0.8246 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.5036, allocations: 6.016 kB / 0.8246 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.5036, allocations: 0 / 0.8246 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.5037, allocations: 2.109 kB / 0.8246 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5037, allocations: 3.938 kB / 0.8246 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5037, allocations: 0 / 0.8246 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.879e-05/0.5037, allocations: 90.19 kB / 0.8247 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.052e-05/0.5037, allocations: 12.77 kB / 0.8247 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.5037, allocations: 0 / 0.8247 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-06/0.5038, allocations: 9.875 kB / 0.8247 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.5038, allocations: 0.6562 kB / 0.8247 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.5038, allocations: 5.25 kB / 0.8247 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.976e-05/0.5039, allocations: 150.3 kB / 0.8249 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5039, allocations: 0 / 0.8249 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002291/0.5041, allocations: 89.59 kB / 0.825 GB, free: 13.43 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.000396/0.5045, allocations: 236.6 kB / 0.8252 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.5046, allocations: 123.5 kB / 0.8253 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5046, allocations: 0 / 0.8253 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.016e-05/0.5046, allocations: 12.8 kB / 0.8253 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001105/0.5048, allocations: 8.406 kB / 0.8253 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002978/0.5051, allocations: 236.8 kB / 0.8256 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.971e-05/0.5051, allocations: 87.3 kB / 0.8256 GB, free: 12.99 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.5051, allocations: 14.53 kB / 0.8257 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of SimCode: time 3.8e-07/0.5051, allocations: 0 / 0.8257 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of Templates: time 0.004004/0.5091, allocations: 2.474 MB / 0.8281 GB, free: 12.77 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.0629388159140944] Failed to read output from testmodel.py, exit status != 0: 0.5148967700079083 0.524423442 0.021113753000000002 Calling exit ...