Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.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.001987/0.001987, allocations: 92.7 kB / 19.44 MB, free: 324 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.002611/0.002611, allocations: 161.3 kB / 22.75 MB, free: 1.656 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.553/1.553, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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 1.229/1.229, allocations: 154.6 MB / 414.2 MB, free: 0.6328 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 178] 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.023e-06/2.023e-06, allocations: 0 / 0.5196 GB, free: 2.582 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.211e-05/3.413e-05, allocations: 5.594 kB / 0.5196 GB, free: 2.578 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.002531/0.002565, allocations: 0.5105 MB / 0.5201 GB, free: 2.086 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005004/0.00757, allocations: 1.615 MB / 0.5217 GB, free: 468 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.623e-05/0.007606, allocations: 4 kB / 0.5217 GB, free: 464 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.007903, allocations: 63.78 kB / 0.5217 GB, free: 400 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 9.831e-05/0.008001, allocations: 32.91 kB / 0.5218 GB, free: 368 kB / 490.7 MB [/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.001684/0.009685, allocations: 278.5 kB / 0.522 GB, free: 92 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.009811, allocations: 36.64 kB / 0.5221 GB, free: 56 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.258e-05/0.009873, allocations: 12.69 kB / 0.5221 GB, free: 44 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.341e-05/0.009957, allocations: 15.98 kB / 0.5221 GB, free: 28 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.01014, allocations: 52.52 kB / 0.5221 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.01016, allocations: 0.6875 kB / 0.5221 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.01158, allocations: 452.4 kB / 0.5226 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.01167, allocations: 27.92 kB / 0.5226 GB, free: 15.51 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 4.037e-05/0.01171, allocations: 7.938 kB / 0.5226 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0009411/0.01265, allocations: 367.7 kB / 0.5229 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.01266, allocations: 4 kB / 0.5229 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.11e-07/0.01266, allocations: 0.8125 kB / 0.523 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.01266, allocations: 0 / 0.523 GB, free: 15.14 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.0008681/0.01353, allocations: 360.4 kB / 0.5233 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.01358, allocations: 8.031 kB / 0.5233 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.442e-05/0.01364, allocations: 12.89 kB / 0.5233 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.01392, allocations: 137.5 kB / 0.5234 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.01393, allocations: 384 / 0.5234 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.01395, allocations: 384 / 0.5234 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.01408, allocations: 38.27 kB / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.01409, allocations: 192 / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.0141, allocations: 0.875 kB / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.01411, allocations: 3.938 kB / 0.5235 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.789e-05/0.01417, allocations: 24.95 kB / 0.5235 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002915/0.01446, allocations: 133.3 kB / 0.5236 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 9.343e-05/0.01456, allocations: 31.12 kB / 0.5237 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.299e-05/0.01462, allocations: 16.86 kB / 0.5237 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.213e-05/0.01467, allocations: 8.953 kB / 0.5237 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/0.01473, allocations: 34.56 kB / 0.5237 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 1.542e-06/0.01473, allocations: 0.9688 kB / 0.5237 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0002886/0.01502, allocations: 69.58 kB / 0.5238 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.01509, allocations: 56.25 kB / 0.5238 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.0155, allocations: 213.9 kB / 0.5241 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.01554, allocations: 26.73 kB / 0.5241 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.01568, allocations: 108.1 kB / 0.5242 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.01569, allocations: 0 / 0.5242 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.77e-05/0.01578, allocations: 30.92 kB / 0.5242 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002845/0.01606, allocations: 326.8 kB / 0.5245 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.0162, allocations: 51.98 kB / 0.5246 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.01632, allocations: 56.59 kB / 0.5246 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.01666, allocations: 87.36 kB / 0.5247 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.01666, allocations: 5.656 kB / 0.5247 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000392/0.01705, allocations: 157.5 kB / 0.5249 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.01708, allocations: 8 kB / 0.5249 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.01709, allocations: 0 / 0.5249 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.01712, allocations: 1.219 kB / 0.5249 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.477e-05/0.01714, allocations: 4 kB / 0.5249 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.01715, allocations: 3.938 kB / 0.5249 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.989e-05/0.01722, allocations: 24.56 kB / 0.5249 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.01724, allocations: 0 / 0.5249 GB, free: 12.98 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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 0.0002757/0.01751, allocations: 135 kB / 0.525 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.01754, allocations: 7.953 kB / 0.525 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/0.01773, allocations: 62.84 kB / 0.5251 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.01774, allocations: 4.625 kB / 0.5251 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.01775, allocations: 3.938 kB / 0.5251 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.01775, allocations: 5.797 kB / 0.5251 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.01797, allocations: 133.2 kB / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01797, allocations: 0 / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.945e-06/0.01798, allocations: 0 / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.01798, allocations: 0 / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.01799, allocations: 1.594 kB / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.01799, allocations: 0 / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01799, allocations: 0 / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002008/0.0182, allocations: 85.02 kB / 0.5253 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.01823, allocations: 14.66 kB / 0.5253 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.01825, allocations: 3.984 kB / 0.5253 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.639e-05/0.01828, allocations: 4 kB / 0.5253 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.0183, allocations: 0 / 0.5253 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.0183, allocations: 7.875 kB / 0.5254 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002679/0.01857, allocations: 155.4 kB / 0.5255 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.81e-07/0.01857, allocations: 0 / 0.5255 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0006322/0.0192, allocations: 85.81 kB / 0.5256 GB, free: 12.24 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.001075/0.02028, allocations: 265.9 kB / 0.5258 GB, free: 12 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003104/0.02059, allocations: 113.7 kB / 0.5259 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.02059, allocations: 6.438 kB / 0.5259 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 3.55e-05/0.02063, allocations: 11.98 kB / 0.526 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.02087, allocations: 0 / 0.526 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006267/0.0215, allocations: 221 kB / 0.5262 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.02167, allocations: 88.31 kB / 0.5263 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.356e-05/0.02169, allocations: 0.875 kB / 0.5263 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.02172, allocations: 12.44 kB / 0.5263 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of SimCode: time 5.51e-07/0.02172, allocations: 0.6562 kB / 0.5263 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of Templates: time 0.01047/0.03219, allocations: 2.222 MB / 0.5284 GB, free: 9.398 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.001573704066686]