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.001392/0.001392, allocations: 79.44 kB / 19.18 MB, free: 2.52 MB / 14.72 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.001574/0.001574, allocations: 167.2 kB / 22.46 MB, free: 5.375 MB / 14.72 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.452/1.452, allocations: 177.2 MB / 202.8 MB, free: 9.168 MB / 190.1 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-531:190: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-531:198: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.197/1.197, allocations: 154.6 MB / 413.7 MB, free: 5.305 MB / 382.1 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.463e-06/1.463e-06, allocations: 0 / 0.6185 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.929e-05/3.076e-05, allocations: 6.281 kB / 0.6185 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.002168/0.002199, allocations: 0.5218 MB / 0.619 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00364/0.005839, allocations: 1.61 MB / 0.6206 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.864e-05/0.005878, allocations: 4 kB / 0.6206 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.006109, allocations: 63.78 kB / 0.6206 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.882e-05/0.006168, allocations: 31.95 kB / 0.6207 GB, free: 2.469 MB / 0.5294 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.001416/0.007585, allocations: 280.3 kB / 0.6209 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.00772, allocations: 39.89 kB / 0.621 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.111e-05/0.007771, allocations: 0 / 0.621 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.902e-05/0.00784, allocations: 27.91 kB / 0.621 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.411e-05/0.007935, allocations: 43.94 kB / 0.621 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.007954, allocations: 0 / 0.621 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.009019, allocations: 447.1 kB / 0.6215 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.085e-05/0.00909, allocations: 23.92 kB / 0.6215 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.623e-05/0.009126, allocations: 15.88 kB / 0.6215 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0007122/0.009838, allocations: 363 kB / 0.6218 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.912e-06/0.009845, allocations: 4 kB / 0.6218 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.182e-06/0.009846, allocations: 4 kB / 0.6218 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.009857, allocations: 0 / 0.6218 GB, free: 1.25 MB / 0.5294 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.0006078/0.01046, allocations: 361.3 kB / 0.6222 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.01051, allocations: 13.47 kB / 0.6222 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.01055, allocations: 12.84 kB / 0.6222 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.01079, allocations: 129.6 kB / 0.6223 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.0108, allocations: 8.312 kB / 0.6224 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.01082, allocations: 4.375 kB / 0.6224 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.01093, allocations: 38.25 kB / 0.6224 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.01094, allocations: 192 / 0.6224 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.01095, allocations: 384 / 0.6224 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01096, allocations: 7.938 kB / 0.6224 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.29e-05/0.01101, allocations: 19.98 kB / 0.6224 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002194/0.01122, allocations: 137.2 kB / 0.6225 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 6.744e-05/0.01129, allocations: 26.58 kB / 0.6226 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.517e-05/0.01133, allocations: 20.84 kB / 0.6226 GB, free: 396 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.01136, allocations: 4 kB / 0.6226 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.0114, allocations: 34.56 kB / 0.6226 GB, free: 348 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.0114, allocations: 0 / 0.6226 GB, free: 348 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0002104/0.01161, allocations: 65.62 kB / 0.6227 GB, free: 276 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.01166, allocations: 59.47 kB / 0.6228 GB, free: 204 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003529/0.01201, allocations: 223.9 kB / 0.623 GB, free: 15.97 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.01203, allocations: 25.7 kB / 0.623 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.621e-05/0.01212, allocations: 104.1 kB / 0.6231 GB, free: 15.83 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.01214, allocations: 3.953 kB / 0.6231 GB, free: 15.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.0122, allocations: 29.7 kB / 0.6231 GB, free: 15.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002183/0.01242, allocations: 322.8 kB / 0.6234 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.392e-05/0.01251, allocations: 59.91 kB / 0.6235 GB, free: 15.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.386e-05/0.01261, allocations: 58.66 kB / 0.6235 GB, free: 15.36 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.01276, allocations: 84.83 kB / 0.6236 GB, free: 15.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01276, allocations: 0 / 0.6236 GB, free: 15.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002845/0.01305, allocations: 165.6 kB / 0.6238 GB, free: 15.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.01306, allocations: 4 kB / 0.6238 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.01308, allocations: 0 / 0.6238 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.0131, allocations: 0 / 0.6238 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.829e-05/0.01312, allocations: 7.984 kB / 0.6238 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.01313, allocations: 3.938 kB / 0.6238 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.406e-05/0.01317, allocations: 15.78 kB / 0.6238 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.01318, allocations: 7.938 kB / 0.6238 GB, free: 15.06 MB / 0.545 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.0002297/0.01341, allocations: 130.8 kB / 0.6239 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.01343, allocations: 11.98 kB / 0.624 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.01359, allocations: 66.17 kB / 0.624 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.01359, allocations: 0 / 0.624 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.0136, allocations: 3.938 kB / 0.624 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.0136, allocations: 0 / 0.624 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.01377, allocations: 137.3 kB / 0.6242 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.01377, allocations: 0 / 0.6242 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-06/0.01378, allocations: 0 / 0.6242 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.01378, allocations: 0 / 0.6242 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.01379, allocations: 0 / 0.6242 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.01379, allocations: 7.984 kB / 0.6242 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01379, allocations: 4.031 kB / 0.6242 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.01393, allocations: 92.89 kB / 0.6243 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.796e-05/0.01395, allocations: 7.906 kB / 0.6243 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.01396, allocations: 4 kB / 0.6243 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.263e-05/0.01399, allocations: 4 kB / 0.6243 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.849e-05/0.01401, allocations: 0 / 0.6243 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.01401, allocations: 7.875 kB / 0.6243 GB, free: 14.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001991/0.01421, allocations: 152.3 kB / 0.6244 GB, free: 14.38 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.01421, allocations: 0 / 0.6244 GB, free: 14.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005164/0.01473, allocations: 87.8 kB / 0.6245 GB, free: 14.3 MB / 0.545 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.0007587/0.01549, allocations: 247.1 kB / 0.6247 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002615/0.01575, allocations: 117.7 kB / 0.6249 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.01575, allocations: 0 / 0.6249 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.548e-05/0.01577, allocations: 16 kB / 0.6249 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.01598, allocations: 4 kB / 0.6249 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004596/0.01644, allocations: 209.9 kB / 0.6251 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.01656, allocations: 92.17 kB / 0.6252 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.059e-05/0.01658, allocations: 0 / 0.6252 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.857e-05/0.01661, allocations: 16.48 kB / 0.6252 GB, free: 13.57 MB / 0.545 GB Notification: Performance of SimCode: time 4.11e-07/0.01661, allocations: 0 / 0.6252 GB, free: 13.57 MB / 0.545 GB Notification: Performance of Templates: time 0.008201/0.02481, allocations: 2.199 MB / 0.6273 GB, free: 11.38 MB / 0.545 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=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.8091907277703285] Failed to read output from testmodel.py, exit status != 0: 0.03665756806731224 0.051628226000000006 0.03853616 Calling exit ...