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.0007408/0.0007408, allocations: 76.45 kB / 19.91 MB, free: 16 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.0008128/0.0008128, allocations: 165.9 kB / 23.18 MB, free: 1.387 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.9133/0.9133, allocations: 177.2 MB / 203.6 MB, free: 5.785 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.698/0.698, allocations: 154.7 MB / 414.7 MB, free: 0.7539 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: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009399/0.0009399, allocations: 63.91 kB / 0.6195 GB, free: 13.22 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4605/0.4614, allocations: 102 MB / 0.7191 GB, free: 23.66 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001155/0.4626, allocations: 0.5157 MB / 0.7196 GB, free: 23.36 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.4641, allocations: 1.61 MB / 0.7211 GB, free: 22.26 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.964e-05/0.4642, allocations: 3.938 kB / 0.7211 GB, free: 22.26 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.4644, allocations: 58.84 kB / 0.7212 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 3.232e-05/0.4644, allocations: 34.97 kB / 0.7212 GB, free: 22.25 MB / 0.6355 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.0007593/0.4652, allocations: 278.9 kB / 0.7215 GB, free: 22.13 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 7.811e-05/0.4652, allocations: 38.41 kB / 0.7215 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 3.862e-05/0.4653, allocations: 5.719 kB / 0.7215 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 5.218e-05/0.4653, allocations: 24.98 kB / 0.7216 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.4654, allocations: 42.77 kB / 0.7216 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.4654, allocations: 1.094 kB / 0.7216 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005437/0.466, allocations: 453.9 kB / 0.722 GB, free: 21.98 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 5.201e-05/0.466, allocations: 26.55 kB / 0.7221 GB, free: 21.98 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.14e-05/0.466, allocations: 25.25 kB / 0.7221 GB, free: 21.96 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.4664, allocations: 370.1 kB / 0.7224 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.4664, allocations: 0 / 0.7224 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.214e-06/0.4664, allocations: 1.969 kB / 0.7224 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.4664, allocations: 0 / 0.7224 GB, free: 21.84 MB / 0.6355 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.0003033/0.4667, allocations: 365.1 kB / 0.7228 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.4668, allocations: 10.09 kB / 0.7228 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.067e-05/0.4668, allocations: 12.03 kB / 0.7228 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.4669, allocations: 128.2 kB / 0.7229 GB, free: 21.36 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.4669, allocations: 384 / 0.7229 GB, free: 21.36 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.4669, allocations: 6.672 kB / 0.7229 GB, free: 21.36 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.631e-05/0.467, allocations: 50.67 kB / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.467, allocations: 0 / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-06/0.467, allocations: 0 / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.467, allocations: 0 / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.739e-05/0.4671, allocations: 18.77 kB / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001129/0.4672, allocations: 136 kB / 0.7231 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 3.898e-05/0.4672, allocations: 29.19 kB / 0.7232 GB, free: 21.15 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.4672, allocations: 14.66 kB / 0.7232 GB, free: 21.14 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.4673, allocations: 7.719 kB / 0.7232 GB, free: 21.14 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.489e-05/0.4673, allocations: 43.7 kB / 0.7232 GB, free: 21.09 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 6.62e-07/0.4673, allocations: 0 / 0.7232 GB, free: 21.09 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001346/0.4674, allocations: 72.98 kB / 0.7233 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.99e-05/0.4674, allocations: 52.47 kB / 0.7233 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.4676, allocations: 217.7 kB / 0.7236 GB, free: 20.85 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.28e-06/0.4676, allocations: 26.31 kB / 0.7236 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.144e-05/0.4676, allocations: 104.9 kB / 0.7237 GB, free: 20.72 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.4676, allocations: 5.641 kB / 0.7237 GB, free: 20.72 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.4676, allocations: 29.67 kB / 0.7237 GB, free: 20.7 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.509e-05/0.4677, allocations: 323.1 kB / 0.724 GB, free: 20.38 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.43e-05/0.4677, allocations: 57.86 kB / 0.7241 GB, free: 20.37 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.358e-05/0.4678, allocations: 61.55 kB / 0.7241 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.221e-05/0.4679, allocations: 91.52 kB / 0.7242 GB, free: 20.33 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4679, allocations: 1.094 kB / 0.7242 GB, free: 20.33 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001337/0.468, allocations: 157.5 kB / 0.7244 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.468, allocations: 10.59 kB / 0.7244 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.468, allocations: 5.094 kB / 0.7244 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.468, allocations: 1.031 kB / 0.7244 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.809e-05/0.4681, allocations: 5.172 kB / 0.7244 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.4681, allocations: 1.188 kB / 0.7244 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.154e-05/0.4681, allocations: 18 kB / 0.7244 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.4681, allocations: 5.156 kB / 0.7244 GB, free: 20.25 MB / 0.6355 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.0001087/0.4682, allocations: 130.8 kB / 0.7245 GB, free: 20.13 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.4682, allocations: 11.27 kB / 0.7246 GB, free: 20.12 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.91e-05/0.4683, allocations: 67.86 kB / 0.7246 GB, free: 20.08 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.4683, allocations: 1.375 kB / 0.7246 GB, free: 20.08 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4683, allocations: 0 / 0.7246 GB, free: 20.08 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4683, allocations: 0.6562 kB / 0.7246 GB, free: 20.08 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.185e-05/0.4684, allocations: 133 kB / 0.7247 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4684, allocations: 4.781 kB / 0.7248 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.042e-06/0.4684, allocations: 1.125 kB / 0.7248 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.4684, allocations: 0 / 0.7248 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.4684, allocations: 1.984 kB / 0.7248 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4684, allocations: 3.938 kB / 0.7248 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4684, allocations: 0 / 0.7248 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.428e-05/0.4684, allocations: 90.48 kB / 0.7248 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.727e-06/0.4685, allocations: 12.44 kB / 0.7249 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.092e-05/0.4685, allocations: 1.219 kB / 0.7249 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.939e-06/0.4685, allocations: 4.594 kB / 0.7249 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.4685, allocations: 10.05 kB / 0.7249 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-06/0.4685, allocations: 0 / 0.7249 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.635e-05/0.4686, allocations: 152 kB / 0.725 GB, free: 19.75 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4686, allocations: 0 / 0.725 GB, free: 19.75 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002686/0.4688, allocations: 89.16 kB / 0.7251 GB, free: 19.74 MB / 0.6355 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.000377/0.4692, allocations: 239.9 kB / 0.7253 GB, free: 19.61 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001521/0.4694, allocations: 115.2 kB / 0.7254 GB, free: 19.56 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4694, allocations: 0 / 0.7254 GB, free: 19.56 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.285e-05/0.4694, allocations: 15.33 kB / 0.7255 GB, free: 19.56 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.4695, allocations: 11.89 kB / 0.7255 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.4698, allocations: 245 kB / 0.7257 GB, free: 19.37 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.704e-05/0.4698, allocations: 88.06 kB / 0.7258 GB, free: 19.29 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.521e-05/0.4698, allocations: 11.62 kB / 0.7258 GB, free: 19.29 MB / 0.6355 GB Notification: Performance of SimCode: time 6.31e-07/0.4698, allocations: 128 / 0.7258 GB, free: 19.29 MB / 0.6355 GB Notification: Performance of Templates: time 0.00395/0.4738, allocations: 2.485 MB / 0.7282 GB, free: 19.08 MB / 0.6355 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: 7.2289288968313485] Failed to read output from testmodel.py, exit status != 0: 0.4791449138429016 0.48858588799999997 0.020490151 Calling exit ...