Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.04047/0.04047, allocations: 9.131 MB / 28.99 MB, free: 0.8086 MB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] 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.0007196/0.0007196, allocations: 87.28 kB / 35.32 MB, free: 1.074 MB / 24.77 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.001201/0.001201, allocations: 164.2 kB / 38.73 MB, free: 2.508 MB / 24.77 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.9309/0.9309, allocations: 177.1 MB / 219.2 MB, free: 10.08 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo): time 0.003957/0.003957, allocations: 0.8289 MB / 276.5 MB, free: 0.7109 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo): time 1.593/1.593, allocations: 274.9 MB / 0.5419 GB, free: 0.6328 MB / 0.4949 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo) Using package SDF with version 0.4.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/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) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Running command: translateModel(AixLib.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d") translateModel(AixLib.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.6378 GB, free: 14.18 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.28e-05/2.445e-05, allocations: 2.312 kB / 0.6378 GB, free: 14.18 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Clustering.Validation.KMeans_2d): time 0.001791/0.001815, allocations: 0.5324 MB / 0.6383 GB, free: 13.64 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.002681/0.004497, allocations: 1.664 MB / 0.64 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.776e-05/0.004544, allocations: 0 / 0.64 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.004783, allocations: 59.8 kB / 0.64 GB, free: 11.9 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 4.721e-05/0.004831, allocations: 31.94 kB / 0.64 GB, free: 11.87 MB / 0.6043 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.001024/0.005855, allocations: 294.8 kB / 0.6403 GB, free: 11.58 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 9.275e-05/0.005948, allocations: 35.89 kB / 0.6404 GB, free: 11.55 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.005986, allocations: 0 / 0.6404 GB, free: 11.55 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 5.805e-05/0.006044, allocations: 23.97 kB / 0.6404 GB, free: 11.52 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.00611, allocations: 43.88 kB / 0.6404 GB, free: 11.48 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.006124, allocations: 0 / 0.6404 GB, free: 11.48 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007532/0.006877, allocations: 451.1 kB / 0.6409 GB, free: 11.04 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.006936, allocations: 23.92 kB / 0.6409 GB, free: 11.02 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.006959, allocations: 11.94 kB / 0.6409 GB, free: 11 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0004962/0.007456, allocations: 366.9 kB / 0.6412 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.007458, allocations: 0 / 0.6412 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of FrontEnd: time 7.91e-07/0.007459, allocations: 0 / 0.6412 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.007462, allocations: 0 / 0.6412 GB, free: 10.64 MB / 0.6043 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.0003852/0.007847, allocations: 335.9 kB / 0.6416 GB, free: 10.29 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.007883, allocations: 11.98 kB / 0.6416 GB, free: 10.28 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.667e-05/0.00791, allocations: 8.938 kB / 0.6416 GB, free: 10.27 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.008043, allocations: 137.4 kB / 0.6417 GB, free: 10.11 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.008053, allocations: 4.375 kB / 0.6417 GB, free: 10.11 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.008065, allocations: 4.375 kB / 0.6417 GB, free: 10.11 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.306e-05/0.008138, allocations: 33.03 kB / 0.6417 GB, free: 10.07 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.008146, allocations: 192 / 0.6417 GB, free: 10.07 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-06/0.008152, allocations: 384 / 0.6417 GB, free: 10.07 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.008161, allocations: 7.938 kB / 0.6418 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.273e-05/0.008173, allocations: 7.984 kB / 0.6418 GB, free: 10.05 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.008287, allocations: 78.59 kB / 0.6418 GB, free: 9.957 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 3.758e-05/0.008325, allocations: 22.58 kB / 0.6419 GB, free: 9.926 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.426e-05/0.008339, allocations: 8.953 kB / 0.6419 GB, free: 9.914 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.008373, allocations: 4 kB / 0.6419 GB, free: 9.91 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.008396, allocations: 34.5 kB / 0.6419 GB, free: 9.867 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.008397, allocations: 0 / 0.6419 GB, free: 9.867 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1): time 9.047e-05/0.008487, allocations: 37.69 kB / 0.6419 GB, free: 9.824 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.00852, allocations: 51.41 kB / 0.642 GB, free: 9.762 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.008664, allocations: 182.5 kB / 0.6422 GB, free: 9.57 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.008674, allocations: 25.7 kB / 0.6422 GB, free: 9.539 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.008717, allocations: 100.1 kB / 0.6423 GB, free: 9.438 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.01e-05/0.008727, allocations: 8.078 kB / 0.6423 GB, free: 9.43 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.008766, allocations: 25.69 kB / 0.6423 GB, free: 9.398 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.008871, allocations: 330.7 kB / 0.6426 GB, free: 9.066 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.333e-05/0.008895, allocations: 14.83 kB / 0.6426 GB, free: 9.051 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.788e-05/0.008912, allocations: 15.98 kB / 0.6427 GB, free: 9.035 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.967e-05/0.008962, allocations: 39.66 kB / 0.6427 GB, free: 8.992 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.008964, allocations: 0 / 0.6427 GB, free: 8.992 MB / 0.6043 GB Notification: Performance of matching and sorting (n=16) (initialization): time 9.409e-05/0.009058, allocations: 69.62 kB / 0.6428 GB, free: 8.918 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.009072, allocations: 4 kB / 0.6428 GB, free: 8.914 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.009085, allocations: 4 kB / 0.6428 GB, free: 8.91 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.0091, allocations: 4.062 kB / 0.6428 GB, free: 8.906 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.584e-05/0.009116, allocations: 3.984 kB / 0.6428 GB, free: 8.902 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-06/0.009118, allocations: 0 / 0.6428 GB, free: 8.902 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.424e-05/0.009152, allocations: 15.83 kB / 0.6428 GB, free: 8.887 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.00916, allocations: 0 / 0.6428 GB, free: 8.887 MB / 0.6043 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 8.32e-05/0.009243, allocations: 116.7 kB / 0.6429 GB, free: 8.762 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.009256, allocations: 11.94 kB / 0.6429 GB, free: 8.75 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.157e-05/0.009337, allocations: 38.19 kB / 0.643 GB, free: 8.707 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.009339, allocations: 0 / 0.643 GB, free: 8.707 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.009341, allocations: 4.031 kB / 0.643 GB, free: 8.703 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.009345, allocations: 7.984 kB / 0.643 GB, free: 8.695 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.874e-05/0.009424, allocations: 77.81 kB / 0.643 GB, free: 8.602 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.009425, allocations: 4 kB / 0.643 GB, free: 8.598 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.516e-06/0.009428, allocations: 0 / 0.643 GB, free: 8.598 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.00943, allocations: 0 / 0.643 GB, free: 8.598 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-06/0.009433, allocations: 0 / 0.643 GB, free: 8.598 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.009434, allocations: 0 / 0.643 GB, free: 8.598 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.009435, allocations: 0 / 0.643 GB, free: 8.598 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.154e-05/0.009496, allocations: 74.66 kB / 0.6431 GB, free: 8.504 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 1.326e-05/0.009509, allocations: 11.94 kB / 0.6431 GB, free: 8.492 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.009522, allocations: 8 kB / 0.6431 GB, free: 8.484 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.214e-05/0.009534, allocations: 0 / 0.6431 GB, free: 8.484 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.009546, allocations: 7.984 kB / 0.6431 GB, free: 8.477 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.009548, allocations: 0 / 0.6431 GB, free: 8.477 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 5.284e-05/0.009601, allocations: 53.83 kB / 0.6432 GB, free: 8.422 MB / 0.6043 GB Notification: Performance of sort global known variables: time 7e-08/0.009601, allocations: 0 / 0.6432 GB, free: 8.422 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0003271/0.009928, allocations: 87.8 kB / 0.6433 GB, free: 8.336 MB / 0.6043 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.000552/0.01048, allocations: 251.5 kB / 0.6435 GB, free: 8.082 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0001138/0.01059, allocations: 66.53 kB / 0.6436 GB, free: 8.008 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.0106, allocations: 4 kB / 0.6436 GB, free: 8.004 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 8.406e-06/0.01061, allocations: 8.797 kB / 0.6436 GB, free: 7.992 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.78e-05/0.01069, allocations: 11.94 kB / 0.6436 GB, free: 7.98 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002681/0.01095, allocations: 190.9 kB / 0.6438 GB, free: 7.766 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.02e-05/0.011, allocations: 71.33 kB / 0.6439 GB, free: 7.676 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 1.979e-05/0.01102, allocations: 0 / 0.6439 GB, free: 7.676 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.01106, allocations: 51.38 kB / 0.6439 GB, free: 7.625 MB / 0.6043 GB Notification: Performance of SimCode: time 6.61e-07/0.01106, allocations: 0 / 0.6439 GB, free: 7.625 MB / 0.6043 GB Notification: Performance of Templates: time 0.005868/0.01693, allocations: 2.596 MB / 0.6464 GB, free: 5.027 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.sim & ./AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > AixLib_AixLib.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.373634112998843]