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.0007276/0.0007276, 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.0007619/0.0007619, 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.9332/0.9332, allocations: 177.2 MB / 203.6 MB, free: 5.77 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.7292/0.7292, allocations: 154.7 MB / 414.7 MB, free: 0.7695 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.0008721/0.0008721, allocations: 71.89 kB / 0.6195 GB, free: 13.18 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.5145/0.5153, allocations: 102 MB / 0.7191 GB, free: 23.67 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001247/0.5166, allocations: 0.5157 MB / 0.7196 GB, free: 23.37 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.5182, allocations: 1.611 MB / 0.7211 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.011e-05/0.5183, allocations: 0 / 0.7211 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.5185, allocations: 63.75 kB / 0.7212 GB, free: 22.26 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 3.327e-05/0.5185, allocations: 30.2 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.0008045/0.5193, allocations: 282.9 kB / 0.7215 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 7.881e-05/0.5194, allocations: 34.84 kB / 0.7215 GB, free: 22.13 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 3.984e-05/0.5194, allocations: 5.891 kB / 0.7215 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 5.145e-05/0.5195, allocations: 24.36 kB / 0.7216 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 6.521e-05/0.5196, allocations: 48.11 kB / 0.7216 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.5196, allocations: 4 kB / 0.7216 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005895/0.5202, allocations: 453.6 kB / 0.722 GB, free: 21.98 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 6.055e-05/0.5202, allocations: 26.7 kB / 0.7221 GB, free: 21.98 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.453e-05/0.5202, allocations: 22.05 kB / 0.7221 GB, free: 21.96 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003721/0.5206, allocations: 309.2 kB / 0.7224 GB, free: 21.88 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.5206, allocations: 0 / 0.7224 GB, free: 21.88 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.074e-06/0.5206, allocations: 0 / 0.7224 GB, free: 21.88 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.5206, allocations: 1.031 kB / 0.7224 GB, free: 21.88 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.0003348/0.521, allocations: 364.8 kB / 0.7227 GB, free: 21.54 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.521, allocations: 13.72 kB / 0.7227 GB, free: 21.54 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.521, allocations: 13.16 kB / 0.7228 GB, free: 21.53 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.5212, allocations: 132.7 kB / 0.7229 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.118e-06/0.5212, allocations: 384 / 0.7229 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-06/0.5212, allocations: 1.438 kB / 0.7229 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.309e-05/0.5213, allocations: 45.7 kB / 0.7229 GB, free: 21.35 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.5213, allocations: 0 / 0.7229 GB, free: 21.35 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.5213, allocations: 1.156 kB / 0.7229 GB, free: 21.35 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.5213, allocations: 0 / 0.7229 GB, free: 21.35 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.147e-05/0.5213, allocations: 19.23 kB / 0.723 GB, free: 21.35 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000114/0.5214, allocations: 135.2 kB / 0.7231 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.139e-05/0.5215, allocations: 34.11 kB / 0.7231 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.955e-05/0.5215, allocations: 15.31 kB / 0.7231 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.5215, allocations: 8.031 kB / 0.7231 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.5215, allocations: 35.62 kB / 0.7232 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.5215, allocations: 0 / 0.7232 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.5217, allocations: 76.42 kB / 0.7232 GB, free: 21.08 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.5217, allocations: 51.41 kB / 0.7233 GB, free: 21.02 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.5219, allocations: 214.1 kB / 0.7235 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.5219, allocations: 26.83 kB / 0.7235 GB, free: 20.86 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.18e-05/0.5219, allocations: 105.7 kB / 0.7236 GB, free: 20.76 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.13e-05/0.5219, allocations: 7.953 kB / 0.7236 GB, free: 20.75 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.522, allocations: 29.72 kB / 0.7237 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 4.85e-05/0.522, allocations: 327.8 kB / 0.724 GB, free: 20.41 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.87e-05/0.5221, allocations: 53.5 kB / 0.724 GB, free: 20.41 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.312e-05/0.5222, allocations: 61.08 kB / 0.7241 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.662e-05/0.5222, allocations: 84.7 kB / 0.7242 GB, free: 20.37 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5222, allocations: 0 / 0.7242 GB, free: 20.37 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001427/0.5224, allocations: 161.5 kB / 0.7243 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.5224, allocations: 5.609 kB / 0.7243 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.5224, allocations: 9.188 kB / 0.7243 GB, free: 20.31 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.5224, allocations: 13.81 kB / 0.7243 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.557e-05/0.5225, allocations: 4 kB / 0.7243 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.5225, allocations: 1.156 kB / 0.7243 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.643e-05/0.5225, allocations: 14.91 kB / 0.7244 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.5225, allocations: 1.156 kB / 0.7244 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: 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.0001422/0.5226, allocations: 137.5 kB / 0.7245 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.5226, allocations: 12.05 kB / 0.7245 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.5228, allocations: 67.5 kB / 0.7246 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.5228, allocations: 1 kB / 0.7246 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.5228, allocations: 4 kB / 0.7246 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5228, allocations: 1.672 kB / 0.7246 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.907e-05/0.5228, allocations: 129 kB / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.5228, allocations: 0 / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-06/0.5228, allocations: 1.859 kB / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.5229, allocations: 0 / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.5229, allocations: 0.6094 kB / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5229, allocations: 5.188 kB / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.5229, allocations: 0 / 0.7247 GB, free: 19.98 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.718e-05/0.5229, allocations: 94.98 kB / 0.7248 GB, free: 19.89 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.658e-06/0.5229, allocations: 15.25 kB / 0.7248 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.5229, allocations: 0.6562 kB / 0.7248 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-06/0.5229, allocations: 5.375 kB / 0.7248 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.523, allocations: 0.7969 kB / 0.7248 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.523, allocations: 2.297 kB / 0.7248 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.946e-05/0.523, allocations: 154.6 kB / 0.725 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.523, allocations: 0 / 0.725 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002896/0.5233, allocations: 85.27 kB / 0.725 GB, free: 19.77 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.0003849/0.5237, allocations: 241.7 kB / 0.7253 GB, free: 19.64 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000163/0.5239, allocations: 114.4 kB / 0.7254 GB, free: 19.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.5239, allocations: 0 / 0.7254 GB, free: 19.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.255e-05/0.5239, allocations: 14.7 kB / 0.7254 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.524, allocations: 9.094 kB / 0.7254 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002762/0.5243, allocations: 221.9 kB / 0.7256 GB, free: 19.43 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.519e-05/0.5244, allocations: 88.92 kB / 0.7257 GB, free: 19.36 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.911e-05/0.5244, allocations: 1.156 kB / 0.7257 GB, free: 19.36 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.495e-05/0.5244, allocations: 10.48 kB / 0.7257 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of SimCode: time 5.21e-07/0.5244, allocations: 0 / 0.7257 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of Templates: time 0.004864/0.5293, allocations: 2.17 MB / 0.7278 GB, free: 19.16 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 gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.268136106082238] Failed to read output from testmodel.py, exit status != 0: 0.5352620170451701 0.5458812209999999 0.023031288 Calling exit ...