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.0007864/0.0007864, allocations: 76.55 kB / 19.93 MB, free: 4.633 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.0007529/0.0007529, allocations: 181.9 kB / 23.22 MB, free: 1.348 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 0.8668/0.8668, allocations: 177.1 MB / 203.5 MB, free: 5.754 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-531:686: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-531:694: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.7166/0.7166, allocations: 154.6 MB / 414.5 MB, free: 0.8281 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.803e-06/1.803e-06, allocations: 0 / 0.6193 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3e-05/3.18e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001465/0.001497, allocations: 0.52 MB / 0.6198 GB, free: 12.66 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001999/0.003496, allocations: 1.614 MB / 0.6214 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.015e-05/0.003546, allocations: 7.938 kB / 0.6214 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.003715, allocations: 19.91 kB / 0.6214 GB, free: 11 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.593e-05/0.003741, allocations: 11.92 kB / 0.6214 GB, free: 10.98 MB / 0.5886 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.0009641/0.004705, allocations: 279 kB / 0.6217 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 8.428e-05/0.004789, allocations: 19.98 kB / 0.6217 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 4.453e-05/0.004834, allocations: 11.92 kB / 0.6217 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.338e-05/0.004877, allocations: 11.98 kB / 0.6217 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.132e-05/0.004918, allocations: 15.98 kB / 0.6217 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.004935, allocations: 0 / 0.6217 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006353/0.00557, allocations: 455 kB / 0.6222 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 6.081e-05/0.005631, allocations: 19.98 kB / 0.6222 GB, free: 10.19 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.387e-05/0.005655, allocations: 7.938 kB / 0.6222 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0004377/0.006093, allocations: 351.1 kB / 0.6225 GB, free: 9.836 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.006096, allocations: 4 kB / 0.6225 GB, free: 9.832 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.693e-06/0.006097, allocations: 0 / 0.6225 GB, free: 9.832 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.006103, allocations: 0 / 0.6225 GB, free: 9.832 MB / 0.5886 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.0007771/0.00688, allocations: 329.6 kB / 0.6229 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.006924, allocations: 12.03 kB / 0.6229 GB, free: 9.469 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.323e-05/0.006967, allocations: 4.891 kB / 0.6229 GB, free: 9.465 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.007107, allocations: 125.7 kB / 0.623 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.007117, allocations: 4.312 kB / 0.623 GB, free: 9.312 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.007129, allocations: 4.375 kB / 0.623 GB, free: 9.309 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.007237, allocations: 42.19 kB / 0.623 GB, free: 9.262 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.007245, allocations: 192 / 0.623 GB, free: 9.262 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-06/0.007255, allocations: 4.375 kB / 0.623 GB, free: 9.258 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.00726, allocations: 3.938 kB / 0.623 GB, free: 9.254 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.634e-05/0.007286, allocations: 12 kB / 0.6231 GB, free: 9.242 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.007442, allocations: 137.2 kB / 0.6232 GB, free: 9.078 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.945e-05/0.007492, allocations: 18.58 kB / 0.6232 GB, free: 9.051 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.007513, allocations: 16.91 kB / 0.6232 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.007557, allocations: 4 kB / 0.6232 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.007584, allocations: 42.5 kB / 0.6233 GB, free: 8.977 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.007585, allocations: 0 / 0.6233 GB, free: 8.977 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001701/0.007756, allocations: 65.62 kB / 0.6233 GB, free: 8.906 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.007792, allocations: 55.34 kB / 0.6234 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.007922, allocations: 165.6 kB / 0.6235 GB, free: 8.672 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.007933, allocations: 25.7 kB / 0.6236 GB, free: 8.641 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.007979, allocations: 100.1 kB / 0.6237 GB, free: 8.539 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.121e-05/0.00799, allocations: 0 / 0.6237 GB, free: 8.539 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.008023, allocations: 25.7 kB / 0.6237 GB, free: 8.508 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.74e-05/0.00811, allocations: 322.8 kB / 0.624 GB, free: 8.184 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.624e-05/0.008157, allocations: 35.98 kB / 0.624 GB, free: 8.148 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.362e-05/0.00819, allocations: 39.98 kB / 0.6241 GB, free: 8.109 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.12e-05/0.008261, allocations: 79.75 kB / 0.6241 GB, free: 8.031 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.008264, allocations: 8.156 kB / 0.6241 GB, free: 8.023 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000113/0.008377, allocations: 121.6 kB / 0.6243 GB, free: 7.898 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.00839, allocations: 4 kB / 0.6243 GB, free: 7.895 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.008408, allocations: 7.984 kB / 0.6243 GB, free: 7.887 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.008421, allocations: 0 / 0.6243 GB, free: 7.887 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.452e-05/0.008436, allocations: 0 / 0.6243 GB, free: 7.887 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.008444, allocations: 7.938 kB / 0.6243 GB, free: 7.879 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.612e-05/0.00847, allocations: 15.88 kB / 0.6243 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.008478, allocations: 0 / 0.6243 GB, free: 7.863 MB / 0.5886 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 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001372/0.008615, allocations: 122.8 kB / 0.6244 GB, free: 7.734 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.008624, allocations: 7.984 kB / 0.6244 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.008732, allocations: 65.39 kB / 0.6245 GB, free: 7.656 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.008735, allocations: 3.984 kB / 0.6245 GB, free: 7.652 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.008742, allocations: 3.938 kB / 0.6245 GB, free: 7.648 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.008744, allocations: 4 kB / 0.6245 GB, free: 7.645 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.277e-05/0.008817, allocations: 117.3 kB / 0.6246 GB, free: 7.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.008819, allocations: 0 / 0.6246 GB, free: 7.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.989e-06/0.008824, allocations: 0 / 0.6246 GB, free: 7.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.008826, allocations: 3.938 kB / 0.6246 GB, free: 7.496 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.008832, allocations: 32 / 0.6246 GB, free: 7.496 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.008834, allocations: 8 kB / 0.6246 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.008837, allocations: 3.984 kB / 0.6246 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.141e-05/0.008898, allocations: 80.95 kB / 0.6247 GB, free: 7.387 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.917e-06/0.008907, allocations: 3.953 kB / 0.6247 GB, free: 7.383 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.008917, allocations: 8 kB / 0.6247 GB, free: 7.375 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.645e-06/0.008925, allocations: 0 / 0.6247 GB, free: 7.375 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.008939, allocations: 0 / 0.6247 GB, free: 7.375 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.008941, allocations: 3.938 kB / 0.6247 GB, free: 7.371 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.672e-05/0.009008, allocations: 126.7 kB / 0.6248 GB, free: 7.25 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.009008, allocations: 0 / 0.6248 GB, free: 7.25 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002832/0.009291, allocations: 91.83 kB / 0.6249 GB, free: 7.16 MB / 0.5886 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.0004329/0.009724, allocations: 248.3 kB / 0.6252 GB, free: 6.934 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001456/0.00987, allocations: 97.66 kB / 0.6253 GB, free: 6.832 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.009872, allocations: 64 / 0.6253 GB, free: 6.832 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.686e-06/0.00988, allocations: 15.94 kB / 0.6253 GB, free: 6.816 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.01, allocations: 4 kB / 0.6253 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002633/0.01026, allocations: 187 kB / 0.6255 GB, free: 6.598 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.093e-05/0.01032, allocations: 83.25 kB / 0.6255 GB, free: 6.496 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.62e-05/0.01034, allocations: 8.5 kB / 0.6255 GB, free: 6.488 MB / 0.5886 GB Notification: Performance of SimCode: time 5.51e-07/0.01034, allocations: 0 / 0.6255 GB, free: 6.488 MB / 0.5886 GB Notification: Performance of Templates: time 0.003747/0.01409, allocations: 2.37 MB / 0.6279 GB, free: 4.117 MB / 0.5886 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=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.7244887156412005] Failed to read output from testmodel.py, exit status != 0: 0.020500889979302883 0.028972798 0.021153137000000002 Calling exit ...