Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.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.0009498/0.0009498, allocations: 82.05 kB / 19.87 MB, free: 4.621 MB / 18.57 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.0009046/0.0009046, allocations: 169.7 kB / 23.27 MB, free: 1.223 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.009/1.009, allocations: 177.1 MB / 203.7 MB, free: 5.523 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.9177/0.9177, allocations: 154.9 MB / 415.1 MB, free: 276 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 0.5211 GB, free: 1.602 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.853e-05/3.051e-05, allocations: 4.031 kB / 0.5211 GB, free: 1.598 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001923/0.001954, allocations: 0.5189 MB / 0.5216 GB, free: 1.102 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002664/0.004617, allocations: 1.646 MB / 0.5232 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.409e-05/0.004672, allocations: 0.9688 kB / 0.5232 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.004848, allocations: 19.92 kB / 0.5232 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 3.007e-05/0.004878, allocations: 8.953 kB / 0.5232 GB, free: 15.41 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.001171/0.006049, allocations: 282.2 kB / 0.5235 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 8.834e-05/0.006137, allocations: 23.92 kB / 0.5235 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 4.358e-05/0.006181, allocations: 0 / 0.5235 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 5.622e-05/0.006237, allocations: 15.97 kB / 0.5235 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 4.429e-05/0.006281, allocations: 16.47 kB / 0.5235 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.006298, allocations: 1.031 kB / 0.5235 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008481/0.007146, allocations: 451 kB / 0.524 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.007209, allocations: 29.12 kB / 0.524 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.945e-05/0.007229, allocations: 4 kB / 0.524 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0005479/0.007776, allocations: 352.8 kB / 0.5243 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.007783, allocations: 4 kB / 0.5243 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.543e-06/0.007785, allocations: 3.938 kB / 0.5244 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.007789, allocations: 0 / 0.5244 GB, free: 14.26 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.0004797/0.008269, allocations: 435.9 kB / 0.5248 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.008319, allocations: 13.84 kB / 0.5248 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.845e-05/0.008357, allocations: 8.891 kB / 0.5248 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.008503, allocations: 128.4 kB / 0.5249 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.008514, allocations: 384 / 0.5249 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.008521, allocations: 384 / 0.5249 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.283e-05/0.008594, allocations: 31.92 kB / 0.5249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.008602, allocations: 192 / 0.5249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.008608, allocations: 384 / 0.5249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.008615, allocations: 3.938 kB / 0.5249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.133e-05/0.008627, allocations: 4.734 kB / 0.5249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.008772, allocations: 109.2 kB / 0.5251 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.294e-05/0.008815, allocations: 36.39 kB / 0.5251 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.432e-05/0.008829, allocations: 7.688 kB / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.008876, allocations: 8.047 kB / 0.5251 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.008907, allocations: 46.73 kB / 0.5251 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.008908, allocations: 0 / 0.5251 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001276/0.009036, allocations: 45.58 kB / 0.5252 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.009069, allocations: 52.56 kB / 0.5252 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.00923, allocations: 224.6 kB / 0.5255 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.009244, allocations: 25.7 kB / 0.5255 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.00931, allocations: 145.6 kB / 0.5256 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.009323, allocations: 0 / 0.5256 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.025e-05/0.009373, allocations: 43.28 kB / 0.5257 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.009543, allocations: 0.4962 MB / 0.5261 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.017e-05/0.009563, allocations: 8 kB / 0.5262 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.793e-05/0.009581, allocations: 10.73 kB / 0.5262 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.849e-05/0.009639, allocations: 31.64 kB / 0.5262 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.009641, allocations: 0.5312 kB / 0.5262 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001143/0.009756, allocations: 70.16 kB / 0.5263 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.009774, allocations: 8 kB / 0.5263 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.009793, allocations: 4.953 kB / 0.5263 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.009807, allocations: 0 / 0.5263 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.739e-05/0.009824, allocations: 1.031 kB / 0.5263 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.009828, allocations: 0 / 0.5263 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.363e-05/0.009862, allocations: 19.77 kB / 0.5263 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.009871, allocations: 0.9375 kB / 0.5263 GB, free: 12.09 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: 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 0.0001562/0.01003, allocations: 156.6 kB / 0.5264 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.01007, allocations: 11.08 kB / 0.5265 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001861/0.01026, allocations: 41.5 kB / 0.5265 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.01026, allocations: 4 kB / 0.5265 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.01027, allocations: 0 / 0.5265 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.01027, allocations: 7.875 kB / 0.5265 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.0104, allocations: 105.2 kB / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.0104, allocations: 0 / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.316e-05/0.01042, allocations: 6.781 kB / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.01042, allocations: 0 / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-06/0.01043, allocations: 0 / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.01043, allocations: 3.984 kB / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.01043, allocations: 0 / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.545e-05/0.01053, allocations: 76.34 kB / 0.5267 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.64e-05/0.01055, allocations: 7.953 kB / 0.5267 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.01056, allocations: 1.281 kB / 0.5267 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.094e-05/0.01058, allocations: 0 / 0.5267 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.01059, allocations: 3.984 kB / 0.5267 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.0106, allocations: 4 kB / 0.5267 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.391e-05/0.01066, allocations: 150.9 kB / 0.5268 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.01066, allocations: 1.969 kB / 0.5269 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000301/0.01097, allocations: 91.73 kB / 0.5269 GB, free: 11.38 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.0004648/0.01143, allocations: 269.8 kB / 0.5272 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001212/0.01155, allocations: 73.3 kB / 0.5273 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.01155, allocations: 2.281 kB / 0.5273 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.01e-05/0.01156, allocations: 11.67 kB / 0.5273 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001145/0.01168, allocations: 6.344 kB / 0.5273 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002343/0.01191, allocations: 146.5 kB / 0.5274 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.441e-05/0.01195, allocations: 63.34 kB / 0.5275 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.407e-05/0.01197, allocations: 4.578 kB / 0.5275 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.01201, allocations: 72.64 kB / 0.5276 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of SimCode: time 1.343e-06/0.01201, allocations: 0 / 0.5276 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of Templates: time 0.004399/0.01641, allocations: 2.588 MB / 0.5301 GB, free: 8.258 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8248944100923836]