Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0007384/0.0007384, allocations: 115 kB / 19.7 MB, free: 0.5273 MB / 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.0009343/0.0009343, allocations: 207.8 kB / 23 MB, free: 3.121 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.8653/0.8653, allocations: 230.6 MB / 256.8 MB, free: 3.484 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7597/0.7597, allocations: 203.8 MB / 0.5049 GB, free: 0.7344 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_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.0009005/0.0009005, allocations: 67.89 kB / 0.7194 GB, free: 14.43 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4923/0.4932, allocations: 102 MB / 0.8191 GB, free: 25.25 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001363/0.4946, allocations: 0.522 MB / 0.8196 GB, free: 24.95 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.4963, allocations: 1.69 MB / 0.8212 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.364e-05/0.4963, allocations: 0.5938 kB / 0.8212 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.4965, allocations: 20.75 kB / 0.8212 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 2.712e-05/0.4965, allocations: 8.703 kB / 0.8212 GB, free: 23.75 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.0007546/0.4973, allocations: 291.1 kB / 0.8215 GB, free: 23.63 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 7.084e-05/0.4973, allocations: 21.77 kB / 0.8215 GB, free: 23.63 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 4.357e-05/0.4974, allocations: 6.406 kB / 0.8215 GB, free: 23.63 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 3.229e-05/0.4974, allocations: 18.28 kB / 0.8216 GB, free: 23.62 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 4.479e-05/0.4975, allocations: 19.12 kB / 0.8216 GB, free: 23.62 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.4975, allocations: 0.9375 kB / 0.8216 GB, free: 23.62 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006142/0.4981, allocations: 0.4883 MB / 0.8221 GB, free: 23.45 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 5.329e-05/0.4981, allocations: 17.62 kB / 0.8221 GB, free: 23.45 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.512e-05/0.4982, allocations: 18.08 kB / 0.8221 GB, free: 23.43 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.4985, allocations: 288.6 kB / 0.8224 GB, free: 23.36 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.4985, allocations: 1.156 kB / 0.8224 GB, free: 23.36 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4985, allocations: 0 / 0.8224 GB, free: 23.36 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.4985, allocations: 0 / 0.8224 GB, free: 23.36 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.0003249/0.4989, allocations: 342.8 kB / 0.8227 GB, free: 23.04 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.4989, allocations: 14.88 kB / 0.8227 GB, free: 23.04 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.4989, allocations: 7.938 kB / 0.8227 GB, free: 23.03 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.4991, allocations: 124 kB / 0.8228 GB, free: 22.89 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.4991, allocations: 1.969 kB / 0.8228 GB, free: 22.89 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.4991, allocations: 5.156 kB / 0.8228 GB, free: 22.89 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.139e-05/0.4992, allocations: 45.28 kB / 0.8229 GB, free: 22.85 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.4992, allocations: 0.8438 kB / 0.8229 GB, free: 22.85 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.4992, allocations: 1.531 kB / 0.8229 GB, free: 22.85 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.4992, allocations: 0 / 0.8229 GB, free: 22.85 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.56e-05/0.4992, allocations: 19.5 kB / 0.8229 GB, free: 22.85 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.4993, allocations: 142.4 kB / 0.823 GB, free: 22.69 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.014e-05/0.4994, allocations: 26.86 kB / 0.8231 GB, free: 22.66 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.234e-05/0.4994, allocations: 13.03 kB / 0.8231 GB, free: 22.66 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.4994, allocations: 6.578 kB / 0.8231 GB, free: 22.66 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.4995, allocations: 35.66 kB / 0.8231 GB, free: 22.61 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.4995, allocations: 3.531 kB / 0.8231 GB, free: 22.61 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.4996, allocations: 67.81 kB / 0.8232 GB, free: 22.57 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.074e-05/0.4996, allocations: 59.28 kB / 0.8232 GB, free: 22.5 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.4997, allocations: 174.1 kB / 0.8234 GB, free: 22.38 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.07e-06/0.4997, allocations: 25.7 kB / 0.8234 GB, free: 22.35 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.257e-05/0.4998, allocations: 98.47 kB / 0.8235 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 9.328e-06/0.4998, allocations: 0 / 0.8235 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.4998, allocations: 29.48 kB / 0.8236 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.832e-05/0.4999, allocations: 321.5 kB / 0.8239 GB, free: 21.92 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.223e-05/0.4999, allocations: 36.94 kB / 0.8239 GB, free: 21.91 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-05/0.5, allocations: 44.09 kB / 0.8239 GB, free: 21.91 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.5001, allocations: 63.91 kB / 0.824 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.5001, allocations: 0.5 kB / 0.824 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001652/0.5003, allocations: 126.4 kB / 0.8241 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.5003, allocations: 19.75 kB / 0.8241 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.5003, allocations: 3.266 kB / 0.8241 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.5003, allocations: 0 / 0.8241 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.425e-05/0.5003, allocations: 1.938 kB / 0.8241 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.5003, allocations: 0 / 0.8241 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.629e-05/0.5003, allocations: 5.172 kB / 0.8242 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.5003, allocations: 1.875 kB / 0.8242 GB, free: 21.82 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: 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 7.099e-05/0.5004, allocations: 130.1 kB / 0.8243 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-06/0.5004, allocations: 11.11 kB / 0.8243 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.482e-05/0.5005, allocations: 62.55 kB / 0.8244 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.5005, allocations: 0 / 0.8244 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5005, allocations: 1.062 kB / 0.8244 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.5005, allocations: 3.984 kB / 0.8244 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6e-05/0.5006, allocations: 140.8 kB / 0.8245 GB, free: 21.49 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5006, allocations: 0.9219 kB / 0.8245 GB, free: 21.49 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-06/0.5006, allocations: 9.25 kB / 0.8245 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.5006, allocations: 3.938 kB / 0.8245 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.5006, allocations: 2.266 kB / 0.8245 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.5006, allocations: 0 / 0.8245 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.5006, allocations: 0 / 0.8245 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.779e-05/0.5006, allocations: 77.66 kB / 0.8246 GB, free: 21.41 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-06/0.5006, allocations: 15.59 kB / 0.8246 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.5007, allocations: 10.28 kB / 0.8246 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.951e-06/0.5007, allocations: 0 / 0.8246 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.5007, allocations: 0.5625 kB / 0.8246 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.5007, allocations: 0.7812 kB / 0.8246 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.676e-05/0.5007, allocations: 123.5 kB / 0.8247 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.5007, allocations: 0 / 0.8247 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002159/0.5009, allocations: 89.08 kB / 0.8248 GB, free: 21.29 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.0003571/0.5013, allocations: 226.7 kB / 0.825 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001384/0.5014, allocations: 96.58 kB / 0.8251 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.5014, allocations: 0 / 0.8251 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.948e-06/0.5015, allocations: 8.969 kB / 0.8251 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001074/0.5016, allocations: 1.375 kB / 0.8251 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002276/0.5018, allocations: 199.6 kB / 0.8253 GB, free: 20.96 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.697e-05/0.5019, allocations: 0.6919 MB / 0.826 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.5019, allocations: 9.359 kB / 0.826 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.5019, allocations: 0 / 0.826 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of Templates: time 0.003842/0.5057, allocations: 2.343 MB / 0.8283 GB, free: 20.06 MB / 0.6355 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.214608610840514] Failed to read output from testmodel.py, exit status != 0: 0.5111150809098035 0.5223009009999999 0.021961006 Calling exit ...