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.0007424/0.0007424, 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.0009221/0.0009221, allocations: 169.2 kB / 23.19 MB, free: 1.367 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.8332/0.8332, allocations: 177.2 MB / 203.6 MB, free: 5.418 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.7/0.7, allocations: 154.7 MB / 414.7 MB, free: 0.6797 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.0008855/0.0008855, allocations: 63.91 kB / 0.6195 GB, free: 13.1 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.3874/0.3883, allocations: 101.9 MB / 0.7191 GB, free: 23.63 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001475/0.3898, allocations: 0.5269 MB / 0.7196 GB, free: 23.31 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001765/0.3916, allocations: 1.602 MB / 0.7211 GB, free: 22.22 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.302e-05/0.3916, allocations: 1.5 kB / 0.7211 GB, free: 22.22 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0002086/0.3918, allocations: 61.12 kB / 0.7212 GB, free: 22.21 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 4.131e-05/0.3919, allocations: 32.33 kB / 0.7212 GB, free: 22.21 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.0008681/0.3927, allocations: 289.7 kB / 0.7215 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 9.667e-05/0.3928, allocations: 34.48 kB / 0.7215 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 4.087e-05/0.3929, allocations: 2.219 kB / 0.7215 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 5.617e-05/0.3929, allocations: 27.62 kB / 0.7216 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 7.391e-05/0.393, allocations: 47.58 kB / 0.7216 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.393, allocations: 1.25 kB / 0.7216 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007052/0.3937, allocations: 457.5 kB / 0.7221 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 5.682e-05/0.3938, allocations: 22.58 kB / 0.7221 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.3938, allocations: 21.59 kB / 0.7221 GB, free: 21.92 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0004876/0.3943, allocations: 366.5 kB / 0.7224 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3943, allocations: 0 / 0.7224 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3943, allocations: 0 / 0.7224 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.3943, allocations: 1.094 kB / 0.7225 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.0003624/0.3947, allocations: 370 kB / 0.7228 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3947, allocations: 7.906 kB / 0.7228 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.3947, allocations: 17.31 kB / 0.7228 GB, free: 21.45 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.3948, allocations: 132 kB / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.3949, allocations: 384 / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.3949, allocations: 1.5 kB / 0.723 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.206e-05/0.395, allocations: 42.36 kB / 0.723 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.395, allocations: 0 / 0.723 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.395, allocations: 3.938 kB / 0.723 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.395, allocations: 1 kB / 0.723 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.184e-05/0.395, allocations: 22.14 kB / 0.723 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.3951, allocations: 137.1 kB / 0.7232 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 3.984e-05/0.3952, allocations: 29.56 kB / 0.7232 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.981e-05/0.3952, allocations: 14.08 kB / 0.7232 GB, free: 21.1 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.3952, allocations: 7.781 kB / 0.7232 GB, free: 21.1 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.3952, allocations: 31.69 kB / 0.7232 GB, free: 21.06 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3953, allocations: 0 / 0.7232 GB, free: 21.06 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.3954, allocations: 85.06 kB / 0.7233 GB, free: 21 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.317e-05/0.3954, allocations: 52.47 kB / 0.7234 GB, free: 20.94 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.3956, allocations: 213.9 kB / 0.7236 GB, free: 20.81 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.683e-06/0.3956, allocations: 31.05 kB / 0.7236 GB, free: 20.78 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.3956, allocations: 104.8 kB / 0.7237 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.071e-05/0.3956, allocations: 3.953 kB / 0.7237 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.3957, allocations: 29.88 kB / 0.7237 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 4.079e-05/0.3957, allocations: 326.7 kB / 0.724 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.614e-05/0.3958, allocations: 54.34 kB / 0.7241 GB, free: 20.33 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.431e-05/0.3958, allocations: 58.25 kB / 0.7241 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.832e-05/0.3959, allocations: 87.41 kB / 0.7242 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3959, allocations: 0 / 0.7242 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001593/0.3961, allocations: 162.5 kB / 0.7244 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.3961, allocations: 4.922 kB / 0.7244 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.3961, allocations: 6.531 kB / 0.7244 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3961, allocations: 8.547 kB / 0.7244 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-05/0.3962, allocations: 0 / 0.7244 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3962, allocations: 2.031 kB / 0.7244 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.596e-05/0.3962, allocations: 17.25 kB / 0.7244 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.3962, allocations: 2.234 kB / 0.7244 GB, free: 20.21 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 9.793e-05/0.3963, allocations: 134.3 kB / 0.7246 GB, free: 20.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.3963, allocations: 11.44 kB / 0.7246 GB, free: 20.09 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.3964, allocations: 72.03 kB / 0.7246 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3964, allocations: 4.641 kB / 0.7246 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3964, allocations: 1.094 kB / 0.7246 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.27e-05/0.3964, allocations: 11.83 kB / 0.7247 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.3964, allocations: 0 / 0.7247 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.249e-05/0.3965, allocations: 1.609 kB / 0.7247 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.3965, allocations: 1.828 kB / 0.7247 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 4.71e-05/0.3965, allocations: 124.2 kB / 0.7248 GB, free: 19.92 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 7.145e-05/0.3966, allocations: 238.3 kB / 0.725 GB, free: 19.7 MB / 0.6355 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.095e-05/0.3966, allocations: 10.28 kB / 0.725 GB, free: 19.7 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.38e-05/0.3967, allocations: 156.7 kB / 0.7252 GB, free: 19.61 MB / 0.6355 GB Notification: Performance of Backend: time 3.3e-07/0.3967, allocations: 3.938 kB / 0.7252 GB, free: 19.6 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007658/0.3975, allocations: 312.7 kB / 0.7255 GB, free: 19.46 MB / 0.6355 GB Notification: Performance of SimCode: time 0.0003387/0.3978, allocations: 0.6605 MB / 0.7261 GB, free: 18.83 MB / 0.6355 GB Notification: Performance of Templates: time 0.00522/0.403, allocations: 2.254 MB / 0.7283 GB, free: 18.64 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: 3.876069495920092] Failed to read output from testmodel.py, exit status != 0: 0.408008802914992 0.418773773 0.022693653 Calling exit ...