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.0009956/0.0009956, allocations: 80.45 kB / 19.9 MB, free: 12 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.001045/0.001045, allocations: 165.9 kB / 23.18 MB, free: 1.383 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.9634/0.9634, allocations: 177.2 MB / 203.6 MB, free: 5.773 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.7779/0.7779, allocations: 154.7 MB / 414.7 MB, free: 0.7461 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.0009593/0.0009593, allocations: 73.05 kB / 0.6195 GB, free: 13.17 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.4865/0.4875, allocations: 101.9 MB / 0.7191 GB, free: 23.62 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001304/0.4888, allocations: 0.5223 MB / 0.7196 GB, free: 23.31 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.4905, allocations: 1.609 MB / 0.7211 GB, free: 22.21 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.195e-05/0.4906, allocations: 0 / 0.7211 GB, free: 22.21 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0002013/0.4908, allocations: 58.11 kB / 0.7212 GB, free: 22.21 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 4.09e-05/0.4908, allocations: 36.03 kB / 0.7212 GB, free: 22.2 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.0009174/0.4917, allocations: 277.8 kB / 0.7215 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 9.32e-05/0.4918, allocations: 34.77 kB / 0.7215 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.4919, allocations: 6.719 kB / 0.7215 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 5.275e-05/0.4919, allocations: 27.56 kB / 0.7216 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 7.185e-05/0.492, allocations: 44.88 kB / 0.7216 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.492, allocations: 0 / 0.7216 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006257/0.4926, allocations: 458 kB / 0.722 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.4927, allocations: 25.62 kB / 0.7221 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.4927, allocations: 22.39 kB / 0.7221 GB, free: 21.91 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003962/0.4931, allocations: 312.6 kB / 0.7224 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4931, allocations: 1.094 kB / 0.7224 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.412e-06/0.4931, allocations: 0 / 0.7224 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.4931, allocations: 3.938 kB / 0.7224 GB, free: 21.82 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.000323/0.4934, allocations: 358 kB / 0.7227 GB, free: 21.49 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4935, allocations: 13.75 kB / 0.7227 GB, free: 21.49 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.4935, allocations: 12.19 kB / 0.7228 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.4936, allocations: 135.8 kB / 0.7229 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.4937, allocations: 5.469 kB / 0.7229 GB, free: 21.33 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.4937, allocations: 1.5 kB / 0.7229 GB, free: 21.33 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.464e-05/0.4938, allocations: 41.72 kB / 0.7229 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.4938, allocations: 0 / 0.7229 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.4938, allocations: 0.8906 kB / 0.7229 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.4938, allocations: 1.062 kB / 0.7229 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.034e-05/0.4938, allocations: 17.45 kB / 0.7229 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001118/0.4939, allocations: 134.3 kB / 0.7231 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.176e-05/0.494, allocations: 32.86 kB / 0.7231 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.931e-05/0.494, allocations: 13.97 kB / 0.7231 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.494, allocations: 10.77 kB / 0.7231 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/0.494, allocations: 36.33 kB / 0.7232 GB, free: 21.08 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.494, allocations: 5.094 kB / 0.7232 GB, free: 21.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001411/0.4942, allocations: 75.02 kB / 0.7232 GB, free: 21.03 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.4942, allocations: 53.16 kB / 0.7233 GB, free: 20.96 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.4944, allocations: 213.9 kB / 0.7235 GB, free: 20.84 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.45e-06/0.4944, allocations: 25.7 kB / 0.7235 GB, free: 20.8 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.4944, allocations: 102.6 kB / 0.7236 GB, free: 20.71 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.066e-05/0.4944, allocations: 3.953 kB / 0.7236 GB, free: 20.71 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.4944, allocations: 32.84 kB / 0.7237 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.691e-05/0.4945, allocations: 328.2 kB / 0.724 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.565e-05/0.4945, allocations: 54 kB / 0.724 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.617e-05/0.4946, allocations: 57.59 kB / 0.7241 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.766e-05/0.4947, allocations: 88.89 kB / 0.7242 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4947, allocations: 0 / 0.7242 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001268/0.4948, allocations: 157.8 kB / 0.7243 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.4948, allocations: 6.938 kB / 0.7243 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.4948, allocations: 9.5 kB / 0.7243 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.4948, allocations: 0 / 0.7243 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.459e-05/0.4948, allocations: 5.031 kB / 0.7243 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.4948, allocations: 0 / 0.7243 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.432e-05/0.4949, allocations: 27.23 kB / 0.7244 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.4949, allocations: 1.031 kB / 0.7244 GB, free: 20.23 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.0001211/0.495, allocations: 134.5 kB / 0.7245 GB, free: 20.12 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.774e-06/0.495, allocations: 11.38 kB / 0.7245 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.369e-05/0.4951, allocations: 67.23 kB / 0.7246 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4951, allocations: 1.641 kB / 0.7246 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4951, allocations: 0 / 0.7246 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4951, allocations: 0 / 0.7246 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.76e-05/0.4952, allocations: 130.4 kB / 0.7247 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4952, allocations: 7.969 kB / 0.7247 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-06/0.4952, allocations: 1.75 kB / 0.7247 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.4952, allocations: 0.7969 kB / 0.7247 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.79e-06/0.4952, allocations: 0 / 0.7247 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4952, allocations: 5.281 kB / 0.7247 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4952, allocations: 0.7969 kB / 0.7247 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.767e-05/0.4953, allocations: 85.33 kB / 0.7248 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.213e-05/0.4953, allocations: 11.66 kB / 0.7248 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.4953, allocations: 2.219 kB / 0.7248 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.005e-05/0.4953, allocations: 3.938 kB / 0.7248 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.4953, allocations: 5.5 kB / 0.7248 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.4953, allocations: 0.5625 kB / 0.7248 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.814e-05/0.4954, allocations: 154.9 kB / 0.725 GB, free: 19.74 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4954, allocations: 0.9688 kB / 0.725 GB, free: 19.74 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003094/0.4957, allocations: 89.66 kB / 0.725 GB, free: 19.73 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.0003998/0.4961, allocations: 245.6 kB / 0.7253 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001524/0.4963, allocations: 114.2 kB / 0.7254 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4963, allocations: 0 / 0.7254 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.187e-05/0.4963, allocations: 15.52 kB / 0.7254 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.4964, allocations: 7.688 kB / 0.7254 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002629/0.4967, allocations: 216.2 kB / 0.7256 GB, free: 19.39 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.36e-05/0.4967, allocations: 89.16 kB / 0.7257 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.755e-05/0.4967, allocations: 6.703 kB / 0.7257 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.52e-05/0.4968, allocations: 9.875 kB / 0.7257 GB, free: 19.3 MB / 0.6355 GB Notification: Performance of SimCode: time 6.82e-07/0.4968, allocations: 0 / 0.7257 GB, free: 19.3 MB / 0.6355 GB Notification: Performance of Templates: time 0.004886/0.5016, allocations: 2.176 MB / 0.7278 GB, free: 19.11 MB / 0.6355 GB " [Timeout remaining time 659] 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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.349373813020065] Failed to read output from testmodel.py, exit status != 0: 0.5081851530121639 0.517110072 0.022076414000000003 Calling exit ...