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.0007303/0.0007303, allocations: 80.44 kB / 19.91 MB, free: 4 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.0007518/0.0007518, allocations: 169.2 kB / 23.19 MB, free: 1.371 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.8686/0.8686, allocations: 177.2 MB / 203.6 MB, free: 5.746 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.7041/0.7041, allocations: 154.7 MB / 414.7 MB, free: 0.7617 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: 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.001135/0.001135, allocations: 67.91 kB / 0.6195 GB, free: 13.2 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.4002/0.4013, allocations: 101.9 MB / 0.7191 GB, free: 23.61 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001117/0.4024, allocations: 0.5191 MB / 0.7196 GB, free: 23.3 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.4037, allocations: 1.608 MB / 0.7211 GB, free: 22.2 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.437e-05/0.4038, allocations: 5.219 kB / 0.7211 GB, free: 22.2 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.4039, allocations: 21.27 kB / 0.7212 GB, free: 22.19 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 2.373e-05/0.4039, allocations: 7.922 kB / 0.7212 GB, free: 22.19 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.0006666/0.4046, allocations: 282.1 kB / 0.7214 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 6.846e-05/0.4047, allocations: 33.05 kB / 0.7215 GB, free: 22.06 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 3.533e-05/0.4047, allocations: 2.375 kB / 0.7215 GB, free: 22.06 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 3.986e-05/0.4048, allocations: 16.38 kB / 0.7215 GB, free: 22.06 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 3.757e-05/0.4048, allocations: 18.73 kB / 0.7215 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 9.718e-06/0.4048, allocations: 0 / 0.7215 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005267/0.4053, allocations: 454.6 kB / 0.7219 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 4.645e-05/0.4054, allocations: 25.81 kB / 0.722 GB, free: 21.92 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 1.893e-05/0.4054, allocations: 12.69 kB / 0.722 GB, free: 21.91 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003505/0.4057, allocations: 349 kB / 0.7223 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.4057, allocations: 9.188 kB / 0.7223 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4057, allocations: 0 / 0.7223 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.4058, allocations: 0 / 0.7223 GB, free: 21.8 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.0002919/0.406, allocations: 337.2 kB / 0.7226 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.4061, allocations: 7.906 kB / 0.7227 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.4061, allocations: 9.062 kB / 0.7227 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.462e-05/0.4062, allocations: 130.9 kB / 0.7228 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.4062, allocations: 1.5 kB / 0.7228 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.4062, allocations: 1.656 kB / 0.7228 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.057e-05/0.4063, allocations: 41 kB / 0.7228 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.4063, allocations: 4 kB / 0.7228 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.4063, allocations: 1.172 kB / 0.7228 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.4063, allocations: 0 / 0.7228 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.356e-05/0.4063, allocations: 16.45 kB / 0.7228 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.269e-05/0.4064, allocations: 124 kB / 0.723 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 3.057e-05/0.4065, allocations: 27.48 kB / 0.723 GB, free: 21.14 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.727e-05/0.4065, allocations: 18.66 kB / 0.723 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.4065, allocations: 4.625 kB / 0.723 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.4065, allocations: 36.73 kB / 0.723 GB, free: 21.08 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.4065, allocations: 0 / 0.723 GB, free: 21.08 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001236/0.4067, allocations: 68.08 kB / 0.7231 GB, free: 21.04 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.083e-05/0.4067, allocations: 52.47 kB / 0.7232 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.738e-05/0.4068, allocations: 170.2 kB / 0.7233 GB, free: 20.86 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.43e-06/0.4068, allocations: 27.47 kB / 0.7234 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.563e-05/0.4068, allocations: 93.81 kB / 0.7234 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 9.638e-06/0.4068, allocations: 4.953 kB / 0.7234 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/0.4068, allocations: 25.97 kB / 0.7235 GB, free: 20.71 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.4e-05/0.4069, allocations: 321 kB / 0.7238 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.969e-05/0.4069, allocations: 41.27 kB / 0.7238 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.96e-05/0.4069, allocations: 37.89 kB / 0.7239 GB, free: 20.38 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.783e-05/0.407, allocations: 80.47 kB / 0.7239 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.407, allocations: 0 / 0.7239 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.234e-05/0.4071, allocations: 122.6 kB / 0.724 GB, free: 20.31 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.4071, allocations: 5.5 kB / 0.7241 GB, free: 20.31 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.4071, allocations: 2.234 kB / 0.7241 GB, free: 20.31 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.4071, allocations: 5 kB / 0.7241 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-05/0.4071, allocations: 3.938 kB / 0.7241 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.4071, allocations: 1.062 kB / 0.7241 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.4072, allocations: 20.89 kB / 0.7241 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.4072, allocations: 2.875 kB / 0.7241 GB, free: 20.28 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: 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 6.704e-05/0.4072, allocations: 129.5 kB / 0.7242 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-06/0.4072, allocations: 8.125 kB / 0.7242 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.841e-05/0.4073, allocations: 61.23 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4073, allocations: 0.9688 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4073, allocations: 0.75 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.815e-06/0.4073, allocations: 10.03 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-06/0.4073, allocations: 1.953 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.582e-06/0.4073, allocations: 1.453 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.092e-05/0.4073, allocations: 5.094 kB / 0.7243 GB, free: 20.1 MB / 0.6355 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 3.423e-05/0.4074, allocations: 129.1 kB / 0.7244 GB, free: 19.99 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 5.079e-05/0.4074, allocations: 227.8 kB / 0.7246 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.83e-05/0.4075, allocations: 8.875 kB / 0.7246 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.919e-05/0.4075, allocations: 123.7 kB / 0.7248 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of Backend: time 1.3e-07/0.4075, allocations: 0 / 0.7248 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0005607/0.4081, allocations: 299.3 kB / 0.725 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of SimCode: time 0.0002537/0.4083, allocations: 0.6099 MB / 0.7256 GB, free: 18.94 MB / 0.6355 GB Notification: Performance of Templates: time 0.003935/0.4123, allocations: 2.242 MB / 0.7278 GB, free: 18.75 MB / 0.6355 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: 3.876410969067365] Failed to read output from testmodel.py, exit status != 0: 0.4179885589983314 0.428921421 0.020929517 Calling exit ...