Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.002454/0.002454, allocations: 85.48 kB / 19.44 MB, free: 344 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.003065/0.003065, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.616/1.616, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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 1.348/1.348, allocations: 154.8 MB / 414.4 MB, free: 476 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 178] 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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0.875 kB / 0.5198 GB, free: 2.363 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.105e-05/3.266e-05, allocations: 5.094 kB / 0.5198 GB, free: 2.359 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001729/0.001761, allocations: 0.5254 MB / 0.5203 GB, free: 1.855 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.00452, allocations: 1.636 MB / 0.5219 GB, free: 208 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.00455, allocations: 0 / 0.5219 GB, free: 208 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.004768, allocations: 56.36 kB / 0.522 GB, free: 152 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.442e-05/0.004812, allocations: 36.91 kB / 0.522 GB, free: 116 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.0009743/0.005786, allocations: 278.4 kB / 0.5223 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 8.804e-05/0.005874, allocations: 35.89 kB / 0.5223 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.234e-05/0.005907, allocations: 0 / 0.5223 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 6.151e-05/0.005968, allocations: 27.91 kB / 0.5223 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.76e-05/0.006046, allocations: 44.81 kB / 0.5224 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.006061, allocations: 0 / 0.5224 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008247/0.006886, allocations: 456.1 kB / 0.5228 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.00695, allocations: 28.95 kB / 0.5228 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.006981, allocations: 11.94 kB / 0.5229 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.000572/0.007553, allocations: 355.1 kB / 0.5232 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.007557, allocations: 0.9062 kB / 0.5232 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.021e-06/0.007558, allocations: 7.938 kB / 0.5232 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.007563, allocations: 0.5312 kB / 0.5232 GB, free: 14.9 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.0005632/0.008126, allocations: 471.9 kB / 0.5237 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.00816, allocations: 8.031 kB / 0.5237 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.008201, allocations: 9.641 kB / 0.5237 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.008375, allocations: 136.4 kB / 0.5238 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.836e-06/0.008384, allocations: 0.875 kB / 0.5238 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.008394, allocations: 4.375 kB / 0.5238 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.433e-05/0.008479, allocations: 31.11 kB / 0.5238 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.008486, allocations: 3.094 kB / 0.5238 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.008493, allocations: 384 / 0.5238 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.403e-06/0.0085, allocations: 3.938 kB / 0.5238 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.966e-05/0.00852, allocations: 3.984 kB / 0.5238 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002015/0.008721, allocations: 160.5 kB / 0.524 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.567e-05/0.008777, allocations: 31 kB / 0.524 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.806e-05/0.008795, allocations: 7.688 kB / 0.524 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.008832, allocations: 8.062 kB / 0.524 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.008869, allocations: 38.48 kB / 0.5241 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.00887, allocations: 0 / 0.5241 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001294/0.008999, allocations: 46.14 kB / 0.5241 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.009044, allocations: 55.91 kB / 0.5242 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.009297, allocations: 260.5 kB / 0.5244 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.009316, allocations: 26.64 kB / 0.5244 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.009429, allocations: 154.8 kB / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.057e-06/0.009438, allocations: 1.438 kB / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.123e-05/0.009499, allocations: 43.36 kB / 0.5246 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002633/0.009762, allocations: 0.4962 MB / 0.5251 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.947e-05/0.009792, allocations: 15.98 kB / 0.5251 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.504e-05/0.009817, allocations: 12.97 kB / 0.5252 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.079e-05/0.009878, allocations: 39.75 kB / 0.5252 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.009879, allocations: 0 / 0.5252 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001345/0.01001, allocations: 97.47 kB / 0.5253 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.01003, allocations: 4 kB / 0.5253 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.01004, allocations: 7.922 kB / 0.5253 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.01006, allocations: 0 / 0.5253 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.35e-05/0.01007, allocations: 4 kB / 0.5253 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.351e-06/0.01008, allocations: 4.812 kB / 0.5253 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.937e-05/0.01011, allocations: 7.938 kB / 0.5253 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.01012, allocations: 5.219 kB / 0.5253 GB, free: 12.55 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.000124/0.01024, allocations: 160.6 kB / 0.5255 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.01025, allocations: 10.7 kB / 0.5255 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.01036, allocations: 50.14 kB / 0.5255 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.01037, allocations: 0 / 0.5255 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.01037, allocations: 7.938 kB / 0.5255 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.01038, allocations: 3.938 kB / 0.5255 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.01052, allocations: 148.6 kB / 0.5257 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.01052, allocations: 0 / 0.5257 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.369e-06/0.01052, allocations: 2.438 kB / 0.5257 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.01052, allocations: 0 / 0.5257 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-06/0.01053, allocations: 0 / 0.5257 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.01053, allocations: 3.984 kB / 0.5257 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.01053, allocations: 3.938 kB / 0.5257 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.286e-05/0.01063, allocations: 76.34 kB / 0.5258 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.01065, allocations: 16.56 kB / 0.5258 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.01066, allocations: 1 kB / 0.5258 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.487e-05/0.01067, allocations: 3.984 kB / 0.5258 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.01069, allocations: 0 / 0.5258 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.0107, allocations: 8.594 kB / 0.5258 GB, free: 12 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001377/0.01084, allocations: 168.2 kB / 0.526 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.01084, allocations: 3.438 kB / 0.526 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003212/0.01116, allocations: 91.8 kB / 0.526 GB, free: 11.74 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.0006947/0.01185, allocations: 256.8 kB / 0.5263 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001617/0.01201, allocations: 81.3 kB / 0.5264 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.01202, allocations: 0 / 0.5264 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.523e-05/0.01203, allocations: 7.688 kB / 0.5264 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.01217, allocations: 12.58 kB / 0.5264 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003327/0.0125, allocations: 190.7 kB / 0.5266 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.316e-05/0.0126, allocations: 88.83 kB / 0.5266 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.539e-05/0.01261, allocations: 1.5 kB / 0.5267 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.715e-05/0.01263, allocations: 8.5 kB / 0.5267 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of SimCode: time 4.1e-07/0.01263, allocations: 0 / 0.5267 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of Templates: time 0.006185/0.01882, allocations: 2.21 MB / 0.5288 GB, free: 8.973 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.126767893903889]