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.0009998/0.0009998, allocations: 93.06 kB / 19.65 MB, free: 272 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.0009932/0.0009932, allocations: 165 kB / 23.02 MB, free: 1.543 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.9933/0.9933, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.7886/0.7886, allocations: 154.8 MB / 414.7 MB, free: 484 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.102e-06/1.102e-06, allocations: 0.5469 kB / 0.5205 GB, free: 1.949 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021e-05/1.131e-05, allocations: 2.312 kB / 0.5205 GB, free: 1.945 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.0009259/0.0009373, allocations: 0.5148 MB / 0.521 GB, free: 1.457 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.002646, allocations: 1.651 MB / 0.5226 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.286e-05/0.002679, allocations: 7.938 kB / 0.5226 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.00278, allocations: 16.53 kB / 0.5227 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 1.633e-05/0.002796, allocations: 7.938 kB / 0.5227 GB, free: 15.76 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.0005706/0.003366, allocations: 290.1 kB / 0.5229 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 4.204e-05/0.003409, allocations: 15.92 kB / 0.523 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 2.593e-05/0.003434, allocations: 4.938 kB / 0.523 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 3.103e-05/0.003465, allocations: 23.95 kB / 0.523 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 2.65e-05/0.003492, allocations: 17.33 kB / 0.523 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.003502, allocations: 0 / 0.523 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004478/0.00395, allocations: 455 kB / 0.5234 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 3.511e-05/0.003985, allocations: 21.08 kB / 0.5235 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.625e-05/0.004001, allocations: 7.938 kB / 0.5235 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002964/0.004298, allocations: 347.8 kB / 0.5238 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.502e-06/0.004299, allocations: 0 / 0.5238 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.094e-06/0.004301, allocations: 9.266 kB / 0.5238 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.045e-06/0.004304, allocations: 0 / 0.5238 GB, free: 14.6 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.0002854/0.00459, allocations: 431.9 kB / 0.5242 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.004623, allocations: 8.031 kB / 0.5242 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.004649, allocations: 14.17 kB / 0.5242 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.004753, allocations: 131.7 kB / 0.5244 GB, free: 13.97 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.956e-06/0.004762, allocations: 4.375 kB / 0.5244 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.004773, allocations: 5.062 kB / 0.5244 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.871e-05/0.004832, allocations: 26.27 kB / 0.5244 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.004841, allocations: 2.031 kB / 0.5244 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-06/0.004847, allocations: 384 / 0.5244 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.004855, allocations: 3.938 kB / 0.5244 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.013e-05/0.004865, allocations: 4 kB / 0.5244 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000108/0.004973, allocations: 142.4 kB / 0.5245 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 2.896e-05/0.005002, allocations: 31 kB / 0.5246 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.177e-05/0.005013, allocations: 7.688 kB / 0.5246 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.005044, allocations: 4.062 kB / 0.5246 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/0.005062, allocations: 37.38 kB / 0.5246 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.005062, allocations: 5.469 kB / 0.5246 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 8.597e-05/0.005148, allocations: 37.66 kB / 0.5247 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.218e-05/0.00517, allocations: 59.28 kB / 0.5247 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.005274, allocations: 223.1 kB / 0.5249 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.005282, allocations: 25.7 kB / 0.525 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.658e-05/0.005329, allocations: 146.8 kB / 0.5251 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.747e-06/0.005337, allocations: 0.5 kB / 0.5251 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/0.005369, allocations: 39.36 kB / 0.5251 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.005472, allocations: 0.4894 MB / 0.5256 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.554e-05/0.005488, allocations: 11.98 kB / 0.5256 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.41e-05/0.005502, allocations: 16.06 kB / 0.5256 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.64e-05/0.005538, allocations: 31.67 kB / 0.5257 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.00554, allocations: 0 / 0.5257 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.272e-05/0.005613, allocations: 78.08 kB / 0.5257 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.005623, allocations: 8 kB / 0.5257 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.005633, allocations: 1.938 kB / 0.5257 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.005646, allocations: 0 / 0.5257 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.287e-05/0.005659, allocations: 4 kB / 0.5258 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.005664, allocations: 7.875 kB / 0.5258 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.497e-05/0.005679, allocations: 11.89 kB / 0.5258 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.005684, allocations: 2.438 kB / 0.5258 GB, free: 12.39 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 (cluster_size[3],cluster_size[2],cluster_size[1],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.325e-05/0.005747, allocations: 163.6 kB / 0.5259 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-06/0.005754, allocations: 7.953 kB / 0.5259 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.323e-05/0.005817, allocations: 41.5 kB / 0.526 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.005819, allocations: 6.312 kB / 0.526 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.005822, allocations: 3.938 kB / 0.526 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.005825, allocations: 0 / 0.526 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.507e-05/0.00589, allocations: 136.6 kB / 0.5261 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.00589, allocations: 0 / 0.5261 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.437e-06/0.005894, allocations: 3.938 kB / 0.5261 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.005899, allocations: 9 kB / 0.5261 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-06/0.005902, allocations: 4 kB / 0.5261 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.005903, allocations: 0 / 0.5261 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.005903, allocations: 0.9375 kB / 0.5261 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.898e-05/0.005952, allocations: 72.34 kB / 0.5262 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-06/0.00596, allocations: 11.05 kB / 0.5262 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-06/0.005969, allocations: 3.984 kB / 0.5262 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-06/0.005977, allocations: 4 kB / 0.5262 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-06/0.005987, allocations: 3.938 kB / 0.5262 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/0.005988, allocations: 3.938 kB / 0.5262 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.283e-05/0.006041, allocations: 158.4 kB / 0.5264 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.006041, allocations: 0 / 0.5264 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000207/0.006248, allocations: 83.8 kB / 0.5265 GB, free: 11.63 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.0003663/0.006615, allocations: 260.9 kB / 0.5267 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 9.906e-05/0.006714, allocations: 78.86 kB / 0.5268 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.006715, allocations: 0 / 0.5268 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 6.222e-06/0.006722, allocations: 7.688 kB / 0.5268 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.008e-05/0.006812, allocations: 5.281 kB / 0.5268 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001769/0.006989, allocations: 150.5 kB / 0.5269 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.815e-05/0.007017, allocations: 63.28 kB / 0.527 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.256e-05/0.007029, allocations: 4.656 kB / 0.527 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.334e-05/0.007043, allocations: 9.344 kB / 0.527 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of SimCode: time 5.91e-07/0.007043, allocations: 0 / 0.527 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of Templates: time 0.003418/0.01046, allocations: 2.209 MB / 0.5292 GB, free: 8.918 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.900629026815295]