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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 111.2 kB / 17.13 MB, free: 6.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 192.2 kB / 20.08 MB, free: 3.094 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 248.5 MB, free: 3.719 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Examples/PPD12/Structure.mo:527:21-527:482:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Examples/PPD12/Structure.mo:527:21-527:490:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 3.0.0-master/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 3.0.0-master/package.mo): time 1.082/1.082, allocations: 177.8 MB / 481.2 MB, free: 1.777 MB / 366.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 75.48 kB / 0.6694 GB, free: 9.137 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1948, allocations: 95.09 MB / 0.7623 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001689/0.1965, allocations: 0.5123 MB / 0.7628 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002312/0.1988, allocations: 1.616 MB / 0.7644 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.409e-05/0.1988, allocations: 4 kB / 0.7644 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.199, allocations: 19.91 kB / 0.7644 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.899e-05/0.199, allocations: 19.91 kB / 0.7644 GB, free: 11.55 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.1999, allocations: 243.3 kB / 0.7646 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.06e-05/0.2, allocations: 19.97 kB / 0.7647 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.2, allocations: 3.938 kB / 0.7647 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.217e-05/0.2001, allocations: 19.97 kB / 0.7647 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.076e-05/0.2001, allocations: 19.92 kB / 0.7647 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.2001, allocations: 4 kB / 0.7647 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006075/0.2007, allocations: 359.4 kB / 0.765 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.111e-05/0.2008, allocations: 19.94 kB / 0.7651 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.187e-05/0.2008, allocations: 19.8 kB / 0.7651 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003938/0.2012, allocations: 287.1 kB / 0.7654 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2012, allocations: 0 / 0.7654 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2012, allocations: 0 / 0.7654 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.2012, allocations: 0 / 0.7654 GB, free: 10.57 MB / 0.5762 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.0005042/0.2017, allocations: 416.3 kB / 0.7657 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2017, allocations: 8.031 kB / 0.7658 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.434e-05/0.2018, allocations: 8.891 kB / 0.7658 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.202, allocations: 188.1 kB / 0.7659 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.202, allocations: 4.375 kB / 0.7659 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.202, allocations: 8.297 kB / 0.766 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.527e-05/0.2021, allocations: 42.02 kB / 0.766 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.2021, allocations: 0 / 0.766 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.2021, allocations: 3.938 kB / 0.766 GB, free: 9.816 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.2021, allocations: 7.938 kB / 0.766 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.131e-05/0.2021, allocations: 15.98 kB / 0.766 GB, free: 9.793 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001981/0.2023, allocations: 173.7 kB / 0.7662 GB, free: 9.574 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.045e-05/0.2024, allocations: 18.58 kB / 0.7662 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.5e-05/0.2024, allocations: 16.91 kB / 0.7662 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.2025, allocations: 4 kB / 0.7662 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.2025, allocations: 42.5 kB / 0.7663 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.2025, allocations: 0 / 0.7663 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.2026, allocations: 65.58 kB / 0.7663 GB, free: 9.402 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.2027, allocations: 51.41 kB / 0.7664 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.2028, allocations: 169.6 kB / 0.7665 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.2029, allocations: 25.7 kB / 0.7666 GB, free: 9.137 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.471e-05/0.2029, allocations: 96.12 kB / 0.7667 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.548e-06/0.2029, allocations: 0 / 0.7667 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.425e-05/0.203, allocations: 33.83 kB / 0.7667 GB, free: 9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2031, allocations: 318.8 kB / 0.767 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.713e-05/0.2032, allocations: 43.97 kB / 0.767 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.204e-05/0.2032, allocations: 43.92 kB / 0.7671 GB, free: 8.594 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.221e-05/0.2033, allocations: 64.78 kB / 0.7671 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2033, allocations: 0 / 0.7671 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001513/0.2035, allocations: 129.6 kB / 0.7673 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.2035, allocations: 10.12 kB / 0.7673 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.2035, allocations: 0 / 0.7673 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.2035, allocations: 4.062 kB / 0.7673 GB, free: 8.383 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.032e-05/0.2035, allocations: 4 kB / 0.7673 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2035, allocations: 7.984 kB / 0.7673 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.228e-05/0.2036, allocations: 7.891 kB / 0.7673 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-06/0.2036, allocations: 0 / 0.7673 GB, free: 8.363 MB / 0.5762 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.0001541/0.2037, allocations: 121.8 kB / 0.7674 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.2037, allocations: 11.89 kB / 0.7674 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.2038, allocations: 61.5 kB / 0.7675 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.2038, allocations: 4.031 kB / 0.7675 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2038, allocations: 0 / 0.7675 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.2038, allocations: 0 / 0.7675 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.204, allocations: 169.7 kB / 0.7676 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.204, allocations: 0 / 0.7676 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-06/0.204, allocations: 0 / 0.7676 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.204, allocations: 7.938 kB / 0.7677 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-06/0.204, allocations: 3.938 kB / 0.7677 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.204, allocations: 0 / 0.7677 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.204, allocations: 3.984 kB / 0.7677 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.216e-05/0.2041, allocations: 81.02 kB / 0.7677 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.2041, allocations: 85 kB / 0.7678 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.2042, allocations: 4 kB / 0.7678 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.345e-05/0.2042, allocations: 4 kB / 0.7678 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/0.2042, allocations: 0 / 0.7678 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-06/0.2042, allocations: 0 / 0.7678 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.688e-05/0.2043, allocations: 123.2 kB / 0.7679 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2043, allocations: 4.031 kB / 0.7679 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000311/0.2046, allocations: 87.8 kB / 0.768 GB, free: 7.504 MB / 0.5762 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.0005098/0.2051, allocations: 227.4 kB / 0.7682 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001685/0.2053, allocations: 93.67 kB / 0.7683 GB, free: 7.195 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.2053, allocations: 0 / 0.7683 GB, free: 7.195 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.764e-05/0.2053, allocations: 11.98 kB / 0.7683 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.2054, allocations: 1.406 kB / 0.7683 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003332/0.2058, allocations: 206.8 kB / 0.7685 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.2061, allocations: 0.6885 MB / 0.7692 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.57e-05/0.2061, allocations: 7.438 kB / 0.7692 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/0.2061, allocations: 4 kB / 0.7692 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of Templates: time 0.004397/0.2105, allocations: 2.254 MB / 0.7714 GB, free: 3.969 MB / 0.5762 GB " [Timeout remaining time 660] 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: 10.006430769019062] Failed to read output from testmodel.py, exit status != 0: 0.21784503699745983 0.231076003 0.027075463 Calling exit ...