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.001563/0.001563, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001851/0.001851, allocations: 212.2 kB / 22.25 MB, free: 4.863 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.721/1.721, allocations: 230.6 MB / 256 MB, free: 7.797 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.289/1.289, allocations: 203.5 MB / 0.5038 GB, free: 4.926 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_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.002178/0.002178, allocations: 71.89 kB / 0.7182 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5348/0.537, allocations: 102 MB / 0.8178 GB, free: 29.11 MB / 0.6387 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001726/0.5387, allocations: 0.5137 MB / 0.8183 GB, free: 28.83 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.002155/0.5409, allocations: 1.617 MB / 0.8199 GB, free: 27.72 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.313e-05/0.5409, allocations: 3.438 kB / 0.8199 GB, free: 27.72 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.5411, allocations: 65.53 kB / 0.82 GB, free: 27.71 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 3.86e-05/0.5411, allocations: 28.28 kB / 0.82 GB, free: 27.71 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.0009205/0.5421, allocations: 275.8 kB / 0.8203 GB, free: 27.61 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 7.553e-05/0.5421, allocations: 37.42 kB / 0.8203 GB, free: 27.59 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 3.825e-05/0.5422, allocations: 2.703 kB / 0.8203 GB, free: 27.59 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 3.964e-05/0.5422, allocations: 22.59 kB / 0.8203 GB, free: 27.59 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 7.955e-05/0.5423, allocations: 48.48 kB / 0.8204 GB, free: 27.58 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.5423, allocations: 2.469 kB / 0.8204 GB, free: 27.58 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007947/0.5431, allocations: 445.8 kB / 0.8208 GB, free: 27.46 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 5.629e-05/0.5432, allocations: 27.67 kB / 0.8208 GB, free: 27.46 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 2.488e-05/0.5432, allocations: 18.02 kB / 0.8208 GB, free: 27.45 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.5437, allocations: 318.5 kB / 0.8211 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.5437, allocations: 0.5 kB / 0.8211 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5437, allocations: 0.5312 kB / 0.8211 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.5437, allocations: 1.75 kB / 0.8211 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.0004183/0.5441, allocations: 361.4 kB / 0.8215 GB, free: 27.02 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.5441, allocations: 9.594 kB / 0.8215 GB, free: 27.02 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.5442, allocations: 13.27 kB / 0.8215 GB, free: 27.02 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.5443, allocations: 137.4 kB / 0.8216 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.5443, allocations: 0.9062 kB / 0.8216 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.5443, allocations: 1.125 kB / 0.8216 GB, free: 26.87 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.5444, allocations: 50.02 kB / 0.8217 GB, free: 26.83 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.5445, allocations: 1.781 kB / 0.8217 GB, free: 26.83 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.5445, allocations: 0 / 0.8217 GB, free: 26.83 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.5445, allocations: 0.5 kB / 0.8217 GB, free: 26.83 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.773e-05/0.5445, allocations: 20.67 kB / 0.8217 GB, free: 26.83 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001313/0.5446, allocations: 135.8 kB / 0.8218 GB, free: 26.69 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 5.888e-05/0.5447, allocations: 29.81 kB / 0.8219 GB, free: 26.66 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.336e-05/0.5447, allocations: 23.42 kB / 0.8219 GB, free: 26.65 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/0.5448, allocations: 7.016 kB / 0.8219 GB, free: 26.65 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.5448, allocations: 33.89 kB / 0.8219 GB, free: 26.61 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.5448, allocations: 0 / 0.8219 GB, free: 26.61 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0001501/0.5449, allocations: 68.19 kB / 0.822 GB, free: 26.57 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.545, allocations: 54.11 kB / 0.822 GB, free: 26.51 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.5451, allocations: 224 kB / 0.8223 GB, free: 26.37 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.655e-06/0.5451, allocations: 27.98 kB / 0.8223 GB, free: 26.34 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 4.587e-05/0.5452, allocations: 105.7 kB / 0.8224 GB, free: 26.24 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 1.118e-05/0.5452, allocations: 1.312 kB / 0.8224 GB, free: 26.24 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.094e-05/0.5452, allocations: 28.53 kB / 0.8224 GB, free: 26.22 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.5453, allocations: 323.1 kB / 0.8227 GB, free: 25.9 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.918e-05/0.5454, allocations: 59.66 kB / 0.8228 GB, free: 25.89 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.778e-05/0.5454, allocations: 57.38 kB / 0.8228 GB, free: 25.88 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.765e-05/0.5455, allocations: 87.53 kB / 0.8229 GB, free: 25.86 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5455, allocations: 0.9375 kB / 0.8229 GB, free: 25.86 MB / 0.6387 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001732/0.5457, allocations: 162.1 kB / 0.8231 GB, free: 25.8 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.5457, allocations: 8.844 kB / 0.8231 GB, free: 25.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.5457, allocations: 6.156 kB / 0.8231 GB, free: 25.8 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.5457, allocations: 1.312 kB / 0.8231 GB, free: 25.8 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-05/0.5458, allocations: 0.75 kB / 0.8231 GB, free: 25.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.5458, allocations: 1.375 kB / 0.8231 GB, free: 25.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.717e-05/0.5458, allocations: 13.34 kB / 0.8231 GB, free: 25.79 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.5458, allocations: 10.23 kB / 0.8231 GB, free: 25.78 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.0001323/0.5459, allocations: 133.8 kB / 0.8232 GB, free: 25.66 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.5459, allocations: 10.36 kB / 0.8233 GB, free: 25.66 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.5461, allocations: 68.17 kB / 0.8233 GB, free: 25.61 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.5461, allocations: 0 / 0.8233 GB, free: 25.61 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5461, allocations: 1.156 kB / 0.8233 GB, free: 25.61 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.5461, allocations: 0.7031 kB / 0.8233 GB, free: 25.61 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.828e-05/0.5461, allocations: 132.5 kB / 0.8234 GB, free: 25.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.5461, allocations: 4.781 kB / 0.8235 GB, free: 25.48 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.899e-06/0.5461, allocations: 0.75 kB / 0.8235 GB, free: 25.48 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.5462, allocations: 0 / 0.8235 GB, free: 25.48 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.5462, allocations: 2.031 kB / 0.8235 GB, free: 25.48 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.5462, allocations: 3.938 kB / 0.8235 GB, free: 25.47 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5462, allocations: 1.156 kB / 0.8235 GB, free: 25.47 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.288e-05/0.5462, allocations: 89.62 kB / 0.8235 GB, free: 25.39 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.5462, allocations: 11.78 kB / 0.8236 GB, free: 25.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.5463, allocations: 1.469 kB / 0.8236 GB, free: 25.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.459e-05/0.5463, allocations: 4.688 kB / 0.8236 GB, free: 25.38 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.584e-05/0.5463, allocations: 2.25 kB / 0.8236 GB, free: 25.38 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.5463, allocations: 0.9062 kB / 0.8236 GB, free: 25.38 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000103/0.5464, allocations: 153.8 kB / 0.8237 GB, free: 25.29 MB / 0.6387 GB Notification: Performance of sort global known variables: time 7e-08/0.5464, allocations: 0 / 0.8237 GB, free: 25.29 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0004104/0.5468, allocations: 90.91 kB / 0.8238 GB, free: 25.27 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.0005436/0.5474, allocations: 238.1 kB / 0.824 GB, free: 25.14 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0001937/0.5475, allocations: 118.9 kB / 0.8241 GB, free: 25.1 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5475, allocations: 3.938 kB / 0.8241 GB, free: 25.09 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 1.933e-05/0.5476, allocations: 11.55 kB / 0.8242 GB, free: 25.09 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.5477, allocations: 14.11 kB / 0.8242 GB, free: 25.08 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003144/0.548, allocations: 207.6 kB / 0.8244 GB, free: 24.94 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.321e-05/0.5481, allocations: 87.98 kB / 0.8244 GB, free: 24.87 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 1.843e-05/0.5481, allocations: 1.781 kB / 0.8245 GB, free: 24.87 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.538e-05/0.5482, allocations: 8.562 kB / 0.8245 GB, free: 24.86 MB / 0.6387 GB Notification: Performance of SimCode: time 3.3e-07/0.5482, allocations: 5.281 kB / 0.8245 GB, free: 24.86 MB / 0.6387 GB Notification: Performance of Templates: time 0.006145/0.5543, allocations: 2.241 MB / 0.8267 GB, free: 24.66 MB / 0.6387 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.973710902035236] Failed to read output from testmodel.py, exit status != 0: 0.562504231929779 0.5736510149999999 0.027324871 Calling exit ...