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.001314/0.001314, allocations: 113.8 kB / 17.61 MB, free: 4.703 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.00127/0.00127, allocations: 186 kB / 20.78 MB, free: 1.547 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.523/1.523, allocations: 225.6 MB / 249.4 MB, free: 3.164 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/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.119/1.119, allocations: 175.7 MB / 480.2 MB, free: 2.781 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_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.002191/0.002191, allocations: 67.61 kB / 0.6683 GB, free: 10.67 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2306, allocations: 94.53 MB / 0.7607 GB, free: 332 kB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001677/0.2323, allocations: 0.5088 MB / 0.7612 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002321/0.2346, allocations: 1.628 MB / 0.7627 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.316e-05/0.2347, allocations: 0 / 0.7627 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002088/0.2349, allocations: 71.78 kB / 0.7628 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.787e-05/0.2349, allocations: 27.95 kB / 0.7628 GB, free: 14.07 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.0008773/0.2358, allocations: 247.2 kB / 0.7631 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.265e-05/0.2359, allocations: 35.95 kB / 0.7631 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.2359, allocations: 0 / 0.7631 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.494e-05/0.236, allocations: 23.97 kB / 0.7631 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.983e-05/0.236, allocations: 47.88 kB / 0.7632 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.236, allocations: 0 / 0.7632 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005714/0.2366, allocations: 367.4 kB / 0.7635 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.596e-05/0.2367, allocations: 27.86 kB / 0.7636 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.356e-05/0.2367, allocations: 27.75 kB / 0.7636 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004068/0.2371, allocations: 287.1 kB / 0.7639 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2371, allocations: 0 / 0.7639 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2371, allocations: 0 / 0.7639 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.2371, allocations: 4 kB / 0.7639 GB, free: 13.03 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.0004853/0.2376, allocations: 442.4 kB / 0.7643 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2377, allocations: 8.031 kB / 0.7643 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.2377, allocations: 12.84 kB / 0.7643 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.2379, allocations: 200.7 kB / 0.7645 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.2379, allocations: 384 / 0.7645 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.2379, allocations: 384 / 0.7645 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.82e-05/0.238, allocations: 42 kB / 0.7645 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.238, allocations: 0 / 0.7645 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.238, allocations: 4 kB / 0.7645 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.238, allocations: 0 / 0.7645 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.288e-05/0.238, allocations: 23.92 kB / 0.7646 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001946/0.2382, allocations: 185.6 kB / 0.7647 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.2383, allocations: 26.56 kB / 0.7648 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.625e-05/0.2383, allocations: 12.92 kB / 0.7648 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.2384, allocations: 7.984 kB / 0.7648 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2384, allocations: 46.5 kB / 0.7648 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.2384, allocations: 0 / 0.7648 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001596/0.2386, allocations: 69.53 kB / 0.7649 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.2386, allocations: 51.41 kB / 0.7649 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.2388, allocations: 210.2 kB / 0.7651 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.2388, allocations: 25.7 kB / 0.7652 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.089e-05/0.2389, allocations: 108.1 kB / 0.7653 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.2389, allocations: 3.953 kB / 0.7653 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.2389, allocations: 33.83 kB / 0.7653 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2391, allocations: 334.8 kB / 0.7656 GB, free: 11 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.013e-05/0.2391, allocations: 51.98 kB / 0.7657 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.655e-05/0.2392, allocations: 57.94 kB / 0.7657 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.936e-05/0.2393, allocations: 88.78 kB / 0.7658 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.2393, allocations: 4 kB / 0.7658 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000184/0.2395, allocations: 163.3 kB / 0.766 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.2395, allocations: 7.938 kB / 0.766 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.2395, allocations: 8 kB / 0.766 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2395, allocations: 4 kB / 0.766 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.301e-05/0.2395, allocations: 0 / 0.766 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.2396, allocations: 0 / 0.766 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.396e-05/0.2396, allocations: 7.953 kB / 0.766 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.2396, allocations: 4 kB / 0.766 GB, free: 10.61 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.0001648/0.2398, allocations: 129.8 kB / 0.7661 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.2398, allocations: 15.84 kB / 0.7661 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.2399, allocations: 70.19 kB / 0.7662 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2399, allocations: 4 kB / 0.7662 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2399, allocations: 0 / 0.7662 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2399, allocations: 0 / 0.7662 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.24, allocations: 181.6 kB / 0.7664 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.24, allocations: 0 / 0.7664 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.998e-06/0.2401, allocations: 0 / 0.7664 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.2401, allocations: 7.938 kB / 0.7664 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.2401, allocations: 0 / 0.7664 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.2401, allocations: 0 / 0.7664 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2401, allocations: 3.938 kB / 0.7664 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.269e-05/0.2402, allocations: 89.06 kB / 0.7665 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.2402, allocations: 92.92 kB / 0.7666 GB, free: 9.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.2402, allocations: 4 kB / 0.7666 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.233e-05/0.2402, allocations: 0 / 0.7666 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.355e-05/0.2402, allocations: 3.984 kB / 0.7666 GB, free: 9.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.2403, allocations: 0 / 0.7666 GB, free: 9.91 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000125/0.2404, allocations: 156.3 kB / 0.7667 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.2404, allocations: 7.938 kB / 0.7667 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003131/0.2407, allocations: 83.86 kB / 0.7668 GB, free: 9.668 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.0005267/0.2412, allocations: 212.2 kB / 0.767 GB, free: 9.469 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001943/0.2414, allocations: 117.7 kB / 0.7671 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2414, allocations: 0 / 0.7671 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.849e-05/0.2414, allocations: 15.98 kB / 0.7671 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001427/0.2416, allocations: 9.656 kB / 0.7672 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.2419, allocations: 217.8 kB / 0.7674 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.2422, allocations: 0.7119 MB / 0.7681 GB, free: 8.344 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.648e-05/0.2423, allocations: 0 / 0.7681 GB, free: 8.344 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.2423, allocations: 7.562 kB / 0.7681 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/0.2423, allocations: 8 kB / 0.7681 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of Templates: time 0.005338/0.2476, allocations: 2.122 MB / 0.7701 GB, free: 6.211 MB / 0.5762 GB " [Timeout remaining time 660] 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: 6.269536608830094]