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.001074/0.001074, allocations: 92.22 kB / 19.65 MB, free: 276 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.001221/0.001221, allocations: 173 kB / 23.02 MB, free: 1.547 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 0.9674/0.9674, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.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-535:34: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-535:42: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.7775/0.7775, allocations: 154.9 MB / 414.8 MB, free: 388 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 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: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 0.5206 GB, free: 1.883 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.128e-05/2.232e-05, allocations: 3.594 kB / 0.5206 GB, free: 1.879 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001155/0.001177, allocations: 0.5298 MB / 0.5212 GB, free: 1.375 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.003031, allocations: 1.65 MB / 0.5228 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.566e-05/0.003056, allocations: 4.562 kB / 0.5228 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.003195, allocations: 61.2 kB / 0.5228 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 3.072e-05/0.003225, allocations: 23.97 kB / 0.5229 GB, free: 15.62 MB / 0.4948 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.0006417/0.003867, allocations: 286.4 kB / 0.5231 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 5.366e-05/0.003921, allocations: 39.89 kB / 0.5232 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 1.86e-05/0.003939, allocations: 0 / 0.5232 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 3.1e-05/0.00397, allocations: 19.97 kB / 0.5232 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 4.596e-05/0.004016, allocations: 48.62 kB / 0.5232 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.004024, allocations: 1.406 kB / 0.5232 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004765/0.0045, allocations: 455 kB / 0.5237 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.195e-05/0.004552, allocations: 27.92 kB / 0.5237 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.707e-05/0.004569, allocations: 13.28 kB / 0.5237 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.004905, allocations: 363 kB / 0.5241 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.232e-06/0.004906, allocations: 0 / 0.5241 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.71e-07/0.004906, allocations: 1.688 kB / 0.5241 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.00491, allocations: 0 / 0.5241 GB, free: 14.4 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.0003275/0.005238, allocations: 463.6 kB / 0.5245 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.005265, allocations: 12.03 kB / 0.5245 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.594e-05/0.005291, allocations: 12.89 kB / 0.5245 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.929e-05/0.005391, allocations: 138.6 kB / 0.5247 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.735e-06/0.005398, allocations: 4.375 kB / 0.5247 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-06/0.005405, allocations: 4.312 kB / 0.5247 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.719e-05/0.005452, allocations: 30.25 kB / 0.5247 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-06/0.005456, allocations: 192 / 0.5247 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-06/0.005462, allocations: 0.9375 kB / 0.5247 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.005467, allocations: 7.938 kB / 0.5247 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.826e-06/0.005476, allocations: 0.5625 kB / 0.5247 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.005596, allocations: 157.6 kB / 0.5249 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 2.845e-05/0.005624, allocations: 27.06 kB / 0.5249 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.565e-05/0.00564, allocations: 12.16 kB / 0.5249 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.005671, allocations: 5.438 kB / 0.5249 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.005688, allocations: 41.38 kB / 0.5249 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 4.51e-07/0.005688, allocations: 0 / 0.5249 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 6.96e-05/0.005758, allocations: 42.58 kB / 0.525 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.272e-05/0.005781, allocations: 55.34 kB / 0.525 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.005914, allocations: 272.3 kB / 0.5253 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.005924, allocations: 26.73 kB / 0.5253 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.609e-05/0.00598, allocations: 154.8 kB / 0.5255 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.591e-06/0.005986, allocations: 0 / 0.5255 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/0.00602, allocations: 40.3 kB / 0.5255 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.006153, allocations: 0.504 MB / 0.526 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.533e-05/0.006169, allocations: 19.19 kB / 0.526 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.309e-05/0.006182, allocations: 12 kB / 0.526 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.885e-05/0.006221, allocations: 41.64 kB / 0.5261 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.006222, allocations: 0 / 0.5261 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.214e-05/0.006294, allocations: 89.55 kB / 0.5261 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.196e-06/0.006302, allocations: 4 kB / 0.5262 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.006311, allocations: 0 / 0.5262 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.125e-06/0.006319, allocations: 3.984 kB / 0.5262 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.835e-06/0.006327, allocations: 4 kB / 0.5262 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.006331, allocations: 6.969 kB / 0.5262 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.006347, allocations: 11.83 kB / 0.5262 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.006353, allocations: 4 kB / 0.5262 GB, free: 12.04 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 6.801e-05/0.006421, allocations: 156.6 kB / 0.5263 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-06/0.00643, allocations: 11.91 kB / 0.5263 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.984e-05/0.0065, allocations: 43.69 kB / 0.5264 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.51e-07/0.0065, allocations: 4 kB / 0.5264 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.006504, allocations: 3.938 kB / 0.5264 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.006506, allocations: 0 / 0.5264 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.962e-05/0.006586, allocations: 157 kB / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.006587, allocations: 0 / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.006589, allocations: 6.578 kB / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.006591, allocations: 0 / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-06/0.006593, allocations: 0 / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.2e-07/0.006593, allocations: 0 / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.006594, allocations: 0 / 0.5265 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.496e-05/0.006639, allocations: 84.28 kB / 0.5266 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.015e-05/0.006649, allocations: 18.33 kB / 0.5266 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-06/0.006657, allocations: 0 / 0.5266 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.172e-06/0.006663, allocations: 0 / 0.5266 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-06/0.006671, allocations: 0 / 0.5266 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.006674, allocations: 7.938 kB / 0.5267 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.683e-05/0.006741, allocations: 172.2 kB / 0.5268 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.006741, allocations: 0 / 0.5268 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002014/0.006942, allocations: 89.47 kB / 0.5269 GB, free: 11.24 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.0003751/0.007317, allocations: 261.3 kB / 0.5272 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 9.653e-05/0.007414, allocations: 81.3 kB / 0.5272 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.007415, allocations: 0 / 0.5272 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.697e-06/0.007424, allocations: 15.69 kB / 0.5272 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.245e-05/0.007506, allocations: 1.875 kB / 0.5272 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001811/0.007688, allocations: 193.1 kB / 0.5274 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.176e-05/0.007719, allocations: 67.33 kB / 0.5275 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.106e-05/0.00773, allocations: 0 / 0.5275 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.137e-06/0.00774, allocations: 12.5 kB / 0.5275 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of SimCode: time 6.71e-07/0.00774, allocations: 0 / 0.5275 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of Templates: time 0.004637/0.01238, allocations: 2.629 MB / 0.5301 GB, free: 8.105 MB / 0.4948 GB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8812242592684925]