Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.00133/0.00133, allocations: 81.86 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.005557/0.005557, 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.01/1.01, allocations: 177.2 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.825/0.825, allocations: 154.6 MB / 414.8 MB, free: 0.5078 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0.9844 kB / 0.5207 GB, free: 1.945 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.862e-05/2.025e-05, allocations: 8.703 kB / 0.5207 GB, free: 1.938 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001054/0.001075, allocations: 0.523 MB / 0.5212 GB, free: 1.434 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.002924, allocations: 1.641 MB / 0.5228 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.524e-05/0.002969, allocations: 0 / 0.5228 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.003123, allocations: 22.09 kB / 0.5229 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 2.339e-05/0.003146, allocations: 7.984 kB / 0.5229 GB, free: 15.75 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.0008418/0.003988, allocations: 280.1 kB / 0.5231 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 7.297e-05/0.004061, allocations: 28.91 kB / 0.5232 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.569e-05/0.004097, allocations: 0 / 0.5232 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.611e-05/0.004143, allocations: 16.5 kB / 0.5232 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 3.528e-05/0.004178, allocations: 17.27 kB / 0.5232 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.004194, allocations: 4 kB / 0.5232 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005669/0.004761, allocations: 451 kB / 0.5236 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.449e-05/0.004816, allocations: 24.86 kB / 0.5236 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.604e-05/0.004832, allocations: 7.938 kB / 0.5237 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003859/0.005218, allocations: 348.6 kB / 0.524 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.005219, allocations: 0 / 0.524 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 6.81e-07/0.00522, allocations: 0 / 0.524 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.005223, allocations: 0 / 0.524 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.0004291/0.005652, allocations: 440.9 kB / 0.5244 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.005698, allocations: 12.03 kB / 0.5244 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.005733, allocations: 8.891 kB / 0.5244 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.005874, allocations: 132.4 kB / 0.5246 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.005886, allocations: 4.359 kB / 0.5246 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.005894, allocations: 1.656 kB / 0.5246 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.301e-05/0.005967, allocations: 30.27 kB / 0.5246 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.005975, allocations: 192 / 0.5246 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-06/0.00598, allocations: 1 kB / 0.5246 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.005989, allocations: 4.906 kB / 0.5246 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.315e-06/0.005998, allocations: 0 / 0.5246 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.006153, allocations: 117.2 kB / 0.5247 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.918e-05/0.006202, allocations: 31.48 kB / 0.5247 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.725e-05/0.006219, allocations: 8.469 kB / 0.5247 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.656e-05/0.006276, allocations: 12.05 kB / 0.5248 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.006301, allocations: 35.45 kB / 0.5248 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.006302, allocations: 0 / 0.5248 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.000121/0.006423, allocations: 45.59 kB / 0.5248 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.006451, allocations: 51.41 kB / 0.5249 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.006578, allocations: 226.8 kB / 0.5251 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.006588, allocations: 25.7 kB / 0.5251 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.006647, allocations: 146.8 kB / 0.5253 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.476e-06/0.006656, allocations: 3.25 kB / 0.5253 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-05/0.006692, allocations: 39.34 kB / 0.5253 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.006827, allocations: 0.4884 MB / 0.5258 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.815e-05/0.006845, allocations: 11.98 kB / 0.5258 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.319e-05/0.006858, allocations: 8 kB / 0.5258 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.084e-05/0.006899, allocations: 31.66 kB / 0.5258 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.006901, allocations: 4 kB / 0.5258 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.713e-05/0.006978, allocations: 68.97 kB / 0.5259 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.006994, allocations: 9.719 kB / 0.5259 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.007007, allocations: 6.969 kB / 0.5259 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.007021, allocations: 0 / 0.5259 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.712e-05/0.007038, allocations: 4 kB / 0.5259 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.007043, allocations: 4 kB / 0.5259 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.113e-05/0.007064, allocations: 11.83 kB / 0.5259 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.00707, allocations: 0 / 0.5259 GB, free: 12.43 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 8.911e-05/0.007159, allocations: 164.6 kB / 0.5261 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-06/0.007167, allocations: 9.453 kB / 0.5261 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.024e-05/0.007248, allocations: 45.09 kB / 0.5261 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.007249, allocations: 0 / 0.5261 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.007251, allocations: 0.5 kB / 0.5261 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.007258, allocations: 4.969 kB / 0.5261 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.618e-05/0.007344, allocations: 109.2 kB / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.007345, allocations: 3.938 kB / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.464e-06/0.007353, allocations: 4.906 kB / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.71e-07/0.007353, allocations: 0 / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-06/0.007357, allocations: 0.625 kB / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.007358, allocations: 0 / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.007359, allocations: 0.5 kB / 0.5263 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.606e-05/0.007415, allocations: 82.95 kB / 0.5263 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.078e-05/0.007426, allocations: 11.89 kB / 0.5264 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-06/0.007435, allocations: 0 / 0.5264 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-06/0.007442, allocations: 0 / 0.5264 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.018e-05/0.007452, allocations: 0 / 0.5264 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.007456, allocations: 4 kB / 0.5264 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.752e-05/0.007513, allocations: 154.6 kB / 0.5265 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.007513, allocations: 2.438 kB / 0.5265 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002632/0.007777, allocations: 83.8 kB / 0.5266 GB, free: 11.72 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.0004037/0.00818, allocations: 267.5 kB / 0.5268 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000116/0.008296, allocations: 66.34 kB / 0.5269 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.008298, allocations: 0 / 0.5269 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.586e-06/0.008306, allocations: 7.688 kB / 0.5269 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001107/0.008417, allocations: 8.969 kB / 0.5269 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002222/0.008639, allocations: 150.5 kB / 0.5271 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.48e-05/0.008674, allocations: 64.75 kB / 0.5271 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.767e-05/0.008692, allocations: 0 / 0.5271 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.008736, allocations: 70.2 kB / 0.5272 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of SimCode: time 5.41e-07/0.008736, allocations: 1.281 kB / 0.5272 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of Templates: time 0.00467/0.01341, allocations: 2.596 MB / 0.5297 GB, free: 8.605 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7138470872305334]