Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0009924/0.0009924, allocations: 104.3 kB / 19.7 MB, free: 0.5664 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.0008519/0.0008519, allocations: 211.2 kB / 23 MB, free: 3.066 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.8973/0.8973, allocations: 230.6 MB / 256.8 MB, free: 9.609 MB / 202.7 MB " [Timeout remaining time 179] 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 0.7762/0.7762, allocations: 203.5 MB / 0.5046 GB, free: 10.69 MB / 410.7 MB " [Timeout remaining time 179] 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_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.0009219/0.0009219, allocations: 66.8 kB / 0.719 GB, free: 3.938 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4933/0.4942, allocations: 102 MB / 0.8186 GB, free: 1.527 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001214/0.4954, allocations: 0.5182 MB / 0.8191 GB, free: 1.215 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001501/0.4969, allocations: 1.611 MB / 0.8207 GB, free: 112 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.4969, allocations: 2.844 kB / 0.8207 GB, free: 112 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.4971, allocations: 65.81 kB / 0.8207 GB, free: 100 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.442e-05/0.4971, allocations: 28.08 kB / 0.8207 GB, free: 100 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.0007359/0.4979, allocations: 281.7 kB / 0.821 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.238e-05/0.498, allocations: 29.84 kB / 0.821 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.498, allocations: 7.625 kB / 0.821 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.278e-05/0.498, allocations: 20.7 kB / 0.8211 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.173e-05/0.4981, allocations: 48.08 kB / 0.8211 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.4981, allocations: 0 / 0.8211 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005848/0.4987, allocations: 458.3 kB / 0.8215 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.275e-05/0.4987, allocations: 28.44 kB / 0.8216 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.4988, allocations: 17.44 kB / 0.8216 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.4991, allocations: 315.8 kB / 0.8219 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4991, allocations: 0.75 kB / 0.8219 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4991, allocations: 1.25 kB / 0.8219 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.4991, allocations: 3.938 kB / 0.8219 GB, free: 15.72 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.0003518/0.4995, allocations: 358.3 kB / 0.8222 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.4995, allocations: 8.578 kB / 0.8223 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.4995, allocations: 14 kB / 0.8223 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.4996, allocations: 139.1 kB / 0.8224 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-06/0.4997, allocations: 384 / 0.8224 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.4997, allocations: 3.062 kB / 0.8224 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.292e-05/0.4997, allocations: 39.95 kB / 0.8224 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.4998, allocations: 3.938 kB / 0.8224 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.4998, allocations: 2.781 kB / 0.8224 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.4998, allocations: 0 / 0.8224 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.611e-05/0.4998, allocations: 17.12 kB / 0.8225 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001326/0.4999, allocations: 137.2 kB / 0.8226 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.443e-05/0.5, allocations: 28.89 kB / 0.8226 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.058e-05/0.5, allocations: 22.64 kB / 0.8226 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.5, allocations: 7.031 kB / 0.8226 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.5, allocations: 36.75 kB / 0.8227 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.5, allocations: 0 / 0.8227 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001446/0.5002, allocations: 76.52 kB / 0.8228 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.5002, allocations: 52.06 kB / 0.8228 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.5004, allocations: 213.2 kB / 0.823 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.5004, allocations: 25.7 kB / 0.823 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.492e-05/0.5004, allocations: 101.4 kB / 0.8231 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.057e-05/0.5004, allocations: 4.922 kB / 0.8231 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.439e-05/0.5005, allocations: 36.81 kB / 0.8232 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.311e-05/0.5006, allocations: 323.3 kB / 0.8235 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.344e-05/0.5006, allocations: 57.45 kB / 0.8235 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.772e-05/0.5007, allocations: 53.84 kB / 0.8236 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.986e-05/0.5007, allocations: 91.61 kB / 0.8237 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5007, allocations: 0 / 0.8237 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001299/0.5009, allocations: 166.7 kB / 0.8238 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5009, allocations: 5.531 kB / 0.8238 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.5009, allocations: 5.891 kB / 0.8238 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.5009, allocations: 1.125 kB / 0.8238 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-05/0.5009, allocations: 0 / 0.8238 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.5009, allocations: 6.25 kB / 0.8238 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.125e-05/0.5009, allocations: 9.281 kB / 0.8239 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.5009, allocations: 1.375 kB / 0.8239 GB, free: 14.14 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.0001052/0.5011, allocations: 130.4 kB / 0.824 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.753e-06/0.5011, allocations: 11.36 kB / 0.824 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.492e-05/0.5012, allocations: 68.09 kB / 0.8241 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.5012, allocations: 0 / 0.8241 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5012, allocations: 0.6562 kB / 0.8241 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.5012, allocations: 8.953 kB / 0.8241 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.78e-05/0.5012, allocations: 133 kB / 0.8242 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.5012, allocations: 9.219 kB / 0.8242 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.546e-06/0.5012, allocations: 0.6562 kB / 0.8242 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-07/0.5012, allocations: 0 / 0.8242 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.5013, allocations: 5.031 kB / 0.8242 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.5013, allocations: 4.547 kB / 0.8242 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.5013, allocations: 1.031 kB / 0.8242 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.852e-05/0.5013, allocations: 81.97 kB / 0.8243 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.013e-05/0.5013, allocations: 12.11 kB / 0.8243 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-06/0.5013, allocations: 4.594 kB / 0.8243 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.5013, allocations: 5.031 kB / 0.8243 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.155e-05/0.5014, allocations: 4.703 kB / 0.8243 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-06/0.5014, allocations: 1.594 kB / 0.8243 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.477e-05/0.5014, allocations: 149.8 kB / 0.8245 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-08/0.5014, allocations: 1.656 kB / 0.8245 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002201/0.5017, allocations: 88.41 kB / 0.8245 GB, free: 13.62 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.0003573/0.502, allocations: 233.4 kB / 0.8248 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001472/0.5022, allocations: 119.8 kB / 0.8249 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5022, allocations: 0 / 0.8249 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.15e-05/0.5022, allocations: 11.81 kB / 0.8249 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001054/0.5023, allocations: 8.688 kB / 0.8249 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002693/0.5026, allocations: 240.8 kB / 0.8251 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.947e-05/0.5026, allocations: 87.98 kB / 0.8252 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.504e-05/0.5026, allocations: 17.42 kB / 0.8252 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of SimCode: time 4.31e-07/0.5026, allocations: 3.938 kB / 0.8252 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of Templates: time 0.003726/0.5064, allocations: 2.494 MB / 0.8277 GB, free: 12.95 MB / 0.6198 GB " [Timeout remaining time 659] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.950853544753045] Failed to read output from testmodel.py, exit status != 0: 0.5121077038347721 0.5215071579999999 0.020522993 Calling exit ...