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.04128/0.04128, allocations: 9.13 MB / 28.99 MB, free: 0.8164 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.0008801/0.0008801, allocations: 98.39 kB / 35.33 MB, free: 1.07 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.001152/0.001152, allocations: 164.6 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.917/0.917, allocations: 177.1 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.004121/0.004121, allocations: 0.825 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.564/1.564, allocations: 274.9 MB / 0.5419 GB, free: 0.6523 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 1.172e-06/1.172e-06, allocations: 0 / 0.6378 GB, free: 14.2 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.473e-05/1.59e-05, allocations: 6.25 kB / 0.6378 GB, free: 14.19 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Clustering.Validation.KMeans_1d): time 0.0009809/0.0009968, allocations: 0.5286 MB / 0.6383 GB, free: 13.66 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.00264, allocations: 1.664 MB / 0.64 GB, free: 11.98 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.614e-05/0.002666, allocations: 0 / 0.64 GB, free: 11.98 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.002774, allocations: 23.84 kB / 0.64 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 1.711e-05/0.002792, allocations: 7.984 kB / 0.64 GB, free: 11.95 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.0006155/0.003407, allocations: 291 kB / 0.6403 GB, free: 11.66 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 5.153e-05/0.003459, allocations: 27.91 kB / 0.6403 GB, free: 11.64 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 2.539e-05/0.003484, allocations: 0 / 0.6403 GB, free: 11.64 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 3.188e-05/0.003516, allocations: 11.98 kB / 0.6403 GB, free: 11.62 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.003799, allocations: 15.92 kB / 0.6403 GB, free: 11.61 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 9.738e-06/0.003808, allocations: 0 / 0.6403 GB, free: 11.61 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004471/0.004255, allocations: 459 kB / 0.6408 GB, free: 11.16 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 3.387e-05/0.004289, allocations: 23.92 kB / 0.6408 GB, free: 11.14 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 1.174e-05/0.004301, allocations: 8 kB / 0.6408 GB, free: 11.13 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.004598, allocations: 351 kB / 0.6411 GB, free: 10.79 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.004599, allocations: 0 / 0.6411 GB, free: 10.79 MB / 0.6043 GB Notification: Performance of FrontEnd: time 5e-07/0.0046, allocations: 0 / 0.6411 GB, free: 10.79 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 2.565e-06/0.004602, allocations: 0 / 0.6411 GB, free: 10.79 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.0002234/0.004826, allocations: 308.2 kB / 0.6414 GB, free: 10.46 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 2.584e-05/0.004852, allocations: 11.98 kB / 0.6414 GB, free: 10.45 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.565e-05/0.004867, allocations: 4.938 kB / 0.6414 GB, free: 10.45 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.031e-05/0.004948, allocations: 129.7 kB / 0.6416 GB, free: 10.29 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-06/0.004953, allocations: 384 / 0.6416 GB, free: 10.29 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-06/0.004959, allocations: 4.375 kB / 0.6416 GB, free: 10.29 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.655e-05/0.004996, allocations: 33.09 kB / 0.6416 GB, free: 10.25 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.888e-06/0.005, allocations: 192 / 0.6416 GB, free: 10.25 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.436e-06/0.005003, allocations: 4.312 kB / 0.6416 GB, free: 10.25 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.005007, allocations: 3.938 kB / 0.6416 GB, free: 10.24 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.865e-06/0.005015, allocations: 7.938 kB / 0.6416 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.963e-05/0.005075, allocations: 70.69 kB / 0.6417 GB, free: 10.15 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 2.532e-05/0.0051, allocations: 22.61 kB / 0.6417 GB, free: 10.12 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.817e-06/0.005109, allocations: 4.859 kB / 0.6417 GB, free: 10.11 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.005133, allocations: 4.062 kB / 0.6417 GB, free: 10.11 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.005148, allocations: 34.56 kB / 0.6417 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.005148, allocations: 0 / 0.6417 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1): time 4.962e-05/0.005198, allocations: 41.62 kB / 0.6418 GB, free: 10.02 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/0.005218, allocations: 55.41 kB / 0.6418 GB, free: 9.949 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.409e-05/0.005293, allocations: 158.4 kB / 0.642 GB, free: 9.781 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 7.595e-06/0.0053, allocations: 25.7 kB / 0.642 GB, free: 9.75 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 2.361e-05/0.005324, allocations: 88.12 kB / 0.6421 GB, free: 9.66 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 6.222e-06/0.00533, allocations: 3.953 kB / 0.6421 GB, free: 9.656 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/0.005352, allocations: 25.69 kB / 0.6421 GB, free: 9.625 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 6.486e-05/0.005417, allocations: 326.9 kB / 0.6424 GB, free: 9.297 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.399e-05/0.005431, allocations: 18.83 kB / 0.6425 GB, free: 9.277 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.806e-06/0.00544, allocations: 7.938 kB / 0.6425 GB, free: 9.27 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.764e-05/0.005468, allocations: 31.66 kB / 0.6425 GB, free: 9.234 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.005469, allocations: 3.938 kB / 0.6425 GB, free: 9.23 MB / 0.6043 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.025e-05/0.005519, allocations: 61.73 kB / 0.6426 GB, free: 9.164 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 7.364e-06/0.005527, allocations: 4 kB / 0.6426 GB, free: 9.16 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.005536, allocations: 4 kB / 0.6426 GB, free: 9.156 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.29e-06/0.005541, allocations: 0 / 0.6426 GB, free: 9.156 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.644e-06/0.005548, allocations: 0 / 0.6426 GB, free: 9.156 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.724e-06/0.00555, allocations: 0 / 0.6426 GB, free: 9.156 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.005564, allocations: 15.89 kB / 0.6426 GB, free: 9.141 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.00557, allocations: 4 kB / 0.6426 GB, free: 9.137 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.242e-05/0.005622, allocations: 116.7 kB / 0.6427 GB, free: 9.012 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.458e-06/0.005627, allocations: 3.984 kB / 0.6427 GB, free: 9.008 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.005679, allocations: 45.44 kB / 0.6427 GB, free: 8.957 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.00568, allocations: 0 / 0.6427 GB, free: 8.957 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.005682, allocations: 0 / 0.6427 GB, free: 8.957 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.005684, allocations: 0 / 0.6427 GB, free: 8.957 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.416e-05/0.005728, allocations: 73.83 kB / 0.6428 GB, free: 8.867 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.005729, allocations: 8.016 kB / 0.6428 GB, free: 8.859 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.473e-06/0.005731, allocations: 0 / 0.6428 GB, free: 8.859 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.21e-07/0.005731, allocations: 0 / 0.6428 GB, free: 8.859 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-06/0.005735, allocations: 4 kB / 0.6428 GB, free: 8.855 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.005735, allocations: 0 / 0.6428 GB, free: 8.855 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.005736, allocations: 0 / 0.6428 GB, free: 8.855 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.603e-05/0.005772, allocations: 70.72 kB / 0.6429 GB, free: 8.766 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-06/0.005779, allocations: 7.953 kB / 0.6429 GB, free: 8.758 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.141e-06/0.005785, allocations: 3.938 kB / 0.6429 GB, free: 8.754 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-06/0.005791, allocations: 4 kB / 0.6429 GB, free: 8.75 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.804e-06/0.005798, allocations: 3.984 kB / 0.6429 GB, free: 8.746 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-07/0.005799, allocations: 4.031 kB / 0.6429 GB, free: 8.742 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 2.296e-05/0.005822, allocations: 32.81 kB / 0.6429 GB, free: 8.707 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5e-08/0.005822, allocations: 0 / 0.6429 GB, free: 8.707 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001639/0.005986, allocations: 87.8 kB / 0.643 GB, free: 8.621 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.0003602/0.006346, allocations: 255.4 kB / 0.6433 GB, free: 8.359 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 7.867e-05/0.006425, allocations: 66.52 kB / 0.6433 GB, free: 8.285 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.006427, allocations: 0 / 0.6433 GB, free: 8.285 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 5.961e-06/0.006433, allocations: 8.859 kB / 0.6433 GB, free: 8.273 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.788e-05/0.006481, allocations: 3.938 kB / 0.6433 GB, free: 8.27 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001637/0.006645, allocations: 154.4 kB / 0.6435 GB, free: 8.09 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.54e-05/0.00667, allocations: 63.33 kB / 0.6436 GB, free: 8.008 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 1.292e-05/0.006683, allocations: 4 kB / 0.6436 GB, free: 8.004 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.006709, allocations: 55.5 kB / 0.6436 GB, free: 7.949 MB / 0.6043 GB Notification: Performance of SimCode: time 3.7e-07/0.00671, allocations: 0 / 0.6436 GB, free: 7.949 MB / 0.6043 GB Notification: Performance of Templates: time 0.003753/0.01046, allocations: 2.573 MB / 0.6461 GB, free: 5.375 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 -lv LOG_STATS > AixLib_AixLib.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.179689941927791]