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.0008183/0.0008183, allocations: 96.38 kB / 19.7 MB, free: 448 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.0008332/0.0008332, allocations: 210.9 kB / 23 MB, free: 2.977 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.8809/0.8809, 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 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.7782/0.7782, allocations: 203.8 MB / 0.5049 GB, free: 10.4 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.0009294/0.0009294, allocations: 71.38 kB / 0.7194 GB, free: 3.562 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5133/0.5143, allocations: 102 MB / 0.819 GB, free: 1.32 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.00129/0.5156, allocations: 0.5283 MB / 0.8195 GB, free: 1 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.5172, allocations: 1.613 MB / 0.8211 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.749e-05/0.5173, allocations: 0 / 0.8211 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.176e-05/0.5173, allocations: 22.22 kB / 0.8211 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 1.701e-05/0.5174, allocations: 7.266 kB / 0.8211 GB, free: 15.88 MB / 0.6198 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.0007236/0.5181, allocations: 287 kB / 0.8214 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.534e-05/0.5181, allocations: 19.36 kB / 0.8214 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.529e-05/0.5182, allocations: 5.969 kB / 0.8214 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 2.908e-05/0.5182, allocations: 15.14 kB / 0.8214 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 3.771e-05/0.5183, allocations: 18.2 kB / 0.8214 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.5183, allocations: 6.469 kB / 0.8214 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005755/0.5189, allocations: 452.7 kB / 0.8219 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.942e-05/0.5189, allocations: 19.23 kB / 0.8219 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.5189, allocations: 18.33 kB / 0.8219 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.5193, allocations: 285.5 kB / 0.8222 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.5193, allocations: 0 / 0.8222 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.054e-06/0.5193, allocations: 0 / 0.8222 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.5193, allocations: 3.594 kB / 0.8222 GB, free: 15.54 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.0003737/0.5197, allocations: 342.6 kB / 0.8225 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.5197, allocations: 13.22 kB / 0.8225 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.427e-05/0.5198, allocations: 7.516 kB / 0.8225 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.5199, allocations: 116.3 kB / 0.8226 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-06/0.5199, allocations: 1.375 kB / 0.8226 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.5199, allocations: 6.281 kB / 0.8226 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.833e-05/0.52, allocations: 47.67 kB / 0.8227 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.52, allocations: 0 / 0.8227 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.52, allocations: 1.641 kB / 0.8227 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.52, allocations: 0 / 0.8227 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.855e-05/0.5201, allocations: 15.97 kB / 0.8227 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.5202, allocations: 132.8 kB / 0.8228 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.363e-05/0.5202, allocations: 24 kB / 0.8229 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.099e-05/0.5203, allocations: 13.36 kB / 0.8229 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/0.5203, allocations: 9.406 kB / 0.8229 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.5203, allocations: 32.97 kB / 0.8229 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.5203, allocations: 0 / 0.8229 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.5205, allocations: 67.77 kB / 0.823 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.5205, allocations: 52.59 kB / 0.823 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.5206, allocations: 173.5 kB / 0.8232 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.5206, allocations: 26.27 kB / 0.8232 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.5207, allocations: 98.48 kB / 0.8233 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.154e-05/0.5207, allocations: 4.609 kB / 0.8233 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/0.5207, allocations: 26.38 kB / 0.8233 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.5209, allocations: 321 kB / 0.8236 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.158e-05/0.5209, allocations: 37.94 kB / 0.8237 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.114e-05/0.5209, allocations: 44.84 kB / 0.8237 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.89e-05/0.521, allocations: 65.98 kB / 0.8238 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.521, allocations: 3.781 kB / 0.8238 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001204/0.5211, allocations: 122.9 kB / 0.8239 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.5212, allocations: 6.891 kB / 0.8239 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5212, allocations: 13.09 kB / 0.8239 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.5212, allocations: 5 kB / 0.8239 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.444e-05/0.5212, allocations: 0.5156 kB / 0.8239 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.5212, allocations: 1.281 kB / 0.8239 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.961e-05/0.5212, allocations: 6 kB / 0.8239 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.5212, allocations: 1.438 kB / 0.8239 GB, free: 14.02 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.0001319/0.5214, allocations: 129.6 kB / 0.8241 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.835e-06/0.5214, allocations: 10.42 kB / 0.8241 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.5215, allocations: 71.03 kB / 0.8241 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5215, allocations: 4.031 kB / 0.8241 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5215, allocations: 1.5 kB / 0.8241 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5215, allocations: 0.6094 kB / 0.8241 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.359e-05/0.5216, allocations: 120.2 kB / 0.8243 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5216, allocations: 0.6562 kB / 0.8243 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.539e-06/0.5216, allocations: 1.281 kB / 0.8243 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.5216, allocations: 0.7031 kB / 0.8243 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.5216, allocations: 3.938 kB / 0.8243 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5216, allocations: 5.438 kB / 0.8243 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5216, allocations: 0.7031 kB / 0.8243 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.336e-05/0.5217, allocations: 81.84 kB / 0.8243 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.918e-06/0.5217, allocations: 6.891 kB / 0.8244 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.012e-05/0.5217, allocations: 1.781 kB / 0.8244 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.005e-05/0.5217, allocations: 7.938 kB / 0.8244 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.5217, allocations: 1.969 kB / 0.8244 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.5217, allocations: 0.6094 kB / 0.8244 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.311e-05/0.5218, allocations: 121.3 kB / 0.8245 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5218, allocations: 0 / 0.8245 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002617/0.522, allocations: 88.28 kB / 0.8246 GB, free: 13.52 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.0003934/0.5224, allocations: 230.8 kB / 0.8248 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000134/0.5225, allocations: 92.44 kB / 0.8249 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5225, allocations: 3.938 kB / 0.8249 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.185e-05/0.5226, allocations: 13.16 kB / 0.8249 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001098/0.5227, allocations: 6.516 kB / 0.8249 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002541/0.5229, allocations: 199.6 kB / 0.8251 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.948e-05/0.523, allocations: 79.06 kB / 0.8252 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.718e-05/0.523, allocations: 14.47 kB / 0.8252 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of SimCode: time 5.21e-07/0.523, allocations: 0 / 0.8252 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of Templates: time 0.003902/0.5269, allocations: 2.351 MB / 0.8275 GB, free: 12.89 MB / 0.6198 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: 6.869904971215874] Failed to read output from testmodel.py, exit status != 0: 0.5327062830328941 0.543111254 0.021839257 Calling exit ...