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.0007539/0.0007539, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 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.0007642/0.0007642, allocations: 177.9 kB / 23.22 MB, free: 1.352 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.8545/0.8545, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.6896/0.6896, allocations: 154.6 MB / 414.5 MB, free: 0.8086 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: Performance of FrontEnd - loaded program: time 2.575e-06/2.575e-06, allocations: 0 / 0.6193 GB, free: 13.24 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.294e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.24 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001116/0.001149, allocations: 0.5242 MB / 0.6198 GB, free: 12.71 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001842/0.002991, allocations: 1.61 MB / 0.6214 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.255e-05/0.003023, allocations: 7.938 kB / 0.6214 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.00314, allocations: 63.84 kB / 0.6214 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.369e-05/0.003164, allocations: 35.88 kB / 0.6215 GB, free: 10.98 MB / 0.5886 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.0006632/0.003827, allocations: 271 kB / 0.6217 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 7.682e-05/0.003904, allocations: 39.91 kB / 0.6218 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.428e-05/0.003938, allocations: 11.91 kB / 0.6218 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.04e-05/0.003979, allocations: 19.97 kB / 0.6218 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.482e-05/0.004034, allocations: 47.88 kB / 0.6218 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.004052, allocations: 0 / 0.6218 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005602/0.004612, allocations: 451.1 kB / 0.6223 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.316e-05/0.004666, allocations: 23.92 kB / 0.6223 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.004688, allocations: 15.94 kB / 0.6223 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.005261, allocations: 367 kB / 0.6227 GB, free: 9.758 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.005263, allocations: 4 kB / 0.6227 GB, free: 9.754 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.232e-06/0.005265, allocations: 0 / 0.6227 GB, free: 9.754 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.00527, allocations: 0 / 0.6227 GB, free: 9.754 MB / 0.5886 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.0003627/0.005632, allocations: 357.3 kB / 0.623 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.005671, allocations: 12.03 kB / 0.623 GB, free: 9.363 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.005704, allocations: 8.891 kB / 0.623 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.005832, allocations: 125.6 kB / 0.6232 GB, free: 9.207 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.005842, allocations: 4.375 kB / 0.6232 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.968e-06/0.005852, allocations: 4.359 kB / 0.6232 GB, free: 9.199 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.332e-05/0.005945, allocations: 42.2 kB / 0.6232 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.005953, allocations: 192 / 0.6232 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.005962, allocations: 384 / 0.6232 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.005968, allocations: 3.938 kB / 0.6232 GB, free: 9.148 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.583e-05/0.005994, allocations: 19.98 kB / 0.6232 GB, free: 9.129 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.00614, allocations: 145.2 kB / 0.6234 GB, free: 8.957 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.556e-05/0.006186, allocations: 26.56 kB / 0.6234 GB, free: 8.922 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.006204, allocations: 12.92 kB / 0.6234 GB, free: 8.906 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.00624, allocations: 4 kB / 0.6234 GB, free: 8.902 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.006265, allocations: 42.48 kB / 0.6234 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.006266, allocations: 0 / 0.6234 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001424/0.006408, allocations: 69.64 kB / 0.6235 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.006438, allocations: 55.34 kB / 0.6236 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.006589, allocations: 221.8 kB / 0.6238 GB, free: 8.484 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.006598, allocations: 25.7 kB / 0.6238 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/0.006647, allocations: 104.1 kB / 0.6239 GB, free: 8.348 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 9.818e-06/0.006657, allocations: 0 / 0.6239 GB, free: 8.348 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.175e-05/0.006688, allocations: 29.7 kB / 0.6239 GB, free: 8.312 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.753e-05/0.006766, allocations: 322.8 kB / 0.6242 GB, free: 7.988 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/0.006814, allocations: 55.98 kB / 0.6243 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.656e-05/0.00685, allocations: 56.09 kB / 0.6243 GB, free: 7.879 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.325e-05/0.006924, allocations: 92.8 kB / 0.6244 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.006926, allocations: 0 / 0.6244 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001164/0.007042, allocations: 157.6 kB / 0.6246 GB, free: 7.625 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.007056, allocations: 4 kB / 0.6246 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.007071, allocations: 7.922 kB / 0.6246 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.007083, allocations: 0 / 0.6246 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.245e-05/0.007095, allocations: 4 kB / 0.6246 GB, free: 7.609 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.007102, allocations: 3.938 kB / 0.6246 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.225e-05/0.007124, allocations: 15.78 kB / 0.6246 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.007132, allocations: 4 kB / 0.6246 GB, free: 7.586 MB / 0.5886 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 8.982e-05/0.007222, allocations: 137.7 kB / 0.6247 GB, free: 7.445 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-06/0.00723, allocations: 7.953 kB / 0.6248 GB, free: 7.438 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.491e-05/0.007315, allocations: 70.11 kB / 0.6248 GB, free: 7.363 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.007317, allocations: 0 / 0.6248 GB, free: 7.363 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.007322, allocations: 3.938 kB / 0.6248 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.007324, allocations: 0 / 0.6248 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.192e-05/0.007396, allocations: 137.2 kB / 0.625 GB, free: 7.195 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.007397, allocations: 0 / 0.625 GB, free: 7.195 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-06/0.007401, allocations: 3.984 kB / 0.625 GB, free: 7.191 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.007403, allocations: 4.031 kB / 0.625 GB, free: 7.188 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.007408, allocations: 0 / 0.625 GB, free: 7.188 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.007409, allocations: 0 / 0.625 GB, free: 7.188 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.007409, allocations: 4 kB / 0.625 GB, free: 7.184 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.076e-05/0.00747, allocations: 88.95 kB / 0.6251 GB, free: 7.078 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-06/0.00748, allocations: 7.906 kB / 0.6251 GB, free: 7.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.007491, allocations: 4 kB / 0.6251 GB, free: 7.066 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-06/0.007499, allocations: 0 / 0.6251 GB, free: 7.066 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.007512, allocations: 0 / 0.6251 GB, free: 7.066 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.007515, allocations: 7.922 kB / 0.6251 GB, free: 7.059 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.699e-05/0.007592, allocations: 151.4 kB / 0.6252 GB, free: 6.91 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.007592, allocations: 4 kB / 0.6252 GB, free: 6.906 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002338/0.007826, allocations: 87.8 kB / 0.6253 GB, free: 6.82 MB / 0.5886 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.0003852/0.008211, allocations: 245.7 kB / 0.6255 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001974/0.008408, allocations: 121.7 kB / 0.6257 GB, free: 6.477 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.00841, allocations: 0 / 0.6257 GB, free: 6.477 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.457e-06/0.008419, allocations: 11.94 kB / 0.6257 GB, free: 6.465 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.008539, allocations: 7.984 kB / 0.6257 GB, free: 6.457 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.008826, allocations: 250.5 kB / 0.6259 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.953e-05/0.008885, allocations: 84.31 kB / 0.626 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.579e-05/0.008901, allocations: 8.5 kB / 0.626 GB, free: 6.07 MB / 0.5886 GB Notification: Performance of SimCode: time 4.21e-07/0.008901, allocations: 4 kB / 0.626 GB, free: 6.066 MB / 0.5886 GB Notification: Performance of Templates: time 0.003414/0.01232, allocations: 2.512 MB / 0.6285 GB, free: 3.555 MB / 0.5886 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: 6.625486824661493] Failed to read output from testmodel.py, exit status != 0: 0.017270886339247227 0.025335550000000002 0.018418736 Calling exit ...