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.001546/0.001546, allocations: 113.9 kB / 17.61 MB, free: 4.684 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.001822/0.001822, allocations: 185.9 kB / 20.78 MB, free: 1.52 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.581/1.581, allocations: 225.6 MB / 249.4 MB, free: 3.145 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.139/1.139, allocations: 175.7 MB / 480.2 MB, free: 2.754 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.001964/0.001964, allocations: 67.75 kB / 0.6683 GB, free: 10.59 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2102, allocations: 94.54 MB / 0.7607 GB, free: 324 kB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001973/0.2122, allocations: 0.5145 MB / 0.7612 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002498/0.2147, allocations: 1.628 MB / 0.7627 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.621e-05/0.2147, allocations: 0 / 0.7627 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.2149, allocations: 19.91 kB / 0.7628 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.62e-05/0.2149, allocations: 11.92 kB / 0.7628 GB, free: 14.13 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.0008844/0.2158, allocations: 255.2 kB / 0.763 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.178e-05/0.2159, allocations: 23.97 kB / 0.763 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.865e-05/0.2159, allocations: 3.938 kB / 0.763 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.676e-05/0.2159, allocations: 11.98 kB / 0.7631 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.08e-05/0.216, allocations: 19.91 kB / 0.7631 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.216, allocations: 0 / 0.7631 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007/0.2167, allocations: 367.4 kB / 0.7634 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.047e-05/0.2168, allocations: 11.94 kB / 0.7634 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.127e-05/0.2168, allocations: 27.8 kB / 0.7635 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.2172, allocations: 287.1 kB / 0.7637 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2172, allocations: 0 / 0.7637 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2172, allocations: 4 kB / 0.7637 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.2172, allocations: 0 / 0.7637 GB, free: 13.14 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.0005116/0.2177, allocations: 410.7 kB / 0.7641 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2177, allocations: 8.031 kB / 0.7641 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.2178, allocations: 12.84 kB / 0.7642 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.218, allocations: 176.3 kB / 0.7643 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.62e-06/0.218, allocations: 384 / 0.7643 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.218, allocations: 4.375 kB / 0.7643 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.547e-05/0.2181, allocations: 42.02 kB / 0.7644 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.2181, allocations: 0 / 0.7644 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.2181, allocations: 3.938 kB / 0.7644 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2181, allocations: 3.938 kB / 0.7644 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.283e-05/0.2181, allocations: 15.98 kB / 0.7644 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.2183, allocations: 169.7 kB / 0.7645 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.786e-05/0.2184, allocations: 26.58 kB / 0.7646 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.718e-05/0.2184, allocations: 20.91 kB / 0.7646 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/0.2184, allocations: 7.984 kB / 0.7646 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.2185, allocations: 34.5 kB / 0.7646 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.2185, allocations: 0 / 0.7646 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.000159/0.2186, allocations: 65.58 kB / 0.7647 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.2187, allocations: 51.41 kB / 0.7647 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.2189, allocations: 170 kB / 0.7649 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.2189, allocations: 29.83 kB / 0.7649 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.108e-05/0.219, allocations: 96.12 kB / 0.765 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.219, allocations: 3.953 kB / 0.765 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-05/0.219, allocations: 29.7 kB / 0.7651 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2192, allocations: 314.8 kB / 0.7654 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.126e-05/0.2192, allocations: 47.97 kB / 0.7654 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.415e-05/0.2193, allocations: 43.86 kB / 0.7654 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.285e-05/0.2194, allocations: 72.77 kB / 0.7655 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2194, allocations: 0 / 0.7655 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001504/0.2195, allocations: 125.6 kB / 0.7656 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.2196, allocations: 11.94 kB / 0.7656 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.2196, allocations: 0 / 0.7656 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.2196, allocations: 0 / 0.7656 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.695e-05/0.2196, allocations: 4 kB / 0.7657 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.2196, allocations: 3.984 kB / 0.7657 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.737e-05/0.2196, allocations: 15.88 kB / 0.7657 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.2196, allocations: 0 / 0.7657 GB, free: 10.93 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.0001349/0.2198, allocations: 129.9 kB / 0.7658 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.358e-05/0.2198, allocations: 11.89 kB / 0.7658 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002109/0.22, allocations: 53.5 kB / 0.7659 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.22, allocations: 0 / 0.7659 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.22, allocations: 4 kB / 0.7659 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.22, allocations: 0 / 0.7659 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.2202, allocations: 169.7 kB / 0.766 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2202, allocations: 0 / 0.766 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.887e-06/0.2202, allocations: 0 / 0.766 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2202, allocations: 3.938 kB / 0.766 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-06/0.2202, allocations: 4.031 kB / 0.766 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.2202, allocations: 4 kB / 0.766 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2202, allocations: 3.984 kB / 0.766 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.94e-05/0.2203, allocations: 81.02 kB / 0.7661 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.2203, allocations: 85 kB / 0.7662 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.2203, allocations: 0 / 0.7662 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.2203, allocations: 0 / 0.7662 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.415e-05/0.2204, allocations: 8.031 kB / 0.7662 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.2204, allocations: 0 / 0.7662 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001002/0.2205, allocations: 126.5 kB / 0.7663 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.2205, allocations: 0 / 0.7663 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003056/0.2208, allocations: 87.8 kB / 0.7664 GB, free: 10.07 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.0005421/0.2213, allocations: 240.9 kB / 0.7666 GB, free: 9.848 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.2215, allocations: 89.67 kB / 0.7667 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2215, allocations: 0 / 0.7667 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.657e-05/0.2215, allocations: 11.98 kB / 0.7667 GB, free: 9.742 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.2217, allocations: 9.562 kB / 0.7667 GB, free: 9.734 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003281/0.222, allocations: 177.1 kB / 0.7669 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.2224, allocations: 0.6886 MB / 0.7676 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.857e-05/0.2224, allocations: 8 kB / 0.7676 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.57e-05/0.2224, allocations: 7.438 kB / 0.7676 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/0.2224, allocations: 0 / 0.7676 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of Templates: time 0.005325/0.2277, allocations: 2.086 MB / 0.7696 GB, free: 6.719 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: 6.277511044405401]