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.0007079/0.0007079, allocations: 96.36 kB / 19.7 MB, free: 456 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.0007517/0.0007517, allocations: 211.5 kB / 23 MB, free: 2.969 MB / 13.93 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.8802/0.8802, allocations: 230.6 MB / 256.8 MB, free: 9.586 MB / 202.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.7537/0.7537, allocations: 203.5 MB / 0.5046 GB, free: 10.71 MB / 410.7 MB " [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.0009424/0.0009424, allocations: 66.19 kB / 0.719 GB, free: 3.953 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5086/0.5095, allocations: 102 MB / 0.8186 GB, free: 1.512 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001229/0.5108, allocations: 0.5085 MB / 0.8191 GB, free: 1.207 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.5123, allocations: 1.612 MB / 0.8206 GB, free: 104 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.693e-05/0.5123, allocations: 0 / 0.8206 GB, free: 104 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.5125, allocations: 20.03 kB / 0.8207 GB, free: 100 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 2.294e-05/0.5125, allocations: 16.8 kB / 0.8207 GB, free: 92 kB / 0.6042 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.0007964/0.5133, allocations: 286.2 kB / 0.821 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.223e-05/0.5134, allocations: 28.58 kB / 0.821 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.246e-05/0.5134, allocations: 2.094 kB / 0.821 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.003e-05/0.5134, allocations: 9.344 kB / 0.821 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.354e-05/0.5135, allocations: 23.17 kB / 0.821 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.5135, allocations: 4 kB / 0.821 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005984/0.5141, allocations: 453.9 kB / 0.8214 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.448e-05/0.5141, allocations: 22.59 kB / 0.8215 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.5142, allocations: 13.28 kB / 0.8215 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.5145, allocations: 289.4 kB / 0.8218 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5145, allocations: 3.938 kB / 0.8218 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5145, allocations: 0 / 0.8218 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.5145, allocations: 0 / 0.8218 GB, free: 15.73 MB / 0.6198 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.0003343/0.5149, allocations: 338.5 kB / 0.8221 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.5149, allocations: 15.22 kB / 0.8221 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.5149, allocations: 7.766 kB / 0.8221 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.5151, allocations: 125.4 kB / 0.8222 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-06/0.5151, allocations: 384 / 0.8222 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/0.5151, allocations: 4.312 kB / 0.8222 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.507e-05/0.5152, allocations: 38.62 kB / 0.8223 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.5152, allocations: 0 / 0.8223 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-06/0.5152, allocations: 0 / 0.8223 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.5152, allocations: 7.25 kB / 0.8223 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.306e-05/0.5152, allocations: 13.62 kB / 0.8223 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.5153, allocations: 121.5 kB / 0.8224 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.186e-05/0.5154, allocations: 31.5 kB / 0.8224 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.026e-05/0.5154, allocations: 19.38 kB / 0.8225 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.5154, allocations: 3.672 kB / 0.8225 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.5154, allocations: 32.69 kB / 0.8225 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.5154, allocations: 1.031 kB / 0.8225 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001285/0.5156, allocations: 67.56 kB / 0.8226 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.5156, allocations: 52.47 kB / 0.8226 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.5157, allocations: 172.5 kB / 0.8228 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.5157, allocations: 25.7 kB / 0.8228 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.5158, allocations: 98.77 kB / 0.8229 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.178e-05/0.5158, allocations: 5.266 kB / 0.8229 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/0.5158, allocations: 25.02 kB / 0.8229 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.889e-05/0.5159, allocations: 321.4 kB / 0.8232 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.206e-05/0.516, allocations: 46.25 kB / 0.8233 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.912e-05/0.516, allocations: 37.52 kB / 0.8233 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.693e-05/0.5161, allocations: 68.55 kB / 0.8234 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.5161, allocations: 0 / 0.8234 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001241/0.5162, allocations: 125.9 kB / 0.8235 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.5162, allocations: 9.031 kB / 0.8235 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.5162, allocations: 6.734 kB / 0.8235 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.5163, allocations: 4.062 kB / 0.8235 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.366e-05/0.5163, allocations: 1.703 kB / 0.8235 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.5163, allocations: 0 / 0.8235 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.116e-05/0.5163, allocations: 10.42 kB / 0.8235 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.5163, allocations: 1.484 kB / 0.8235 GB, free: 14.22 MB / 0.6198 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 0.0001031/0.5164, allocations: 133.7 kB / 0.8236 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-06/0.5164, allocations: 6.234 kB / 0.8237 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.956e-05/0.5165, allocations: 63.22 kB / 0.8237 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5165, allocations: 32 / 0.8237 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.5165, allocations: 4 kB / 0.8237 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.5165, allocations: 3.938 kB / 0.8237 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.976e-05/0.5166, allocations: 121.6 kB / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5166, allocations: 0.75 kB / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.5166, allocations: 0 / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5166, allocations: 8.297 kB / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.5166, allocations: 0 / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.5166, allocations: 3.938 kB / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5166, allocations: 0 / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.736e-05/0.5167, allocations: 77.02 kB / 0.8239 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-06/0.5167, allocations: 11.44 kB / 0.8239 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.5167, allocations: 2.016 kB / 0.8239 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.5167, allocations: 3.938 kB / 0.8239 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.5167, allocations: 5.844 kB / 0.8239 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.5167, allocations: 0.7031 kB / 0.8239 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.021e-05/0.5168, allocations: 125.4 kB / 0.8241 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5168, allocations: 0 / 0.8241 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002444/0.517, allocations: 88.11 kB / 0.8241 GB, free: 13.72 MB / 0.6198 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.0003741/0.5174, allocations: 240.2 kB / 0.8244 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001431/0.5175, allocations: 92.38 kB / 0.8245 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5175, allocations: 0 / 0.8245 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.096e-05/0.5176, allocations: 10.91 kB / 0.8245 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001078/0.5177, allocations: 5.094 kB / 0.8245 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002638/0.5179, allocations: 199.2 kB / 0.8247 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.026e-05/0.518, allocations: 83.41 kB / 0.8248 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.518, allocations: 9.75 kB / 0.8248 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/0.518, allocations: 0 / 0.8248 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of Templates: time 0.003847/0.5218, allocations: 2.357 MB / 0.8271 GB, free: 13.09 MB / 0.6198 GB " [Timeout remaining time 659] 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: 7.01382772019133] Failed to read output from testmodel.py, exit status != 0: 0.5271648322232068 0.537132534 0.02048463 Calling exit ...