Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.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.001248/0.001248, allocations: 109.8 kB / 18.88 MB, free: 2.918 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.001359/0.001359, allocations: 197.7 kB / 22.17 MB, free: 4.629 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.368/1.368, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.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/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.072/1.072, allocations: 175.8 MB / 481.9 MB, free: 7.707 MB / 382.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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 60.25 kB / 0.6705 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.583/0.5849, allocations: 94.54 MB / 0.7628 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001668/0.5866, allocations: 0.5202 MB / 0.7633 GB, free: 9.852 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002493/0.5891, allocations: 1.627 MB / 0.7649 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.535e-05/0.5891, allocations: 0 / 0.7649 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.5894, allocations: 59.72 kB / 0.7649 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.187e-05/0.5895, allocations: 35.05 kB / 0.765 GB, free: 9.055 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.001187/0.5907, allocations: 248.8 kB / 0.7652 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.5908, allocations: 34.52 kB / 0.7652 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.972e-05/0.5909, allocations: 3.875 kB / 0.7652 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 6.3e-05/0.5909, allocations: 22 kB / 0.7653 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.591, allocations: 47.88 kB / 0.7653 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.657e-05/0.5911, allocations: 2.25 kB / 0.7653 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007951/0.5919, allocations: 366.8 kB / 0.7657 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.241e-05/0.5919, allocations: 26.69 kB / 0.7657 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.515e-05/0.592, allocations: 30.19 kB / 0.7657 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005556/0.5925, allocations: 287.2 kB / 0.766 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.5925, allocations: 2.344 kB / 0.766 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.146e-06/0.5925, allocations: 0.8906 kB / 0.766 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.558e-05/0.5925, allocations: 0 / 0.766 GB, free: 8.719 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.0005618/0.5931, allocations: 441.4 kB / 0.7664 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.5931, allocations: 10.33 kB / 0.7664 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.5932, allocations: 13.12 kB / 0.7664 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.5933, allocations: 193.4 kB / 0.7666 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.5933, allocations: 2 kB / 0.7666 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.5934, allocations: 5.406 kB / 0.7666 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.5935, allocations: 43.69 kB / 0.7667 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.5935, allocations: 0 / 0.7667 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.5935, allocations: 4.891 kB / 0.7667 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.5935, allocations: 2.5 kB / 0.7667 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.061e-05/0.5935, allocations: 18.64 kB / 0.7667 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.5937, allocations: 181.1 kB / 0.7669 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.93e-05/0.5937, allocations: 33 kB / 0.7669 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.464e-05/0.5938, allocations: 19.53 kB / 0.7669 GB, free: 7.781 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.5938, allocations: 6.062 kB / 0.7669 GB, free: 7.781 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.5938, allocations: 36.25 kB / 0.767 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.5938, allocations: 0 / 0.767 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001569/0.594, allocations: 69.42 kB / 0.767 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.594, allocations: 52.06 kB / 0.7671 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.5942, allocations: 216 kB / 0.7673 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.497e-06/0.5942, allocations: 26.55 kB / 0.7673 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.759e-05/0.5943, allocations: 104.5 kB / 0.7674 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.5943, allocations: 1.188 kB / 0.7674 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.5943, allocations: 29.34 kB / 0.7674 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.5944, allocations: 322.6 kB / 0.7677 GB, free: 7.035 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.388e-05/0.5945, allocations: 58.58 kB / 0.7678 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.607e-05/0.5945, allocations: 62.02 kB / 0.7679 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.5946, allocations: 97 kB / 0.768 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5946, allocations: 0 / 0.768 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001841/0.5948, allocations: 163.8 kB / 0.7681 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.5948, allocations: 8.312 kB / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.5949, allocations: 2.75 kB / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.5949, allocations: 0 / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.387e-05/0.5949, allocations: 4.938 kB / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.5949, allocations: 0 / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.495e-05/0.5949, allocations: 15.02 kB / 0.7681 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.5949, allocations: 5.062 kB / 0.7681 GB, free: 6.898 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: 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 0.0001448/0.5951, allocations: 132.1 kB / 0.7683 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.5951, allocations: 16.86 kB / 0.7683 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.5952, allocations: 64 kB / 0.7683 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.5952, allocations: 0 / 0.7683 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.5952, allocations: 2.328 kB / 0.7683 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.5952, allocations: 0 / 0.7683 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.5953, allocations: 183.3 kB / 0.7685 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.5953, allocations: 0 / 0.7685 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.681e-06/0.5953, allocations: 6.281 kB / 0.7685 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.5953, allocations: 3.938 kB / 0.7685 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.5953, allocations: 0 / 0.7685 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.5953, allocations: 2.172 kB / 0.7685 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.5953, allocations: 0 / 0.7685 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.881e-05/0.5954, allocations: 89.28 kB / 0.7686 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.772e-05/0.5954, allocations: 88.14 kB / 0.7687 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.5955, allocations: 1.984 kB / 0.7687 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.5955, allocations: 7.969 kB / 0.7687 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.5955, allocations: 1.938 kB / 0.7687 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.5955, allocations: 0 / 0.7687 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001052/0.5956, allocations: 153.1 kB / 0.7689 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5956, allocations: 0 / 0.7689 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003948/0.596, allocations: 88 kB / 0.7689 GB, free: 6.23 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.0005114/0.5965, allocations: 231.5 kB / 0.7692 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001955/0.5967, allocations: 122.6 kB / 0.7693 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5967, allocations: 0 / 0.7693 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.626e-05/0.5967, allocations: 8.5 kB / 0.7693 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.5969, allocations: 5.125 kB / 0.7693 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003209/0.5972, allocations: 254.2 kB / 0.7695 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.5973, allocations: 0.7003 MB / 0.7702 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.499e-05/0.5973, allocations: 12.02 kB / 0.7702 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.5973, allocations: 0 / 0.7702 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of Templates: time 0.005336/0.6027, allocations: 2.371 MB / 0.7725 GB, free: 4.984 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.22267665527761] Failed to read output from testmodel.py, exit status != 0: 0.6120302258059382 0.625681737 0.029327440000000003 Calling exit ...