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.001818/0.001818, allocations: 85.48 kB / 19.44 MB, free: 344 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.002541/0.002541, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.623/1.623, allocations: 177.1 MB / 203.1 MB, free: 5.621 MB / 186.7 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-545:108: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-545:116: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.447/1.447, allocations: 154.6 MB / 414.1 MB, free: 0.6406 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 0.5196 GB, free: 2.598 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.73e-05/2.921e-05, allocations: 2.312 kB / 0.5196 GB, free: 2.594 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.002195/0.002224, allocations: 0.5115 MB / 0.5201 GB, free: 2.102 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.003903/0.006127, allocations: 1.641 MB / 0.5217 GB, free: 456 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.652e-05/0.006163, allocations: 0 / 0.5217 GB, free: 456 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.006403, allocations: 60.41 kB / 0.5217 GB, free: 396 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 6.069e-05/0.006464, allocations: 29.33 kB / 0.5218 GB, free: 368 kB / 490.7 MB [/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.001337/0.007801, allocations: 285.7 kB / 0.522 GB, free: 84 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.007905, allocations: 31.89 kB / 0.5221 GB, free: 52 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.022e-05/0.007946, allocations: 4 kB / 0.5221 GB, free: 48 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.81e-05/0.008024, allocations: 27.95 kB / 0.5221 GB, free: 20 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.008157, allocations: 46.11 kB / 0.5221 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.008175, allocations: 0 / 0.5221 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.009376, allocations: 451 kB / 0.5226 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 7.949e-05/0.009455, allocations: 31.86 kB / 0.5226 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.153e-05/0.009487, allocations: 8.812 kB / 0.5226 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0008486/0.01034, allocations: 364 kB / 0.523 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.01034, allocations: 0 / 0.523 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of FrontEnd: time 6.01e-07/0.01034, allocations: 0 / 0.523 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.01034, allocations: 1.094 kB / 0.523 GB, free: 15.14 MB / 0.4948 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.0007738/0.01112, allocations: 471.2 kB / 0.5234 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.01116, allocations: 12.03 kB / 0.5234 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/0.01122, allocations: 9.797 kB / 0.5234 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.01144, allocations: 132.4 kB / 0.5236 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.01146, allocations: 4.906 kB / 0.5236 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.01147, allocations: 4.375 kB / 0.5236 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.01158, allocations: 26.98 kB / 0.5236 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.01159, allocations: 0.9375 kB / 0.5236 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.0116, allocations: 384 / 0.5236 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.0116, allocations: 8.438 kB / 0.5236 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.043e-05/0.01162, allocations: 0 / 0.5236 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002632/0.01189, allocations: 161.3 kB / 0.5238 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.797e-05/0.01197, allocations: 31.05 kB / 0.5238 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.596e-05/0.01199, allocations: 10.59 kB / 0.5238 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.687e-05/0.01204, allocations: 4.062 kB / 0.5238 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.051e-05/0.01209, allocations: 45.33 kB / 0.5238 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.01209, allocations: 0 / 0.5238 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001828/0.01227, allocations: 45.58 kB / 0.5239 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.01233, allocations: 55.34 kB / 0.5239 GB, free: 14 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.01268, allocations: 258.5 kB / 0.5242 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.01271, allocations: 25.7 kB / 0.5242 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.01286, allocations: 158.8 kB / 0.5244 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.037e-05/0.01287, allocations: 0.5625 kB / 0.5244 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.408e-05/0.01295, allocations: 39.36 kB / 0.5244 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003351/0.01329, allocations: 0.5007 MB / 0.5249 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.407e-05/0.01332, allocations: 8.938 kB / 0.5249 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.138e-05/0.01336, allocations: 15.98 kB / 0.5249 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.055e-05/0.01345, allocations: 41.8 kB / 0.525 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01345, allocations: 1.438 kB / 0.525 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001817/0.01364, allocations: 89.47 kB / 0.525 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.01366, allocations: 4 kB / 0.525 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.01368, allocations: 4.969 kB / 0.5251 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.01369, allocations: 0 / 0.5251 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.824e-05/0.01371, allocations: 4 kB / 0.5251 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.01372, allocations: 5.156 kB / 0.5251 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.39e-05/0.01376, allocations: 11.89 kB / 0.5251 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.01377, allocations: 3.984 kB / 0.5251 GB, free: 12.79 MB / 0.4948 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.0001688/0.01394, allocations: 165.9 kB / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.01397, allocations: 7.953 kB / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.0141, allocations: 50.14 kB / 0.5253 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.0141, allocations: 3.938 kB / 0.5253 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.01411, allocations: 3.938 kB / 0.5253 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.01411, allocations: 2.438 kB / 0.5253 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.01432, allocations: 152.6 kB / 0.5254 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01432, allocations: 0 / 0.5254 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.149e-05/0.01434, allocations: 4 kB / 0.5254 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01434, allocations: 0 / 0.5254 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.01434, allocations: 0 / 0.5254 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.01434, allocations: 0 / 0.5254 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01435, allocations: 0.6562 kB / 0.5254 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.01448, allocations: 81.33 kB / 0.5255 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.01451, allocations: 15.89 kB / 0.5255 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.01453, allocations: 4 kB / 0.5255 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.054e-05/0.01455, allocations: 0.6562 kB / 0.5255 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.068e-05/0.01457, allocations: 3.984 kB / 0.5255 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.01458, allocations: 7.375 kB / 0.5256 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001894/0.01477, allocations: 171.3 kB / 0.5257 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.11e-07/0.01477, allocations: 3.938 kB / 0.5257 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0005656/0.01534, allocations: 87.8 kB / 0.5258 GB, free: 11.98 MB / 0.4948 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.0009111/0.01625, allocations: 255.7 kB / 0.5261 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.01645, allocations: 81.3 kB / 0.5261 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.01645, allocations: 0 / 0.5261 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 3.026e-05/0.01648, allocations: 11.69 kB / 0.5261 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.0167, allocations: 5.953 kB / 0.5261 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004232/0.01713, allocations: 192.2 kB / 0.5263 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.01726, allocations: 88.3 kB / 0.5264 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.986e-05/0.01728, allocations: 0 / 0.5264 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.102e-05/0.0173, allocations: 13.03 kB / 0.5264 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of SimCode: time 6.21e-07/0.0173, allocations: 0 / 0.5264 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of Templates: time 0.008512/0.02581, allocations: 2.214 MB / 0.5286 GB, free: 9.211 MB / 0.4948 GB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.203481970936991]