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.0009262/0.0009262, allocations: 92.22 kB / 19.65 MB, free: 276 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.001486/0.001486, allocations: 173 kB / 23.03 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 1.01/1.01, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.8332/0.8332, allocations: 154.6 MB / 414.5 MB, free: 0.6562 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_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.465e-06/2.465e-06, allocations: 0 / 0.5203 GB, free: 2.25 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/3.139e-05, allocations: 2.312 kB / 0.5203 GB, free: 2.246 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.004835/0.004867, allocations: 0.5168 MB / 0.5208 GB, free: 1.75 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005144/0.01001, allocations: 1.649 MB / 0.5224 GB, free: 88 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.616e-05/0.01007, allocations: 0.9688 kB / 0.5224 GB, free: 88 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002128/0.01028, allocations: 67.77 kB / 0.5225 GB, free: 20 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.567e-05/0.01033, allocations: 28.58 kB / 0.5225 GB, free: 15.99 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.001005/0.01133, allocations: 281.7 kB / 0.5228 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 9.206e-05/0.01142, allocations: 31.91 kB / 0.5228 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.01146, allocations: 4.953 kB / 0.5228 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.738e-05/0.01151, allocations: 23.97 kB / 0.5228 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 5.794e-05/0.01157, allocations: 41.7 kB / 0.5229 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.01158, allocations: 0 / 0.5229 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005755/0.01216, allocations: 466.9 kB / 0.5233 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.606e-05/0.01221, allocations: 24.97 kB / 0.5233 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.479e-05/0.01224, allocations: 15.91 kB / 0.5233 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004096/0.01265, allocations: 360.2 kB / 0.5237 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.01265, allocations: 3.984 kB / 0.5237 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.482e-06/0.01265, allocations: 0 / 0.5237 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.01266, allocations: 0.625 kB / 0.5237 GB, free: 14.77 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.01309, allocations: 467.6 kB / 0.5241 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.01313, allocations: 13.66 kB / 0.5241 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.01317, allocations: 8.891 kB / 0.5242 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.01331, allocations: 132.5 kB / 0.5243 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.627e-06/0.01332, allocations: 384 / 0.5243 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.01333, allocations: 9.469 kB / 0.5243 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.878e-05/0.01341, allocations: 30.25 kB / 0.5243 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.01341, allocations: 4.188 kB / 0.5243 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.01342, allocations: 1.188 kB / 0.5243 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.01343, allocations: 3.938 kB / 0.5243 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.216e-05/0.01344, allocations: 5.156 kB / 0.5243 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.01359, allocations: 152.6 kB / 0.5245 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.724e-05/0.01364, allocations: 27.06 kB / 0.5245 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.681e-05/0.01366, allocations: 8.406 kB / 0.5245 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.01371, allocations: 8.047 kB / 0.5245 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.01373, allocations: 42.02 kB / 0.5246 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.01373, allocations: 1 kB / 0.5246 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001551/0.01389, allocations: 41.59 kB / 0.5246 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.01392, allocations: 55.97 kB / 0.5247 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.01407, allocations: 265.2 kB / 0.5249 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.156e-06/0.01408, allocations: 26.45 kB / 0.5249 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.01413, allocations: 162.8 kB / 0.5251 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.01414, allocations: 3.188 kB / 0.5251 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.01418, allocations: 43.3 kB / 0.5251 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.0143, allocations: 0.5001 MB / 0.5256 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.478e-05/0.01432, allocations: 12 kB / 0.5256 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.465e-05/0.01434, allocations: 12 kB / 0.5256 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.734e-05/0.01439, allocations: 45.09 kB / 0.5257 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01439, allocations: 0 / 0.5257 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001009/0.01449, allocations: 97.47 kB / 0.5258 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.0145, allocations: 4.906 kB / 0.5258 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.01452, allocations: 0 / 0.5258 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.01453, allocations: 5.75 kB / 0.5258 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.645e-05/0.01455, allocations: 0 / 0.5258 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.01455, allocations: 3.938 kB / 0.5258 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.49e-05/0.01458, allocations: 3.953 kB / 0.5258 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-06/0.01459, allocations: 4 kB / 0.5258 GB, free: 12.42 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 8.198e-05/0.01467, allocations: 162.1 kB / 0.526 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.069e-05/0.01468, allocations: 15.89 kB / 0.526 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.87e-05/0.01478, allocations: 48.88 kB / 0.526 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.01478, allocations: 0 / 0.526 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.01478, allocations: 7.875 kB / 0.526 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01479, allocations: 3.984 kB / 0.526 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.156e-05/0.01488, allocations: 156.5 kB / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.01488, allocations: 0 / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-06/0.01489, allocations: 0 / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.01489, allocations: 2.156 kB / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.01489, allocations: 0 / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.0149, allocations: 4 kB / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.0149, allocations: 0 / 0.5262 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.737e-05/0.01496, allocations: 76.33 kB / 0.5263 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.268e-05/0.01497, allocations: 15.91 kB / 0.5263 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.918e-06/0.01498, allocations: 0.9062 kB / 0.5263 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-06/0.01499, allocations: 0 / 0.5263 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.015, allocations: 8.688 kB / 0.5263 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.015, allocations: 3.938 kB / 0.5263 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.762e-05/0.01507, allocations: 176.2 kB / 0.5265 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.01507, allocations: 0 / 0.5265 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002557/0.01533, allocations: 87.8 kB / 0.5265 GB, free: 11.61 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.0005658/0.01589, allocations: 258.2 kB / 0.5268 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002146/0.01611, allocations: 77.36 kB / 0.5269 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.01611, allocations: 0 / 0.5269 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.141e-05/0.01612, allocations: 14.72 kB / 0.5269 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.01628, allocations: 4 kB / 0.5269 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003916/0.01667, allocations: 193.1 kB / 0.5271 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.522e-05/0.01672, allocations: 75.08 kB / 0.5271 GB, free: 10.97 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.625e-05/0.01675, allocations: 7.984 kB / 0.5271 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.166e-05/0.01677, allocations: 8.5 kB / 0.5271 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of SimCode: time 8.52e-07/0.01677, allocations: 2.812 kB / 0.5271 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of Templates: time 0.005521/0.02229, allocations: 2.615 MB / 0.5297 GB, free: 8.48 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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8048368408344686]