Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.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.04329/0.04329, allocations: 9.129 MB / 28.99 MB, free: 344 kB / 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.0008667/0.0008667, allocations: 95.27 kB / 35.32 MB, free: 0.9375 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.0009556/0.0009556, allocations: 165.2 kB / 38.73 MB, free: 2.406 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.9551/0.9551, allocations: 177.2 MB / 219.2 MB, free: 10.12 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.005749/0.005749, allocations: 0.8172 MB / 276.5 MB, free: 0.7539 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.686/1.686, allocations: 274.9 MB / 0.5419 GB, free: 0.6094 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d") translateModel(AixLib.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.32e-07/8.32e-07, allocations: 0 / 0.6379 GB, free: 14.12 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.079e-05/1.162e-05, allocations: 6.312 kB / 0.6379 GB, free: 14.11 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Clustering.Validation.KMeans_1d): time 0.001052/0.001064, allocations: 0.5835 MB / 0.6384 GB, free: 13.53 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.001788/0.002852, allocations: 1.668 MB / 0.6401 GB, free: 11.84 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.228e-05/0.002874, allocations: 0 / 0.6401 GB, free: 11.84 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 9.56e-05/0.00297, allocations: 15.92 kB / 0.6401 GB, free: 11.83 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 1.73e-05/0.002987, allocations: 15.98 kB / 0.6401 GB, free: 11.81 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.0004994/0.003487, allocations: 251 kB / 0.6403 GB, free: 11.57 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0001784/0.003665, allocations: 27.91 kB / 0.6404 GB, free: 11.54 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 2.265e-05/0.003688, allocations: 0 / 0.6404 GB, free: 11.54 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 3.328e-05/0.003721, allocations: 15.98 kB / 0.6404 GB, free: 11.52 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 2.378e-05/0.003745, allocations: 11.98 kB / 0.6404 GB, free: 11.51 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.003753, allocations: 0 / 0.6404 GB, free: 11.51 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004908/0.004244, allocations: 486.9 kB / 0.6408 GB, free: 11.04 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 3.319e-05/0.004277, allocations: 23.92 kB / 0.6409 GB, free: 11.01 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 1.154e-05/0.004289, allocations: 4 kB / 0.6409 GB, free: 11.01 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0002948/0.004584, allocations: 355 kB / 0.6412 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.004585, allocations: 0 / 0.6412 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of FrontEnd: time 5.91e-07/0.004586, allocations: 0 / 0.6412 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.055e-06/0.004589, allocations: 4 kB / 0.6412 GB, free: 10.66 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.0002339/0.004823, allocations: 308.2 kB / 0.6415 GB, free: 10.33 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 2.63e-05/0.004849, allocations: 11.98 kB / 0.6415 GB, free: 10.32 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.935e-05/0.004868, allocations: 4.938 kB / 0.6415 GB, free: 10.32 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.621e-05/0.004954, allocations: 121.7 kB / 0.6416 GB, free: 10.17 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-06/0.004961, allocations: 4.375 kB / 0.6416 GB, free: 10.17 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.539e-06/0.004965, allocations: 4.312 kB / 0.6416 GB, free: 10.16 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.444e-05/0.00501, allocations: 29.09 kB / 0.6417 GB, free: 10.13 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-06/0.005014, allocations: 192 / 0.6417 GB, free: 10.13 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.239e-06/0.00502, allocations: 384 / 0.6417 GB, free: 10.13 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.005024, allocations: 7.938 kB / 0.6417 GB, free: 10.12 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.706e-06/0.005033, allocations: 11.92 kB / 0.6417 GB, free: 10.11 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.627e-05/0.005099, allocations: 66.7 kB / 0.6418 GB, free: 10.03 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 2.525e-05/0.005124, allocations: 22.61 kB / 0.6418 GB, free: 9.996 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.115e-05/0.005135, allocations: 4.859 kB / 0.6418 GB, free: 9.988 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.005159, allocations: 4.062 kB / 0.6418 GB, free: 9.984 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.005174, allocations: 34.56 kB / 0.6418 GB, free: 9.941 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.005174, allocations: 0 / 0.6418 GB, free: 9.941 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1): time 6.534e-05/0.00524, allocations: 45.61 kB / 0.6419 GB, free: 9.891 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.045e-05/0.00526, allocations: 55.53 kB / 0.6419 GB, free: 9.824 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.648e-05/0.005337, allocations: 158.4 kB / 0.6421 GB, free: 9.656 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.0002693/0.005606, allocations: 25.7 kB / 0.6421 GB, free: 9.625 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 2.691e-05/0.005633, allocations: 92.11 kB / 0.6422 GB, free: 9.531 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 7.073e-06/0.00564, allocations: 3.953 kB / 0.6422 GB, free: 9.527 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.408e-05/0.005664, allocations: 21.7 kB / 0.6422 GB, free: 9.5 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 6.793e-05/0.005732, allocations: 330.8 kB / 0.6425 GB, free: 9.168 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.005746, allocations: 14.77 kB / 0.6425 GB, free: 9.152 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.071e-05/0.005757, allocations: 8 kB / 0.6425 GB, free: 9.145 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.048e-05/0.005787, allocations: 35.7 kB / 0.6426 GB, free: 9.105 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.005788, allocations: 0 / 0.6426 GB, free: 9.105 MB / 0.6043 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.249e-05/0.005841, allocations: 61.66 kB / 0.6426 GB, free: 9.039 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.005853, allocations: 11.91 kB / 0.6426 GB, free: 9.027 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.005862, allocations: 0 / 0.6426 GB, free: 9.027 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/0.00587, allocations: 0 / 0.6426 GB, free: 9.027 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.747e-06/0.005879, allocations: 0 / 0.6426 GB, free: 9.027 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.725e-06/0.005882, allocations: 0 / 0.6426 GB, free: 9.027 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.005898, allocations: 15.83 kB / 0.6427 GB, free: 9.012 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.005903, allocations: 0 / 0.6427 GB, free: 9.012 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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 5.554e-05/0.005959, allocations: 120.7 kB / 0.6428 GB, free: 8.883 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-06/0.005964, allocations: 4 kB / 0.6428 GB, free: 8.879 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.341e-05/0.006017, allocations: 45.47 kB / 0.6428 GB, free: 8.828 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.006018, allocations: 0 / 0.6428 GB, free: 8.828 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.00602, allocations: 4 kB / 0.6428 GB, free: 8.824 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.006022, allocations: 0 / 0.6428 GB, free: 8.824 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.919e-05/0.006071, allocations: 81.75 kB / 0.6429 GB, free: 8.727 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.006072, allocations: 0 / 0.6429 GB, free: 8.727 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.943e-06/0.006074, allocations: 4 kB / 0.6429 GB, free: 8.723 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.11e-07/0.006075, allocations: 0 / 0.6429 GB, free: 8.723 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-06/0.006078, allocations: 0 / 0.6429 GB, free: 8.723 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.2e-07/0.006078, allocations: 0 / 0.6429 GB, free: 8.723 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.006079, allocations: 4.031 kB / 0.6429 GB, free: 8.719 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.906e-05/0.006118, allocations: 70.72 kB / 0.643 GB, free: 8.629 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 7.735e-06/0.006126, allocations: 7.953 kB / 0.643 GB, free: 8.621 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-06/0.006132, allocations: 0 / 0.643 GB, free: 8.621 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-06/0.006138, allocations: 0 / 0.643 GB, free: 8.621 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-06/0.006147, allocations: 3.938 kB / 0.643 GB, free: 8.617 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.72e-07/0.006148, allocations: 0 / 0.643 GB, free: 8.617 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 2.384e-05/0.006172, allocations: 32.81 kB / 0.643 GB, free: 8.582 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006172, allocations: 4 kB / 0.643 GB, free: 8.578 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001735/0.006346, allocations: 87.8 kB / 0.6431 GB, free: 8.492 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.0003585/0.006704, allocations: 255.5 kB / 0.6434 GB, free: 8.23 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 7.673e-05/0.006781, allocations: 58.53 kB / 0.6434 GB, free: 8.164 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.006784, allocations: 4 kB / 0.6434 GB, free: 8.16 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 6.782e-06/0.00679, allocations: 8.922 kB / 0.6434 GB, free: 8.148 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.85e-05/0.006839, allocations: 7.938 kB / 0.6434 GB, free: 8.141 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001551/0.006994, allocations: 150.5 kB / 0.6436 GB, free: 7.965 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.729e-05/0.007021, allocations: 63.34 kB / 0.6436 GB, free: 7.883 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 1.252e-05/0.007034, allocations: 3.938 kB / 0.6436 GB, free: 7.879 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.599e-05/0.00706, allocations: 51.38 kB / 0.6437 GB, free: 7.828 MB / 0.6043 GB Notification: Performance of SimCode: time 3.5e-07/0.00706, allocations: 0 / 0.6437 GB, free: 7.828 MB / 0.6043 GB Notification: Performance of Templates: time 0.003611/0.01067, allocations: 2.588 MB / 0.6462 GB, free: 5.238 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.sim & ./AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.305265116970986]